# workspace

> Every coline workspace command, with its flags and the action it runs.

Source: https://docs.coline.app/cli/reference/workspace

{/* Generated by apps/docs/scripts/cli-reference.ts from coline's command tree and the cli action catalog. Don't edit it: run `pnpm --filter @colineapp/docs cli:reference`. */}

List workspaces and pick the default. Every `coline workspace` command, 51 in all.

## workspace list

List your workspaces.

```text
coline workspace list [flags]
```

Also: `coline workspace ls`.

**Built into coline.** It isn't one action: what it does is above.

```bash
coline workspace list
coline workspace list --ids-only
```

## workspace use

Set the default workspace for this profile.

```text
coline workspace use [<slug>] [flags]
```

**Built into coline.** It isn't one action: what it does is above.

```bash
coline workspace use acme
coline workspace use https://coline.app/acme/mail
```

## workspace logo

Change the workspace's logo to a picture here: PNG, JPEG, GIF, WebP or SVG, up to 5 MB. Only people who manage the workspace's members can.

```text
coline workspace logo <image> [flags]
```

**Built into coline.** · **Calls** `POST /api/workspaces/[workspaceSlug]/settings/logo` · **Effect** write · **Can wait for your approval** no

```bash
coline workspace logo logo.svg -w acme
coline workspace logo mark.png --json
coline workspace logo logo.png -w acme --dry-run
```

## workspace access get

The workspace's access settings as the person may see them.

It changes nothing.

```text
coline workspace access get [flags]
```

**Action** `workspace.access.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace access get -w acme
coline workspace access get -w acme --json '{}' --fields id
```

## workspace audit-log list

What happened in the workspace, newest first: who did what to which item, a page at a time. Filter by action, by who did it, or by time. Other people's personal crew, private goals and computers are left out. Admins and the owner only.

It changes nothing.

```text
coline workspace audit-log list [flags]
```

**Action** `workspace.auditLog.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag                          | What it does                                                                         |
| ----------------------------- | ------------------------------------------------------------------------------------ |
| `--page <number>`             | Which page, from 1. Default 1.                                                       |
| `--limit <number>`            | Entries per page, 1 to 100. Default 50.                                              |
| `--action <text>`             | Only entries with exactly this action, e.g. mail.address.created.                    |
| `--action-starts-with <text>` | Only entries whose action starts with this, e.g. mail. Ignored when action is given. |
| `--actor-user-id <id>`        | Only what this person (a user id) did.                                               |
| `--start-date <text>`         | Only entries at or after this time, ISO 8601 with a time zone.                       |
| `--end-date <text>`           | Only entries at or before this time, ISO 8601 with a time zone.                      |
| `--input <file>`              | Read the input as JSON from a file; - reads stdin.                                   |

```bash
coline workspace audit-log list -w acme
coline workspace audit-log list -w acme --json '{}' --fields id
```

## workspace developer ai-activity get

The workspace's AI calls billed to it over the last 1, 7, 30 or 90 days: requests, failures, tokens and spend in total, by day, by model and by key, person or app, with the most recent calls. Never prompts or answers. Admins and the owner only.

It changes nothing.

Set days with --json '\{…}' or --input.

```text
coline workspace developer ai-activity get [flags]
```

**Action** `workspace.developer.aiActivity.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace developer ai-activity get -w acme
coline workspace developer ai-activity get -w acme --json '{}' --fields id
```

## workspace developer api-keys list

The workspace's API keys: name, the key's first characters, scopes, status, last use and expiry, never the key itself. Making a key stays in the app. Admins and the owner only.

It changes nothing.

```text
coline workspace developer api-keys list [flags]
```

**Action** `workspace.developer.apiKeys.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace developer api-keys list -w acme
coline workspace developer api-keys list -w acme --json '{}' --fields id
```

## workspace developer api-keys revoke

Revokes one of the workspace's API keys. It stops working at once and can't be turned back on. Admins and the owner only.

It removes or overwrites something, so it runs only with --confirm.

```text
coline workspace developer api-keys revoke [flags]
```

**Action** `workspace.developer.apiKeys.revoke` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                | What it does                                                   |
| ------------------- | -------------------------------------------------------------- |
| `--api-key-id <id>` | The key's id, from workspace.developer.apiKeys.list. Required. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.             |

```bash
coline workspace developer api-keys revoke -w acme --api-key-id <api-key-id> --confirm
coline workspace developer api-keys revoke -w acme --json '{"apiKeyId":"<api-key-id>"}' --fields id --confirm
```

## workspace developer credits get

The workspace's API credit balance, what it was given and has spent, and its 50 latest credit changes. Buying credits stays in the app. Admins who manage credits only.

It changes nothing.

```text
coline workspace developer credits get [flags]
```

**Action** `workspace.developer.credits.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace developer credits get -w acme
coline workspace developer credits get -w acme --json '{}' --fields id
```

## workspace developer oauth-clients delete

Revokes one of the workspace's OAuth apps. Everything signed in with it stops working, and bots that use it are told. Admins and the owner only.

It removes or overwrites something, so it runs only with --confirm.

```text
coline workspace developer oauth-clients delete [flags]
```

**Action** `workspace.developer.oauthClients.delete` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag               | What it does                                                                                              |
| ------------------ | --------------------------------------------------------------------------------------------------------- |
| `--client-id <id>` | The OAuth app's id (the row id, not its client id), from workspace.developer.oauthClients.list. Required. |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin.                                                        |

```bash
coline workspace developer oauth-clients delete -w acme --client-id <client-id> --confirm
coline workspace developer oauth-clients delete -w acme --json '{"clientId":"<client-id>"}' --fields id --confirm
```

## workspace developer oauth-clients list

The workspace's OAuth apps: name, client id, redirect addresses, status and last use, never a secret. Making one stays in the app. Admins and the owner only.

It changes nothing.

```text
coline workspace developer oauth-clients list [flags]
```

**Action** `workspace.developer.oauthClients.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace developer oauth-clients list -w acme
coline workspace developer oauth-clients list -w acme --json '{}' --fields id
```

## workspace developer request-logs list

The workspace's last 100 API requests, newest first, with who made each, the path, status and time taken, and a summary. Admins and the owner only.

It changes nothing.

```text
coline workspace developer request-logs list [flags]
```

**Action** `workspace.developer.requestLogs.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace developer request-logs list -w acme
coline workspace developer request-logs list -w acme --json '{}' --fields id
```

## workspace imports linear get

How a Linear import is going: its status, how many issues are done, and when it finishes, what came in and who to invite. Admins and the owner only.

It changes nothing.

```text
coline workspace imports linear get [flags]
```

**Action** `workspace.imports.linear.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag               | What it does                                                    |
| ------------------ | --------------------------------------------------------------- |
| `--import-id <id>` | The import's id, from workspace.imports.linear.start. Required. |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin.              |

