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>stringThe build to publish.
Flags
--mode <mode>stringWhat to do.
| Value | Meaning |
|---|---|
pack | A dry run: builds each package as it would be published, and pushes nothing |
release | Publishes to the public registries. Needs --yes |
--yesbooleanConfirms a release. Without it, a release only warns you.
--lang <languages>listComma-separated language IDs, such as go,typescript. octri sdk languages lists them. -l is short for it.
--skip-validatebooleanIn pack mode, skips the package checks the dry run would run.
Examples
A dry run first
bash
octri sdk publish --mode pack --lang typescriptWithout --yes, a release only warns
bash
octri sdk publish --mode releaseOutput
â–² `--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 --yesRelated
octri sdk repos: See and set up each language's GitHub repository.octri sdk build: Build SDKs for the languages you choose and follow each one live.- Publishing: Registries, accounts and versions.