Octri

sdk publish

Publishes a build's packages to their registries, such as npm, PyPI, Maven Central and crates.io, from the accounts linked under Publishing in SDK Studio. Languages released through Git tags, such as Go and Swift, are tagged in their repositories. With no ID it uses the latest build. See publishing.

A release is public and permanent

Registries don't let you take a published version back. Run --mode pack until you mean it.

bash
octri sdk publish [<buildId>] --mode pack|release [--lang <languages>] [--yes]

Arguments

<buildId>stringdefault: the latest build

The build to publish.

Flags

--mode <mode>stringdefault: release

What to do.

ValueMeaning
packA dry run: builds each package as it would be published, and pushes nothing
releasePublishes to the public registries. Needs --yes
--yesboolean

Confirms a release. Without it, a release only warns you.

--lang <languages>listdefault: every language in the build

Comma-separated language IDs, such as go,typescript. octri sdk languages lists them. -l is short for it.

--skip-validateboolean

In pack mode, skips the package checks the dry run would run.

Examples

A dry run first

bash
octri sdk publish --mode pack --lang typescript

Without --yes, a release only warns

bash
octri sdk publish --mode release
Output
â–² `--mode release` publishes to public package registries. Re-run with --yes to confirm, or use --mode pack for a dry run.

Release

bash
octri sdk publish --mode release --yes