---
title: workspaces
description: ワークスペースの設定とメンバーのアクセスを管理します。
canonical_url: https://orchestor.io/ja/docs/cli/workspaces
markdown_url: https://orchestor.io/ja/docs/cli/workspaces.md
related:
  - https://orchestor.io/ja/docs/cli/global-flags
contentType: reference
---

# workspaces

`orc workspaces` は、ワークスペースの一覧表示や作成、設定の更新、メンバーのアクセス管理を行います。以降のコマンドで使うワークスペースを選ぶには `orc workspace use` を使います。特定のワークスペースを操作するコマンドには、その ID を指定します。

ワークスペースの作成や組織の利用枠の確認には、組織レベルの認証情報が必要です。

## 使い方

```bash title="terminal"
orc workspaces list --json
```

*アクセスできる Workspace を一覧にします。*

## サブコマンド

### `list`

アクセスできるワークスペースを一覧表示します。アーカイブ済みの項目も含めるには `--include-archived true` を指定します。

```bash title="terminal"
orc workspaces list [options]
```

#### 固有のオプション

##### `--include-archived`

Include archived workspaces in the response.; enum: true|false

型: `string`。任意。

```bash title="terminal"
orc workspaces list --include-archived <value>
```

### `create`

`--name` を指定してワークスペースを作成します。URL のスラッグは `--slug` で指定できます。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces create --idempotency-key <value>
```

##### `--name`

(required) Workspace display name after trimming surrounding whitespace. Must contain 1 to 120 characters.; max 120 chars

型: `string`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces create --slug <value>
```

##### `--workspace-type`

Workspace type. Omission creates a team workspace.; enum: personal|team

型: `string`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces create --client-label <value>
```

### `quotas get`

組織の Workspace 利用枠を取得します。Workspace スコープのキーでは `403 insufficient_scope` となり、空の利用枠を意味しません。

```bash title="terminal"
orc workspaces quotas get [options]
```

### `get`

Workspace ID を指定して情報を取得します。

```bash title="terminal"
orc workspaces get <id> [options]
```

### `update`

Workspace ID を指定し、名前・URL 用 slug・表示設定などを更新します。アーカイブされていない pitch Workspace を `purpose: client` へ変換する操作にも対応します。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces update <id> --is-default <value>
```

##### `--name`

Replacement workspace display name. Omit to retain the current value.; max 120 chars

型: `string`。任意。

```bash title="terminal"
orc workspaces update <id> --name <value>
```

##### `--slug`

Replacement preferred slug. Normalized and made unique within the organization. Omit to retain the current slug.

型: `string`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces update <id> --purpose <value>
```

### `archive`

Workspace ID を指定してアーカイブします。復元には `restore` を使用します。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces archive <id> --idempotency-key <value>
```

### `restore`

アーカイブ済み Workspace を ID で指定して復元します。

```bash title="terminal"
orc workspaces 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`。任意。

```bash title="terminal"
orc workspaces restore <id> --idempotency-key <value>
```

### `members list`

Workspace ID を指定してメンバーを一覧にします。

```bash title="terminal"
orc workspaces members list <id> [options]
```

### `members create`

対象 Workspace ID と `--user-id` に同じ組織の有効な人のユーザー ID を指定してアクセスを付与します。API キーの合成 ID は使用できません。

```bash title="terminal"
orc workspaces members create <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`。任意。

```bash title="terminal"
orc workspaces members create <id> --idempotency-key <value>
```

##### `--user-id`

(required) User ID of an active member of the workspace organization. This is not a workspace-member assignment ID. The user must already belong to the organization.

型: `string`。任意。

```bash title="terminal"
orc workspaces members create <id> --user-id <value>
```

##### `--workspace-role`

Workspace role to assign, defaulting to member. If the assignment already exists, this role replaces its current role and the assignment becomes active.; enum: owner|member

型: `string`。任意。

```bash title="terminal"
orc workspaces members create <id> --workspace-role <value>
```

### `members delete`

Workspace ID とユーザー ID を指定してメンバーのアクセスを除外します。

```bash title="terminal"
orc workspaces members delete <id> <user-id> [options]
```

## 使用例

### 作成後の Workspace に人のアクセスを付与します。

```bash title="terminal"
orc workspaces members create WORKSPACE_ID --user-id USER_ID --workspace-role member --json
```