```bash
coline workspace imports linear get -w acme --import-id <import-id>
coline workspace imports linear get -w acme --json '{"importId":"<import-id>"}' --fields id
```

## workspace imports linear retry

Runs a failed Linear import again into the same task board, updating what came in the first time. Only a failed import can be retried. Admins and the owner only.

```text
coline workspace imports linear retry [flags]
```

**Action** `workspace.imports.linear.retry` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag               | What it does                                       |
| ------------------ | -------------------------------------------------- |
| `--import-id <id>` | The failed import's id. Required.                  |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace imports linear retry -w acme --import-id <import-id>
coline workspace imports linear retry -w acme --json '{"importId":"<import-id>"}' --fields id
```

## workspace imports linear start

Imports a Linear team as a new task board: its issues, comments and history. It runs in the background; follow it with workspace.imports.linear.get. Admins and the owner only.

```text
coline workspace imports linear start [flags]
```

**Action** `workspace.imports.linear.start` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                    | What it does                                                            |
| ----------------------- | ----------------------------------------------------------------------- |
| `--linear-team-id <id>` | The Linear team's id, from workspace.integrations.linear.get. Required. |
| `--input <file>`        | Read the input as JSON from a file; - reads stdin.                      |

```bash
coline workspace imports linear start -w acme --linear-team-id <linear-team-id>
coline workspace imports linear start -w acme --json '{"linearTeamId":"<linear-team-id>"}' --fields id
```

## workspace integrations github disconnect

Disconnects GitHub from the workspace's Tasks: pull requests stop updating tasks. Connecting it again happens in the app. Admins and the owner only.

It removes or overwrites something, so it runs only with --confirm.

```text
coline workspace integrations github disconnect [flags]
```

**Action** `workspace.integrations.github.disconnect` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace integrations github disconnect -w acme --confirm
coline workspace integrations github disconnect -w acme --json '{}' --fields id --confirm
```

## workspace integrations github get

Whether the workspace is connected to GitHub for Tasks or for Code, which organization, and which repositories it may reach.

It changes nothing.

```text
coline workspace integrations github get [flags]
```

