workspace
orc workspace は、CLIで選択中のWorkspaceを確認し、現在のディレクトリへのリンクや将来のコマンドで使う既定Workspaceを保存するコマンドです。Workspaceの作成やサーバー上の変更は行いません。
API操作は orc workspaces を参照してください。ローカルで対象を選んでも、そのWorkspaceへのアクセス権が追加されるわけではありません。
使い方
orc workspace current選択中のWorkspaceと選択元を確認します。
サブコマンド
current
選択したWorkspaceの id と選択元 source を返します。未選択の場合は id: null、source: none と選択方法の案内を返します。
orc workspace current [options]link
Workspace IDを現在のディレクトリの .orchestor/workspace.json に保存します。IDを省略すると現在解決されるWorkspaceを使います。対象がない場合は検証エラーです。保存結果は workspaceId と path です。
orc workspace link [id] [options]unlink
現在のディレクトリの .orchestor/workspace.json を削除します。ファイルがなかった場合も結果を返し、unlinked は実際にファイルがあったかを示します。グローバルの既定Workspaceは削除しません。
orc workspace unlink [options]use
必須のIDをローカル設定の defaultWorkspace として保存します。結果は defaultWorkspace と configPath です。現在のディレクトリのリンクや環境変数があれば、その指定が既定値より優先されます。
orc workspace use <id> [options]list
List workspaces
orc workspace list [options]固有のオプション
--include-archived
Include archived workspaces in the response.; enum: true|false
型: string。任意。
orc workspace list --include-archived <value>--include-management
Include brand, monitoring configuration, and production prompt entitlement summaries for accessible workspaces.; enum: true|false
型: string。任意。
orc workspace list --include-management <value>create
Create workspace
orc workspace create [options]固有のオプション
--idempotency-key
Retry identity for operations that support idempotency. Use a unique key for each new operation, and reuse it only when retrying the same HTTP method, path, query values and exact request body. JSON whitespace changes can count as a different body. Keys contain 1–255 characters after trimming and expire after 24 hours. A completed JSON response is replayed without repeating the operation. A different request using the same key returns 409 idempotency_error. An in-progress request returns 409 idempotency_in_progress with Retry-After: 2. Whether this header is required depends on the operation.
型: string。任意。
orc workspace create --idempotency-key <value>--name
(required) Workspace display name after trimming surrounding whitespace. Must contain 1 to 120 characters.; max 120 chars
型: string。任意。
orc workspace create --name <value>--slug
Preferred workspace URL slug. Omit or send an empty string to derive it from name. The server normalizes to lowercase letters, digits and hyphens and resolves conflicts within the organization.
型: string。任意。
orc workspace create --slug <value>--workspace-type
Workspace type. Omission creates a team workspace.; enum: personal|team
型: string。任意。
orc workspace create --workspace-type <value>--client-label
Optional client-facing label. Surrounding whitespace is removed; omitted, null or empty values store no label.; (use "null" or "reset" to clear)
型: string。任意。
orc workspace create --client-label <value>--purpose
Commercial workspace purpose, defaulting to client in the extended flow. Supplying this field selects extended creation. pitch requires an agency organization and consumes monthly and active pitch quotas.; enum: client|pitch
型: string。任意。
orc workspace create --purpose <value>--setup-mode
Creation stopping point. A supplied owned brand is initialized active in every mode; no separate brand activation is required. Brand readiness does not start measurement. empty skips setup generation and measurement; brand is optional. suggestions generates review candidates without starting measurement. measure generates and measures. Omission uses measure if any extended setup field is present; otherwise creation is empty. Pitch quotas and seven-day expiry begin at creation in every mode.; enum: empty|suggestions|measure
型: string。任意。
orc workspace create --setup-mode <value>--brand
Managed brand to initialize. Required for suggestions and measure. Optional for empty; when provided, both name and domain are required. Supplying brand without setup_mode starts the measure flow.; (JSON object, e.g. '{"custom_id":"x"}')
型: string。任意。
orc workspace create --brand <value>--default-country-code
Two-letter default observation country code. Trimmed and uppercased. Defaults to JP in the extended flow. Supplying this field selects extended creation even without setup_mode.
型: string。任意。
orc workspace create --default-country-code <value>--default-language-code
Default observation language code, optionally with a regional suffix. Trimmed and lowercased, for example ja or en-us. Defaults to ja in the extended flow. Supplying this field selects extended creation even without setup_mode.
型: string。任意。
orc workspace create --default-language-code <value>get
Get workspace
orc workspace get <id> [options]update
Update workspace
orc workspace update <id> [options]固有のオプション
--idempotency-key
Retry identity for operations that support idempotency. Use a unique key for each new operation, and reuse it only when retrying the same HTTP method, path, query values and exact request body. JSON whitespace changes can count as a different body. Keys contain 1–255 characters after trimming and expire after 24 hours. A completed JSON response is replayed without repeating the operation. A different request using the same key returns 409 idempotency_error. An in-progress request returns 409 idempotency_in_progress with Retry-After: 2. Whether this header is required depends on the operation.
型: string。任意。
orc workspace update <id> --idempotency-key <value>--is-default
Set this workspace as the organization default. Must be true and the only field in the body. Requires a human organization owner or admin; machine credentials cannot perform this change.; enum: true
型: string。任意。
orc workspace update <id> --is-default <value>--name
Replacement workspace display name. Omit to retain the current value.; max 120 chars
型: string。任意。
orc workspace update <id> --name <value>--slug
Replacement preferred slug. Normalized and made unique within the organization. Omit to retain the current slug.
型: string。任意。
orc workspace update <id> --slug <value>--client-label
Replacement client-facing label. Omit to retain it; null or an empty string clears it. Nonempty strings are trimmed.; (use "null" or "reset" to clear)
型: string。任意。
orc workspace update <id> --client-label <value>--color-token
Workspace visual identity color. Omit to retain the current token.; enum: default|gray|brown|orange|yellow|green|blue|purple|pink|red
型: string。任意。
orc workspace update <id> --color-token <value>--identity-kind
Workspace visual identity rendering mode. Omit to retain the current mode. Set the corresponding icon, emoji or image value separately when needed.; enum: color|initial|icon|emoji|image
型: string。任意。
orc workspace update <id> --identity-kind <value>--icon-token
Icon identifier used by icon identity mode. Omit to retain it; null or an empty string clears it. Does not change identity_kind.; (use "null" or "reset" to clear); max 64 chars
型: string。任意。
orc workspace update <id> --icon-token <value>--emoji
Emoji value used by emoji identity mode. Omit to retain it; null or an empty string clears it. Does not change identity_kind.; (use "null" or "reset" to clear); max 32 chars
型: string。任意。
orc workspace update <id> --emoji <value>--image-file-id
File ID used by image identity mode. Omit to retain it; null or an empty string clears it. Does not change identity_kind.; (use "null" or "reset" to clear)
型: string。任意。
orc workspace update <id> --image-file-id <value>--purpose
Set client to convert an unarchived pitch workspace. Submit only purpose and optional dry_run. The conversion is irreversible. A request to convert to pitch is rejected.; enum: client|pitch
型: string。任意。
orc workspace update <id> --purpose <value>archive
Archive workspace
orc workspace archive <id> [options]固有のオプション
--idempotency-key
Retry identity for operations that support idempotency. Use a unique key for each new operation, and reuse it only when retrying the same HTTP method, path, query values and exact request body. JSON whitespace changes can count as a different body. Keys contain 1–255 characters after trimming and expire after 24 hours. A completed JSON response is replayed without repeating the operation. A different request using the same key returns 409 idempotency_error. An in-progress request returns 409 idempotency_in_progress with Retry-After: 2. Whether this header is required depends on the operation.
型: string。任意。
orc workspace archive <id> --idempotency-key <value>restore
Restore workspace
orc workspace restore <id> [options]固有のオプション
--idempotency-key
Retry identity for operations that support idempotency. Use a unique key for each new operation, and reuse it only when retrying the same HTTP method, path, query values and exact request body. JSON whitespace changes can count as a different body. Keys contain 1–255 characters after trimming and expire after 24 hours. A completed JSON response is replayed without repeating the operation. A different request using the same key returns 409 idempotency_error. An in-progress request returns 409 idempotency_in_progress with Retry-After: 2. Whether this header is required depends on the operation.
型: string。任意。
orc workspace restore <id> --idempotency-key <value>使用例
現在のディレクトリへリンクします。
orc workspace link <workspace-id>現在のディレクトリへリンクします。
既定Workspaceを設定します。
orc workspace use <workspace-id>既定Workspaceを設定します。
ディレクトリのリンクを解除します。
orc workspace unlinkディレクトリのリンクを解除します。
選択の優先順位
対象は --workspace、ORCHESTOR_WORKSPACE_ID、現在のディレクトリの .orchestor/workspace.json、グローバル設定の defaultWorkspace の順に選びます。期待と異なる場合は current の source と、優先される指定を確認してください。
link と use はローカル選択の保存です。認証や所属はサーバーへの操作時に確認されます。
グローバルオプション
orc workspace では、次のグローバルオプションを使用できます。
各オプションの詳細と使用例は、グローバルオプションを参照してください。