*作成後の Workspace に人のアクセスを付与します。*

## アクセス付与と組織の利用枠

アクセスを付与する対象は同じ組織に所属する有効な人の Organization user ID です。組織スコープの write API キー、または Workspace の owner/admin が操作できます。API キーの `apikey:...` 合成 ID を人の ID として指定しないでください。

組織キーで作成した Workspace には人の `workspace_members` が自動作成されないため、作成後に `members create` を実行します。組織境界が一致しない対象は `404`、read-only キーや権限のない人は `403` になります。付与後は人のプロファイルで `orc workspace use <id>` またはデータコマンドの `--workspace <id>` を使用します。

## グローバルオプション

`orc workspaces` では、次の[グローバルオプション](https://orchestor.io/ja/docs/cli/global-flags.md)を使用できます。

- [`--help`](https://orchestor.io/ja/docs/cli/global-flags.md#%E3%83%98%E3%83%AB%E3%83%97)
- [`--workspace`](https://orchestor.io/ja/docs/cli/global-flags.md#%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%B9%E3%83%9A%E3%83%BC%E3%82%B9)
- [`--json`](https://orchestor.io/ja/docs/cli/global-flags.md#json-%E5%87%BA%E5%8A%9B)
- [`--pretty`](https://orchestor.io/ja/docs/cli/global-flags.md#json-%E5%87%BA%E5%8A%9B)
- [`--format`](https://orchestor.io/ja/docs/cli/global-flags.md#%E5%87%BA%E5%8A%9B%E5%BD%A2%E5%BC%8F)
- [`--field`](https://orchestor.io/ja/docs/cli/global-flags.md#%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AE%E6%8A%BD%E5%87%BA)
- [`--fields`](https://orchestor.io/ja/docs/cli/global-flags.md#%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AE%E6%8A%BD%E5%87%BA)
- [`--raw`](https://orchestor.io/ja/docs/cli/global-flags.md#%E5%80%A4%E3%81%A0%E3%81%91%E3%82%92%E5%87%BA%E5%8A%9B)
- [`--output`](https://orchestor.io/ja/docs/cli/global-flags.md#%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%B8%E3%81%AE%E5%87%BA%E5%8A%9B)
- [`--no-pager`](https://orchestor.io/ja/docs/cli/global-flags.md#%E3%83%9A%E3%83%BC%E3%82%B8%E9%80%81%E3%82%8A)
- [`--dry-run`](https://orchestor.io/ja/docs/cli/global-flags.md#%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88%E3%81%AE%E4%BA%8B%E5%89%8D%E7%A2%BA%E8%AA%8D)
- [`--yes`](https://orchestor.io/ja/docs/cli/global-flags.md#%E7%A2%BA%E8%AA%8D%E3%81%AE%E7%9C%81%E7%95%A5)
- [`--limit`](https://orchestor.io/ja/docs/cli/global-flags.md)
- [`--cursor`](https://orchestor.io/ja/docs/cli/global-flags.md)
- [`--stdin`](https://orchestor.io/ja/docs/cli/global-flags.md#%E6%A8%99%E6%BA%96%E5%85%A5%E5%8A%9B)
- [`--from-stdin`](https://orchestor.io/ja/docs/cli/global-flags.md#%E6%A8%99%E6%BA%96%E5%85%A5%E5%8A%9B)
- [`--page-all`](https://orchestor.io/ja/docs/cli/global-flags.md#%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%E3%82%92%E5%8F%96%E5%BE%97)
- [`--timing`](https://orchestor.io/ja/docs/cli/global-flags.md#%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88%E6%99%82%E9%96%93)
- [`--readonly`](https://orchestor.io/ja/docs/cli/global-flags.md#%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%E5%B0%82%E7%94%A8%E3%83%A2%E3%83%BC%E3%83%89)
- [`--wrap-untrusted`](https://orchestor.io/ja/docs/cli/global-flags.md#%E5%A4%96%E9%83%A8%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%AE%E7%9B%AE%E5%8D%B0%E4%BB%98%E3%81%91)

各オプションの詳細と使用例は、[グローバルオプション](https://orchestor.io/ja/docs/cli/global-flags.md)を参照してください。

---

- [Documentation index](https://orchestor.io/ja/docs/llms.txt)
- [Documentation sitemap](https://orchestor.io/docs/sitemap.md)