**Action** `workspace.integrations.github.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                         |
| ---------------- | ---------------------------------------------------- |
| `--app <text>`   | tasks (the default) or code. One of `tasks`, `code`. |
| `--input <file>` | Read the input as JSON from a file; - reads stdin.   |

```bash
coline workspace integrations github get -w acme
coline workspace integrations github get -w acme --json '{}' --fields id
```

## workspace integrations github update

Turns on or off moving tasks along when their GitHub pull requests change, for the Tasks connection. Admins and the owner only.

```text
coline workspace integrations github update [flags]
```

**Action** `workspace.integrations.github.update` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                | What it does                                                                           |
| ------------------- | -------------------------------------------------------------------------------------- |
| `--auto-transition` | Whether tasks move along when their pull requests change. Left out, it stays as it is. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                     |

```bash
coline workspace integrations github update -w acme
coline workspace integrations github update -w acme --json '{}' --fields id
```

## workspace integrations linear disconnect

Disconnects Linear from the workspace. Boards already imported stay. Connecting it again happens in the app. Admins and the owner only.

It removes or overwrites something, so it runs only with --confirm.

```text
coline workspace integrations linear disconnect [flags]
```

**Action** `workspace.integrations.linear.disconnect` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace integrations linear disconnect -w acme --confirm
coline workspace integrations linear disconnect -w acme --json '{}' --fields id --confirm
```

## workspace integrations linear get

Whether the workspace is connected to Linear, as which Linear organization and person, and its Linear teams, for importing one as a task board. Admins and the owner only.

It changes nothing.

```text
coline workspace integrations linear get [flags]
```

**Action** `workspace.integrations.linear.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace integrations linear get -w acme
coline workspace integrations linear get -w acme --json '{}' --fields id
```

## workspace mail addresses create

Adds an email address on the workspace's mail domain, or on one of its own domains: for a person, a shared inbox, a group, an alias, the system or a catch-all. A new address is reserved unless you say otherwise. Admins and the owner only.

```text
coline workspace mail addresses create [flags]
```

**Action** `workspace.mail.addresses.create` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                      | What it does                                                                                                                                                                 |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--local-part <text>`     | The part before the @. Leave it out only for a catch-all.                                                                                                                    |
| `--display-name <text>`   | The name mail from it shows.                                                                                                                                                 |
| `--assigned-user-id <id>` | Who the address is for. A user id; null for nobody.                                                                                                                          |
| `--kind <text>`           | What the address is. Default system. One of `user`, `shared`, `group`, `alias`, `system`, `catch_all`.                                                                       |
| `--status <text>`         | active, reserved or disabled. Default reserved; an active address on one of the workspace's own domains needs that domain verified. One of `active`, `reserved`, `disabled`. |
| `--domain-id <id>`        | One of the workspace's domains, from workspace.mail.domains.list. Leave it out for the workspace's own Coline domain.                                                        |
| `--input <file>`          | Read the input as JSON from a file; - reads stdin.                                                                                                                           |

```bash
coline workspace mail addresses create -w acme
coline workspace mail addresses create -w acme --json '{}' --fields id
```

## workspace mail addresses delete

Removes a workspace address and its route; mail to it stops arriving. Admins and the owner only.

It removes or overwrites something, so it runs only with --confirm.

```text
coline workspace mail addresses delete [flags]
```

**Action** `workspace.mail.addresses.delete` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                | What it does                                                    |
| ------------------- | --------------------------------------------------------------- |
| `--address-id <id>` | The address's id, from workspace.mail.addresses.list. Required. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.              |

```bash
coline workspace mail addresses delete -w acme --address-id <address-id> --confirm
coline workspace mail addresses delete -w acme --json '{"addressId":"<address-id>"}' --fields id --confirm
```

## workspace mail addresses list

The workspace's email addresses with where each one's mail goes and its out-of-office reply, its shared inboxes and their people, and its routes. Members only, not guests.

It changes nothing.

```text
coline workspace mail addresses list [flags]
```

**Action** `workspace.mail.addresses.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace mail addresses list -w acme
coline workspace mail addresses list -w acme --json '{}' --fields id
```

## workspace mail addresses update

Changes what you name of a workspace address: its status, kind, display name, signature, or who it is for. Everything else stays as it is. Admins and the owner only.

```text
coline workspace mail addresses update [flags]
```

**Action** `workspace.mail.addresses.update` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                      | What it does                                                           |
| ------------------------- | ---------------------------------------------------------------------- |
| `--address-id <id>`       | The address's id, from workspace.mail.addresses.list. Required.        |
| `--status <text>`         | active, reserved or disabled. One of `active`, `reserved`, `disabled`. |
| `--kind <text>`           | One of `user`, `shared`, `group`, `alias`, `system`, `catch_all`.      |
| `--display-name <text>`   | The name mail from it shows. Null clears it.                           |
| `--signature <text>`      | The signature added to mail from it. Null or empty clears it.          |
| `--assigned-user-id <id>` | Who the address is for. A user id; null for nobody.                    |
| `--input <file>`          | Read the input as JSON from a file; - reads stdin.                     |

```bash
coline workspace mail addresses update -w acme --address-id <address-id>
coline workspace mail addresses update -w acme --json '{"addressId":"<address-id>"}' --fields id
```

## workspace mail delivery-events list

What happened to the workspace's incoming and outgoing mail, to find a lost message. In recent mode, the latest delivery events and whether receiving is set up. In debugger mode, each message's whole path, searched by sender, recipient, subject or message id, with whether a failed delivery can be replayed. Admins and the owner only.

It changes nothing.

```text
coline workspace mail delivery-events list [flags]
```

**Action** `workspace.mail.deliveryEvents.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag                         | What it does                                                                                                    |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------- |
| `--mode <text>`              | recent (the default) for the latest events, debugger to search message by message. One of `recent`, `debugger`. |
| `--limit <number>`           | How many, 1 to 100. Default 50 events in recent mode, 25 messages in debugger mode.                             |
| `--sender <text>`            | Debugger mode: the sender's address.                                                                            |
| `--recipient <text>`         | Debugger mode: the recipient's address.                                                                         |
| `--subject <text>`           | Debugger mode: words in the subject.                                                                            |
| `--provider-event-id <id>`   | Debugger mode: the mail service's event id.                                                                     |
| `--internet-message-id <id>` | Debugger mode: the message's Message-ID header.                                                                 |
| `--input <file>`             | Read the input as JSON from a file; - reads stdin.                                                              |

