Octri

sdk repos

各言語のGitHubリポジトリを一覧表示します。ステージング先、リリース先、ブランチ、状態を確認できます。生成された SDK はまずステージングリポジトリにプッシュされ、そこから本番環境にリリースされます。

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

octri sdk repos init <language>

1 つの言語のステージング先とリリース先を設定します。各リポジトリには、所有者、名前、ブランチが必要です。

引数

<language>string必須

言語 ID。--langも使用できます。

フラグ

--staging-owner <owner>string必須

ステージングリポジトリの所有者。ユーザーまたは組織を指定します。

--staging-repo <repo>string必須

ステージングリポジトリの名前。

--staging-branch <branch>string必須

プッシュ先のブランチ。

--production-owner <owner>string必須

本番リポジトリの所有者。

--production-repo <repo>string必須

本番リポジトリの名前。

--production-branch <branch>string必須

リリース先のブランチ。

例

リポジトリを一覧表示

bash
octri sdk repos
Output
✔ Loading SDK repos

SDK repositories
  No per-language repositories linked.

Go リポジトリを設定

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:ビルドのパッケージを npm、PyPI などのレジストリに公開します。
  • octri github status:接続済みのリポジトリ、ブランチ、仕様ファイルのパス、最終同期日時を表示します。