# CLI Overview (/docs/cli)

The `dome` CLI is the primary command-line interface for the Dome Platform.

## Installation [#installation]

```bash title="macOS (Homebrew)"
brew trust dome-systems/tap
brew install dome-systems/tap/dome
```

Homebrew 6 requires the `brew trust` line before it loads a third-party tap's formulae. Refer to [Install](/install) for the full walkthrough, including a direct-download alternative.

## Global flags [#global-flags]

All commands support these flags:

| Flag         | Type   | Description                                                                                                                                                                                                     |
| ------------ | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--context`  | string | Use a specific context (overrides active context)                                                                                                                                                               |
| `--server`   | string | Target a different Dome Platform host. Resolves a [context](/docs/cli/session/context) for that host (credential and scope), not just the URL.                                                                  |
| `--activity` | string | Stable activity ID this run asserts. Every Connect RPC carries `X-Dome-Activity-Id` so audit events from the run share one [activity chain](/operate/audit#list-activity-chains). Overrides `DOME_ACTIVITY_ID`. |
| `--format`   | string | Output format: `text`, `json`, or `quiet`                                                                                                                                                                       |
| `--json`     | bool   | Output as JSON                                                                                                                                                                                                  |
| `--quiet`    | bool   | Minimal output (IDs only)                                                                                                                                                                                       |
| `--no-color` | bool   | Disable colored output                                                                                                                                                                                          |

`--server` does not send the active context's token to a new host. Exactly one stored context for that host is adopted. Several matching contexts is an error that names the candidates — pick one with `--context`. None falls back to the stored session for that host with the previous workspace cleared. Auth and context commands are exempt, so `dome auth login --server` still works before any context exists. Naming the same host the active context already uses is a no-op.

## Environment variables [#environment-variables]

| Variable           | Description                                                     |
| ------------------ | --------------------------------------------------------------- |
| `DOME_API_KEY`     | Sets the active context's token. Useful for CI and scripts.     |
| `DOME_ACTIVITY_ID` | Default activity ID for the process. `--activity` overrides it. |

## Command groups [#command-groups]

### Build [#build]

| Command                                            | Description                                                     |
| -------------------------------------------------- | --------------------------------------------------------------- |
| [`agents`](/docs/cli/build/agents)                 | Manage agent registrations, lifecycle, and API keys             |
| [`managed-agents`](/docs/cli/build/managed-agents) | Create, configure, and run agents that Dome hosts               |
| [`gateways`](/docs/cli/build/gateway)              | Manage gateways, membership, and agent access                   |
| [`triggers`](/docs/cli/build/triggers)             | Schedule managed-agent runs and start them from signed webhooks |

### Connect [#connect]

| Command                                                              | Description                                                        |
| -------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [`callers`](/docs/cli/connect/callers)                               | Inspect and erase verified end users projected from audit activity |
| [`verification-providers`](/docs/cli/connect/verification-providers) | Manage the OIDC and HMAC providers that verify end-user identity   |
| [`tools`](/docs/cli/connect/tools)                                   | Manage MCP server connections the gateway proxies                  |
| [`models`](/docs/cli/connect/models)                                 | Manage LLM model connections and routing pools                     |

### Govern [#govern]

| Command                                       | Description                                                                               |
| --------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [`rules`](/docs/cli/govern/rules)             | Deploy, validate, simulate, and rollback authorization rules                              |
| [`guards`](/docs/cli/govern/guards)           | Create and assign content filters and tool validators                                     |
| [`escalations`](/docs/cli/govern/escalations) | Create review workflows for selected authorization decisions                              |
| [`quotas`](/docs/cli/govern/quota)            | Cap spend, tokens, or calls for workspace, agent, pool, model, gateway, and tool subjects |

### Operate [#operate]

| Command                                          | Description                                                              |
| ------------------------------------------------ | ------------------------------------------------------------------------ |
| [`audit`](/docs/cli/operate/audit)               | Query, stream, and export audit events                                   |
| [`integrations`](/docs/cli/operate/integrations) | List integrations connected to the active workspace                      |
| [`webhooks`](/docs/cli/operate/webhooks)         | Manage webhook subscriptions, delivery history, and the provider catalog |
| [`usage`](/docs/cli/operate/usage)               | Show LLM token usage and estimated cost for the active workspace         |
| [`usage-caps`](/docs/cli/operate/usage-caps)     | Show free-tier monthly allowances for the active workspace               |

### Manage [#manage]

| Command                                             | Description                                                      |
| --------------------------------------------------- | ---------------------------------------------------------------- |
| [`config`](/docs/cli/settings/config)               | Platform configuration                                           |
| [`import`](/docs/cli/manage/import)                 | Plan and apply reviewed configuration to the active target scope |
| [`export`](/docs/cli/manage/export)                 | Write reviewed configuration from the active source scope        |
| [`platform-keys`](/docs/cli/settings/platform-keys) | Manage platform API keys                                         |
| [`tenants`](/docs/cli/settings/tenants)             | List, inspect, and create tenants                                |
| [`tenant`](/docs/cli/settings/tenant)               | Manage tenant-level Act-As provider selection                    |
| [`orgs`](/docs/cli/settings/org)                    | Manage organization-level Act-As provider selection              |
| [`workspaces`](/docs/cli/settings/workspace)        | Manage workspaces, members, Act-As, and verification providers   |
| [`billing`](/docs/cli/manage/billing)               | Manage organization plans, seats, invoices, and payment methods  |

### Developer [#developer]

| Command                                            | Description                         |
| -------------------------------------------------- | ----------------------------------- |
| [`quickstart`](/docs/cli/developer/quickstart-cmd) | Scaffold a new Dome-enabled project |

### Session [#session]

| Command                                | Description                                         |
| -------------------------------------- | --------------------------------------------------- |
| [`auth`](/docs/cli/session/auth)       | Authentication management                           |
| [`context`](/docs/cli/session/context) | Manage CLI contexts (org/tenant/workspace sessions) |

### Standalone [#standalone]

| Command                                   | Description              |
| ----------------------------------------- | ------------------------ |
| [`mcp`](/docs/cli/standalone/mcp)         | MCP server for AI agents |
| [`version`](/docs/cli/standalone/version) | Show CLI version         |

## Next steps [#next-steps]

Authenticate first, then scaffold — or drive the same jobs from MCP:

* [Install](/install) to authenticate and select a workspace
* [Quickstart](/quickstart) to scaffold and verify governed traffic
* [MCP](/docs/reference/mcp) when you prefer tool-based access from an assistant
* [API](/docs/api) for the management and data-plane HTTP surfaces