```bash
coline workspace mail delivery-events list -w acme
coline workspace mail delivery-events list -w acme --json '{}' --fields id
```

## workspace mail delivery-events replay

Delivers a failed incoming message again from the copy Coline kept, when it still has the message and its recipient. Find the event with workspace.mail.deliveryEvents.list in debugger mode. Admins and the owner only.

```text
coline workspace mail delivery-events replay [flags]
```

**Action** `workspace.mail.deliveryEvents.replay` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                       | What it does                                                       |
| -------------------------- | ------------------------------------------------------------------ |
| `--delivery-event-id <id>` | The failed event's id: a trace's replay.deliveryEventId. Required. |
| `--input <file>`           | Read the input as JSON from a file; - reads stdin.                 |

```bash
coline workspace mail delivery-events replay -w acme --delivery-event-id <delivery-event-id>
coline workspace mail delivery-events replay -w acme --json '{"deliveryEventId":"<delivery-event-id>"}' --fields id
```

## workspace mail domains addresses create

Adds an active address on one of the workspace's verified domains: for a person, a shared inbox, a group, an alias or a catch-all. Give it a route with workspace.mail.routes.create. Admins and the owner only.

```text
coline workspace mail domains addresses create [flags]
```

**Action** `workspace.mail.domains.addresses.create` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                      | What it does                                                                                                |
| ------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `--domain-id <id>`        | The domain's id, from workspace.mail.domains.list. Required.                                                |
| `--local-part <text>`     | The part before the @. Required.                                                                            |
| `--kind <text>`           | user, shared, group, alias or catch\_all. Required. One of `user`, `shared`, `group`, `alias`, `catch_all`. |
| `--display-name <text>`   | The name mail from it shows.                                                                                |
| `--assigned-user-id <id>` | Who the address is for: a user id in the workspace; null for nobody.                                        |
| `--input <file>`          | Read the input as JSON from a file; - reads stdin.                                                          |

```bash
coline workspace mail domains addresses create -w acme --domain-id <domain-id> --local-part "…" --kind user
coline workspace mail domains addresses create -w acme --json '{"domainId":"<domain-id>","localPart":"…","kind":"user"}' --fields id
```

## workspace mail domains confirm

Confirms that the domain's mail now comes to Coline. Refused until the domain's ownership and MX records are verified, Coline is set up to receive for it, and at least one address on it has a route. Admins and the owner only.

```text
coline workspace mail domains confirm [flags]
```

**Action** `workspace.mail.domains.confirm` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag               | What it does                                                 |
| ------------------ | ------------------------------------------------------------ |
| `--domain-id <id>` | The domain's id, from workspace.mail.domains.list. Required. |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin.           |

```bash
coline workspace mail domains confirm -w acme --domain-id <domain-id>
coline workspace mail domains confirm -w acme --json '{"domainId":"<domain-id>"}' --fields id
```

## workspace mail domains create

Adds one of the company's own domains for the workspace's mail, registers it with Coline's mail service, and answers with the DNS records to set. A domain the workspace already has comes back as it is; one another workspace has is refused. Admins and the owner only.

It reaches people outside Coline right away.

```text
coline workspace mail domains create [flags]
```

