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 reposOutput
✔ 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:接続済みのリポジトリ、ブランチ、仕様ファイルのパス、最終同期日時を表示します。