Octri

sdk repos

Lists each language's GitHub repository: where it's staged, where it's released, its branch and its state. Generated SDKs are pushed to the staging repository first, and released to production from there.

bash
octri sdk repos [list | init <language>]

octri sdk repos init <language>

Sets up where one language is staged and released. Each repository needs its owner, name and branch.

Arguments

<language>stringrequired

The language ID. --lang works too.

Flags

--staging-owner <owner>stringrequired

The staging repository's owner, a user or organisation.

--staging-repo <repo>stringrequired

The staging repository's name.

--staging-branch <branch>stringrequired

The branch to push to.

--production-owner <owner>stringrequired

The production repository's owner.

--production-repo <repo>stringrequired

The production repository's name.

--production-branch <branch>stringrequired

The branch releases go to.

Examples

List repositories

bash
octri sdk repos
Output
✔ Loading SDK repos

SDK repositories
  No per-language repositories linked.

Set up the Go repositories

bash
octri sdk repos init go \
  --staging-owner acme --staging-repo acme-go-staging --staging-branch main \
  --production-owner acme --production-repo acme-go --production-branch main
  • octri sdk publish: Publish a build's packages to npm, PyPI and the other registries.
  • octri github status: Show the connected repository, branch, spec path and when it last synced.