A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content
Version: Next

vela crate publish

Publish a crate to an OCI or ECR registry.

Synopsis​

Validate a crate source tree and publish it as an OCI artifact tagged from its own version. A published version is immutable: change the crate, bump version in _crate.cue, publish again.

vela crate publish <dir> [oci-ref] [flags]

Examples​

Publish to the configured default registry:
vela crate publish ./crates/s3

Publish to a named registry:
vela crate publish ./crates/s3 --registry ecr

Publish straight to an ECR repository prefix:
vela crate publish ./crates/s3 123456789012.dkr.ecr.us-west-2.amazonaws.com/crates

Check the target and the annotations without pushing:
vela crate publish ./crates/s3 --registry ecr --dry-run

Republish a release candidate over itself while iterating:
vela crate publish ./crates/s3 --registry ecr --version 1.1.0-rc1 --force

Options​

--dry-run Print the target reference, tag, and annotations without pushing.
--force Overwrite an already-published version.
-h, --help help for publish
--password string Registry password. Empty uses the docker credential chain.
--password-stdin Read the registry password from stdin.
--registry string The configured crate registry to publish to. Empty means the configured default.
--username string Registry username. Empty uses the docker credential chain.
--version string Override the artifact tag. Must be semver, and does not bypass version immutability. The crate's own version in _crate.cue is unchanged inside the artifact.

Options inherited from parent commands​

-V, --verbosity Level number for the log level verbosity
-y, --yes Assume yes for all user prompts

SEE ALSO​

Go Back to CLI Commands Homepage.​

Auto generated by spf13/cobra script in KubeVela.​