> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ubiquex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# ubx publish

> Publish a component to the Strata registry.

`ubx publish` packages and publishes a Pulumi ComponentResource to the [Strata registry](https://registry.ubiquex.io), making it available for use in `component` blocks.

## Usage

```bash theme={null}
ubx publish [path] [flags]
```

## Examples

```bash theme={null}
ubx publish                          # publish current directory
ubx publish ./components/eks-platform
ubx publish --version 2.1.0
ubx publish --tag latest
```

## Flags

| Flag               | Description                                       |
| ------------------ | ------------------------------------------------- |
| `--version string` | Version to publish (default: from `package.json`) |
| `--tag string`     | Registry tag (default: `latest`)                  |

## Prerequisites

* Component must have a valid `package.json` with `name` and `version`
* Must be authenticated to the Strata registry
* Component class must extend `pulumi.ComponentResource`

## Component Structure

```
my-eks-platform/
  package.json         # npm package config
  index.ts             # ComponentResource class
  schema.json          # input/output schema
```

## After Publishing

The component is available as:

```hcl theme={null}
component "platform" {
  source  = "registry.ubiquex.io/eks-platform"
  version = "2.1.0"
}
```

<Note>
  The Strata registry is part of the Ubiquex platform. Contact the team for access.
</Note>