**Action** `workspace.mail.domains.create` · **Effect** external, reaches people outside Coline · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag              | What it does                                       |
| ----------------- | -------------------------------------------------- |
| `--domain <text>` | The domain, e.g. acme.com. Required.               |
| `--input <file>`  | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace mail domains create -w acme --domain "…"
coline workspace mail domains create -w acme --json '{"domain":"…"}' --fields id
```

## workspace mail domains groups create

Makes a group address on one of the workspace's verified domains that delivers to several shared inboxes. Email addresses, which can be outside the workspace, are added in Coline, not from the command line. Admins and the owner only.

It reaches people outside Coline right away.

```text
coline workspace mail domains groups create [flags]
```

**Action** `workspace.mail.domains.groups.create` · **Effect** external, reaches people outside Coline · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                        | What it does                                                 |
| --------------------------- | ------------------------------------------------------------ |
| `--domain-id <id>`          | The domain's id, from workspace.mail.domains.list. Required. |
| `--local-part <text>`       | The part before the @. Required.                             |
| `--display-name <text>`     | The group's name. Required.                                  |
| `--mailbox-ids <list>`      | The shared inboxes it delivers to.                           |
| `--target-addresses <list>` | The addresses it delivers to, inside the workspace or not.   |
| `--input <file>`            | Read the input as JSON from a file; - reads stdin.           |

```bash
coline workspace mail domains groups create -w acme --domain-id <domain-id> --local-part "…" --display-name "…"
coline workspace mail domains groups create -w acme --json '{"domainId":"<domain-id>","localPart":"…","displayName":"…"}' --fields id
```

## workspace mail domains list

The company's own domains the workspace uses for mail, each with the DNS records to set, which checks pass, what still blocks receiving or sending, and its addresses. Admins and the owner only.

It changes nothing.

```text
coline workspace mail domains list [flags]
```

**Action** `workspace.mail.domains.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace mail domains list -w acme
coline workspace mail domains list -w acme --json '{}' --fields id
```

## workspace mail domains set-catch-all

Turns a domain's catch-all on, so mail to any unknown address on it goes to one shared inbox, or off, so that mail bounces. Admins and the owner only.

```text
coline workspace mail domains set-catch-all [flags]
```

**Action** `workspace.mail.domains.setCatchAll` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                | What it does                                                           |
| ------------------- | ---------------------------------------------------------------------- |
| `--domain-id <id>`  | The domain's id, from workspace.mail.domains.list. Required.           |
| `--enabled`         | True to catch mail to unknown addresses, false to bounce it. Required. |
| `--mailbox-id <id>` | The shared inbox it goes to. Needed to turn it on.                     |
| `--reason <text>`   | Turning it off: why, up to 500 characters.                             |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                     |

```bash
coline workspace mail domains set-catch-all -w acme --domain-id <domain-id> --enabled
coline workspace mail domains set-catch-all -w acme --json '{"domainId":"<domain-id>","enabled":"true"}' --fields id
```

## workspace mail domains set-receiving

Turns receiving mail for a domain on or off. Turning it on is refused until the domain is ready to receive: ownership and MX verified, Coline set up to receive for it, and at least one address on it with a route. Admins and the owner only.

```text
coline workspace mail domains set-receiving [flags]
```

**Action** `workspace.mail.domains.setReceiving` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag               | What it does                                                  |
| ------------------ | ------------------------------------------------------------- |
| `--domain-id <id>` | The domain's id, from workspace.mail.domains.list. Required.  |
| `--enabled`        | True to receive mail for the domain, false to stop. Required. |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin.            |

```bash
coline workspace mail domains set-receiving -w acme --domain-id <domain-id> --enabled
coline workspace mail domains set-receiving -w acme --json '{"domainId":"<domain-id>","enabled":"true"}' --fields id
```

## workspace mail domains set-sending

Turns sending mail from a domain on or off. Turning it on is refused until ownership, SPF, DKIM, DMARC and the bounce-domain records are verified. Admins and the owner only.

```text
coline workspace mail domains set-sending [flags]
```

**Action** `workspace.mail.domains.setSending` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag               | What it does                                                 |
| ------------------ | ------------------------------------------------------------ |
| `--domain-id <id>` | The domain's id, from workspace.mail.domains.list. Required. |
| `--enabled`        | True to send from the domain, false to stop. Required.       |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin.           |

```bash
coline workspace mail domains set-sending -w acme --domain-id <domain-id> --enabled
coline workspace mail domains set-sending -w acme --json '{"domainId":"<domain-id>","enabled":"true"}' --fields id
```

## workspace mail domains shared-inboxes create

Makes a shared inbox with its own address on one of the workspace's verified domains, in one step, with you as its owner. Admins and the owner only.

```text
coline workspace mail domains shared-inboxes create [flags]
```

**Action** `workspace.mail.domains.sharedInboxes.create` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                    | What it does                                                  |
| ----------------------- | ------------------------------------------------------------- |
| `--domain-id <id>`      | The domain's id, from workspace.mail.domains.list. Required.  |
| `--local-part <text>`   | The part before the @. Required.                              |
| `--display-name <text>` | The inbox's name, also the name mail from it shows. Required. |
| `--input <file>`        | Read the input as JSON from a file; - reads stdin.            |

```bash
coline workspace mail domains shared-inboxes create -w acme --domain-id <domain-id> --local-part "…" --display-name "…"
coline workspace mail domains shared-inboxes create -w acme --json '{"domainId":"<domain-id>","localPart":"…","displayName":"…"}' --fields id
```

## workspace mail domains verify

Checks a domain's DNS records again and updates which of them pass and whether the domain is verified. Admins and the owner only.

```text
coline workspace mail domains verify [flags]
```

**Action** `workspace.mail.domains.verify` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag               | What it does                                                 |
| ------------------ | ------------------------------------------------------------ |
| `--domain-id <id>` | The domain's id, from workspace.mail.domains.list. Required. |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin.           |

```bash
coline workspace mail domains verify -w acme --domain-id <domain-id>
coline workspace mail domains verify -w acme --json '{"domainId":"<domain-id>"}' --fields id
```

## workspace mail mailboxes create

Makes a shared inbox, with you as its owner. A shared or group inbox also gets an address from its name on the workspace's main mail domain. Admins and the owner only.

```text
coline workspace mail mailboxes create [flags]
```

**Action** `workspace.mail.mailboxes.create` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                              | What it does                                                                  |
| --------------------------------- | ----------------------------------------------------------------------------- |
| `--name <text>`                   | The inbox's name. Required.                                                   |
| `--kind <text>`                   | shared (the default), group or system. One of `shared`, `group`, `system`.    |
| `--status <text>`                 | The inbox's status, e.g. active.                                              |
| `--assignment-mode <text>`        | How its mail is assigned, e.g. manual.                                        |
| `--default-assignee-user-id <id>` | Who its mail goes to by default: a user id in the workspace; null for nobody. |
| `--notes <text>`                  | Notes for the people in it, up to 4000 characters. Null clears them.          |
| `--input <file>`                  | Read the input as JSON from a file; - reads stdin.                            |

```bash
coline workspace mail mailboxes create -w acme --name "…"
coline workspace mail mailboxes create -w acme --json '{"name":"…"}' --fields id
```

## workspace mail mailboxes delete

Deletes a shared inbox and the addresses routed to it. Admins and the owner only.

It removes or overwrites something, so it runs only with --confirm.

```text
coline workspace mail mailboxes delete [flags]
```

**Action** `workspace.mail.mailboxes.delete` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                | What it does                                                         |
| ------------------- | -------------------------------------------------------------------- |
| `--mailbox-id <id>` | The shared inbox's id, from workspace.mail.addresses.list. Required. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                   |

```bash
coline workspace mail mailboxes delete -w acme --mailbox-id <mailbox-id> --confirm
coline workspace mail mailboxes delete -w acme --json '{"mailboxId":"<mailbox-id>"}' --fields id --confirm
```

## workspace mail mailboxes members add

Adds a workspace member to a shared inbox with a role, or changes the role of someone already in it. Making someone an inbox's owner happens in the app. Admins and the owner only.

```text
coline workspace mail mailboxes members add [flags]
```

**Action** `workspace.mail.mailboxes.members.add` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                | What it does                                                                                                                 |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `--mailbox-id <id>` | The shared inbox's id, from workspace.mail.addresses.list. Required.                                                         |
| `--user-id <id>`    | The person's user id; they must be in the workspace. Required.                                                               |
| `--role <text>`     | admin, member or viewer. It replaces the role of someone already in the inbox. Required. One of `admin`, `member`, `viewer`. |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                                                                           |

```bash
coline workspace mail mailboxes members add -w acme --mailbox-id <mailbox-id> --user-id <user-id> --role admin
coline workspace mail mailboxes members add -w acme --json '{"mailboxId":"<mailbox-id>","userId":"<user-id>","role":"admin"}' --fields id
```

## workspace mail mailboxes members remove

Takes someone out of a shared inbox; they stop seeing its mail. Admins and the owner only.

It removes or overwrites something, so it runs only with --confirm.

```text
coline workspace mail mailboxes members remove [flags]
```

**Action** `workspace.mail.mailboxes.members.remove` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                | What it does                                                         |
| ------------------- | -------------------------------------------------------------------- |
| `--mailbox-id <id>` | The shared inbox's id, from workspace.mail.addresses.list. Required. |
| `--user-id <id>`    | The person's user id. Required.                                      |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                   |

```bash
coline workspace mail mailboxes members remove -w acme --mailbox-id <mailbox-id> --user-id <user-id> --confirm
coline workspace mail mailboxes members remove -w acme --json '{"mailboxId":"<mailbox-id>","userId":"<user-id>"}' --fields id --confirm
```

## workspace mail mailboxes update

Changes what you name of a shared inbox: its status, how its mail is assigned, who gets it by default, or its notes. Its name can't change. Everything else stays as it is. Admins and the owner only.

```text
coline workspace mail mailboxes update [flags]
```

**Action** `workspace.mail.mailboxes.update` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                              | What it does                                                                  |
| --------------------------------- | ----------------------------------------------------------------------------- |
| `--mailbox-id <id>`               | The shared inbox's id, from workspace.mail.addresses.list. Required.          |
| `--status <text>`                 | The inbox's status, e.g. active.                                              |
| `--assignment-mode <text>`        | How its mail is assigned, e.g. manual.                                        |
| `--default-assignee-user-id <id>` | Who its mail goes to by default: a user id in the workspace; null for nobody. |
| `--notes <text>`                  | Notes for the people in it, up to 4000 characters. Null clears them.          |
| `--input <file>`                  | Read the input as JSON from a file; - reads stdin.                            |

```bash
coline workspace mail mailboxes update -w acme --mailbox-id <mailbox-id>
coline workspace mail mailboxes update -w acme --json '{"mailboxId":"<mailbox-id>"}' --fields id
```

## workspace mail outbound-policy get

How the workspace's mail is sent: whether its outgoing mail is stopped and why, and its daily and per-minute limits. Members only, not guests.

It changes nothing.

```text
coline workspace mail outbound-policy get [flags]
```

**Action** `workspace.mail.outboundPolicy.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace mail outbound-policy get -w acme
coline workspace mail outbound-policy get -w acme --json '{}' --fields id
```

## workspace mail outbound-policy update

The workspace's emergency stop: stops all of its outgoing mail, with a reason, or starts it again. It doesn't change the sending limits. Admins and the owner only.

```text
coline workspace mail outbound-policy update [flags]
```

**Action** `workspace.mail.outboundPolicy.update` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                 | What it does                                               |
| -------------------- | ---------------------------------------------------------- |
| `--sending-disabled` | True stops outgoing mail; false starts it again. Required. |
| `--reason <text>`    | Why it is stopped, up to 500 characters.                   |
| `--input <file>`     | Read the input as JSON from a file; - reads stdin.         |

```bash
coline workspace mail outbound-policy update -w acme --sending-disabled
coline workspace mail outbound-policy update -w acme --json '{"sendingDisabled":"true"}' --fields id
```

## workspace mail routes create

Sets where mail to a workspace address goes: a shared inbox, a forward to another address (which can be outside the workspace), a group of inboxes and addresses, dropped, or bounced. From the command line only shared inboxes, drop and bounce: a forward or an email address is set in Coline. It replaces the address's route if it has one: the priority goes back to 100 and the route is on, unless you say otherwise. Admins and the owner only.

It reaches people outside Coline right away.

```text
coline workspace mail routes create [flags]
```

**Action** `workspace.mail.routes.create` · **Effect** external, reaches people outside Coline · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                        | What it does                                                                                                                       |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `--address-id <id>`         | The address's id, from workspace.mail.addresses.list. Required.                                                                    |
| `--kind <text>`             | deliver\_to\_mailbox, forward, group, drop or bounce. Required. One of `deliver_to_mailbox`, `forward`, `group`, `drop`, `bounce`. |
| `--priority <number>`       | 1 to 1000. Default 100.                                                                                                            |
| `--is-enabled`              | Whether the route is on. Default on.                                                                                               |
| `--mailbox-id <id>`         | deliver\_to\_mailbox: the shared inbox.                                                                                            |
| `--target-address <text>`   | forward: the address to forward to. deliver\_to\_mailbox: an address to deliver to instead of an inbox.                            |
| `--mailbox-ids <list>`      | group: the shared inboxes.                                                                                                         |
| `--target-addresses <list>` | group: the addresses, which can be outside the workspace.                                                                          |
| `--reason <text>`           | drop or bounce: why, up to 500 characters.                                                                                         |
| `--input <file>`            | Read the input as JSON from a file; - reads stdin.                                                                                 |

```bash
coline workspace mail routes create -w acme --address-id <address-id> --kind deliver_to_mailbox
coline workspace mail routes create -w acme --json '{"addressId":"<address-id>","kind":"deliver_to_mailbox"}' --fields id
```

## workspace mail vacation set

Sets the whole out-of-office reply for a workspace address, or turns it off: the reply goes to everyone who writes to it, inside the workspace or not. Every field is asked for, because the reply is replaced as a whole. From the command line it can only be turned off: turning it on is done in Coline. Admins and the owner only.

It reaches people outside Coline right away.

```text
coline workspace mail vacation set [flags]
```

**Action** `workspace.mail.vacation.set` · **Effect** external, reaches people outside Coline · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                 | What it does                                                              |
| -------------------- | ------------------------------------------------------------------------- |
| `--address-id <id>`  | The address's id, from workspace.mail.addresses.list. Required.           |
| `--is-enabled`       | Whether the reply is on. Required.                                        |
| `--subject <text>`   | The reply's subject; empty gives Out of office. Required.                 |
| `--body-text <text>` | The reply as plain text. Required.                                        |
| `--body-html <text>` | The reply as HTML, or null for plain text only. Required.                 |
| `--starts-at <text>` | When it starts, in UTC (2026-12-24T00:00:00Z), or null for now. Required. |
| `--ends-at <text>`   | When it ends, in UTC, or null for no end. Not before startsAt. Required.  |
| `--input <file>`     | Read the input as JSON from a file; - reads stdin.                        |

```bash
coline workspace mail vacation set -w acme --address-id <address-id> --is-enabled --subject "…" --body-text "…" --body-html "…" --starts-at "…" --ends-at "…"
coline workspace mail vacation set -w acme --json '{"addressId":"<address-id>","isEnabled":"true","subject":"…","bodyText":"…","bodyHtml":"…","startsAt":"…","endsAt":"…"}' --fields id
```

## workspace permissions get

The workspace's roles and, for each, which actions on which resources it is allowed or denied. Admins and the owner only.

It changes nothing.

```text
coline workspace permissions get [flags]
```

**Action** `workspace.permissions.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace permissions get -w acme
coline workspace permissions get -w acme --json '{}' --fields id
```

## workspace permissions overrides list

The workspace's private channels, with how many people are in each, and its restricted drives: the places where access differs from the roles. Admins and the owner only.

It changes nothing.

```text
coline workspace permissions overrides list [flags]
```

**Action** `workspace.permissions.overrides.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace permissions overrides list -w acme
coline workspace permissions overrides list -w acme --json '{}' --fields id
```

## workspace permissions update

Allows or denies one action on one resource for one role, for everyone who has that role, people and agents. It asks to be confirmed. The owner role can't be changed, and the repositories resource needs Upstream's organization policies. The workspace owner only.

It removes or overwrites something, so it runs only with --confirm.

```text
coline workspace permissions update [flags]
```

**Action** `workspace.permissions.update` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                | What it does                                                                     |
| ------------------- | -------------------------------------------------------------------------------- |
| `--role-id <id>`    | The role's id, from workspace.permissions.get or workspace.roles.list. Required. |
| `--resource <text>` | The resource, e.g. channels, drives or repositories. Required.                   |
| `--action <text>`   | The action on that resource. Required.                                           |
| `--allowed`         | True to allow it, false to deny it. Required.                                    |
| `--input <file>`    | Read the input as JSON from a file; - reads stdin.                               |

```bash
coline workspace permissions update -w acme --role-id <role-id> --resource "…" --action "…" --allowed --confirm
coline workspace permissions update -w acme --json '{"roleId":"<role-id>","resource":"…","action":"…","allowed":"true"}' --fields id --confirm
```

## workspace roles create

Makes a role of the workspace's own, with no permissions yet; give it some with workspace.permissions.update. Its key is made from the name. Admins and the owner only.

```text
coline workspace roles create [flags]
```

**Action** `workspace.roles.create` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                   | What it does                                                                        |
| ---------------------- | ----------------------------------------------------------------------------------- |
| `--name <text>`        | The role's name, up to 64 characters, with at least one letter or number. Required. |
| `--description <text>` | What the role is for, up to 256 characters.                                         |
| `--input <file>`       | Read the input as JSON from a file; - reads stdin.                                  |

```bash
coline workspace roles create -w acme --name "…"
coline workspace roles create -w acme --json '{"name":"…"}' --fields id
```

## workspace roles list

The workspace's roles, built in and its own, with how many people have each and what each may do, and whether you may make roles.

It changes nothing.

```text
coline workspace roles list [flags]
```

**Action** `workspace.roles.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace roles list -w acme
coline workspace roles list -w acme --json '{}' --fields id
```

## workspace settings get

The workspace's settings page: its profile, members, invites and what the person may change.

It changes nothing.

```text
coline workspace settings get [flags]
```

**Action** `workspace.settings.get` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline workspace settings get -w acme
coline workspace settings get -w acme --json '{}' --fields id
```
