> AI agents: this is one page from Mammoth Analytics documentation. The index of all pages as Markdown is https://mammoth.io/docs/llms.txt. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get Markdown.

# CLI reference

> Every mammoth CLI command (875 commands), with examples, arguments and confirmation flags. Start with doctor, how and schema.

> Generated from mammoth-cli 2.4.2, released 2026-11-02: `mammoth schema list`, `mammoth capability list` and the CLI's own `--help`. Do not edit by hand; run `npm run docs:capabilities`.

The `mammoth` CLI has 875 commands: 42 families, plus 10 single-command families grouped under [other commands](https://mammoth.io/docs/build/cli/other/). Each family page gives every command's description, a runnable example, its arguments and input fields, and the confirmation flags it needs.

- [Global flags, environment, exit codes and output](https://mammoth.io/docs/build/cli/global-flags/): what every command shares.
- [Capability contract](https://mammoth.io/docs/build/contract/): every command and API-only operation on one page, with its backing SDK method and API operation.
- Machine-readable: [`capabilities.json`](https://mammoth.io/docs/build/capabilities.json) (policy, SDK and API per command) and [`cli-reference.json`](https://mammoth.io/docs/build/cli-reference.json) (descriptions, examples, arguments, global flags).

## Start here

Install with `pipx install mammoth-cli`, then sign in with `mammoth auth login` (or set `MAMMOTH_API_TOKEN`). The CLI describes itself, so an agent can discover what it needs without these pages:

- [`mammoth doctor`](https://mammoth.io/docs/build/cli/other/#mammoth-doctor): Run environment and connectivity diagnostics.
  `mammoth doctor`
- [`mammoth schema find`](https://mammoth.io/docs/build/cli/schema/#mammoth-schema-find)
  `mammoth schema find 'view transform'`
- [`mammoth schema get`](https://mammoth.io/docs/build/cli/schema/#mammoth-schema-get)
  `mammoth schema get view.transform.bulk-replace`
- [`mammoth how`](https://mammoth.io/docs/build/cli/other/#mammoth-how): Turn a plain-language goal into an ordered recipe of commands.
  `mammoth how 'refresh a dataset daily'`
- [`mammoth resolve`](https://mammoth.io/docs/build/cli/other/#mammoth-resolve): Say what NAME refers to: a dataset, a view or a project, with ids and projects.
  `mammoth resolve uqa-w29-ren`
- [`mammoth link`](https://mammoth.io/docs/build/cli/other/#mammoth-link): Read the workspace, project, folder, dataset and view ids out of a pasted app URL.
  `mammoth link https://app.mammoth.io/workspaces/1/projects/2/data/datasets`
- [`mammoth run`](https://mammoth.io/docs/build/cli/other/#mammoth-run): Run many commands in one process: JSON Lines of cmd, args, input and flags.
  `mammoth run commands.jsonl`
- [`mammoth capabilities`](https://mammoth.io/docs/build/cli/other/#mammoth-capabilities): List what the CLI cannot do yet, and what to do instead.
  `mammoth capabilities`

`mammoth <command> --help` shows one command. The whole contract as JSON, one record per command, is `mammoth schema list --input '{"full": true}' --output json`.

Hidden groups: `mammoth agent` is not listed by `mammoth --help` until it is generally available, but its commands run; `mammoth agent --help` lists them.

## Command families

| Family | Commands | What it covers |
|---|---|---|
| [`mammoth activity`](https://mammoth.io/docs/build/cli/activity/) | 2 | Inspect workspace activity and audit history. |
| [`mammoth addon`](https://mammoth.io/docs/build/cli/addon/) | 6 | Manage workspace add-ons. |
| [`mammoth agent`](https://mammoth.io/docs/build/cli/agent/) | 45 | Work with Mammoth agent sessions, the changes a chat made, and its runs. |
| [`mammoth ai`](https://mammoth.io/docs/build/cli/ai/) | 5 | Generate AI-assisted expressions and conditions. |
| [`mammoth annotation`](https://mammoth.io/docs/build/cli/annotation/) | 5 | Manage annotations on Mammoth resources. |
| [`mammoth auth`](https://mammoth.io/docs/build/cli/auth/) | 5 | Sign in, sign out, and inspect credentials. |
| [`mammoth automation`](https://mammoth.io/docs/build/cli/automation/) | 13 | Create and manage automations. |
| [`mammoth batch`](https://mammoth.io/docs/build/cli/batch/) | 7 | Run and inspect batch operations. |
| [`mammoth billing`](https://mammoth.io/docs/build/cli/billing/) | 27 | Manage billing and hosted checkout flows. |
| [`mammoth browse`](https://mammoth.io/docs/build/cli/browse/) | 9 | Browse projects and workspace resources. |
| [`mammoth capability`](https://mammoth.io/docs/build/cli/capability/) | 3 | Discover API operation support and policies. |
| [`mammoth client-app`](https://mammoth.io/docs/build/cli/client-app/) | 5 | Manage the workspace's API keys (client apps): key + secret credentials for scripts and integrations. |
| [`mammoth collection`](https://mammoth.io/docs/build/cli/collection/) | 21 | Group dashboards into a collection and share the set as one. |
| [`mammoth completion`](https://mammoth.io/docs/build/cli/completion/) | 2 | Install or print shell completion. |
| [`mammoth config`](https://mammoth.io/docs/build/cli/config/) | 4 | Read and update local CLI configuration. |
| [`mammoth connector`](https://mammoth.io/docs/build/cli/connector/) | 42 | Manage data connectors and connector profiles. |
| [`mammoth context`](https://mammoth.io/docs/build/cli/context/) | 4 | Inspect and select the active project context. |
| [`mammoth dashboard`](https://mammoth.io/docs/build/cli/dashboard/) | 167 | Build, query, and publish dashboards. |
| [`mammoth dataset`](https://mammoth.io/docs/build/cli/dataset/) | 37 | Create, inspect, and manage datasets. |
| [`mammoth external-key`](https://mammoth.io/docs/build/cli/external-key/) | 4 | Manage LLM provider keys (OpenAI, Anthropic, etc.) used by AI features. |
| [`mammoth file`](https://mammoth.io/docs/build/cli/file/) | 11 | Upload files (file upload; a whole local directory: file upload-folder) and manage uploaded source files. An uploaded file becomes a dataset: delete it with 'dataset delete'. |
| [`mammoth folder`](https://mammoth.io/docs/build/cli/folder/) | 10 | Create, rename, move and delete project folders that organize datasets, views and dashboards. To upload a local directory use 'file upload-folder'. |
| [`mammoth history`](https://mammoth.io/docs/build/cli/history/) | 4 | List the writes made from this machine, undo them, and resume a stopped run. |
| [`mammoth job`](https://mammoth.io/docs/build/cli/job/) | 4 | Inspect and wait for asynchronous jobs. |
| [`mammoth log`](https://mammoth.io/docs/build/cli/log/) | 2 | Locate and read the local run log. |
| [`mammoth notification`](https://mammoth.io/docs/build/cli/notification/) | 5 | Manage workspace notifications. |
| [`mammoth parameter`](https://mammoth.io/docs/build/cli/parameter/) | 14 | Manage parameters and parameter groups. |
| [`mammoth project`](https://mammoth.io/docs/build/cli/project/) | 25 | Create and manage projects. |
| [`mammoth recipe`](https://mammoth.io/docs/build/cli/recipe/) | 2 | Run a common multi-step task as one command. |
| [`mammoth schedule`](https://mammoth.io/docs/build/cli/schedule/) | 5 | Manage scheduled work. |
| [`mammoth schema`](https://mammoth.io/docs/build/cli/schema/) | 3 | Find concise command input guidance or fetch full schemas. |
| [`mammoth skill`](https://mammoth.io/docs/build/cli/skill/) | 7 | Install and manage the Mammoth agent skill. |
| [`mammoth snippet`](https://mammoth.io/docs/build/cli/snippet/) | 8 | Manage reusable snippets. |
| [`mammoth support`](https://mammoth.io/docs/build/cli/support/) | 117 | Manage support and administration resources. |
| [`mammoth template`](https://mammoth.io/docs/build/cli/template/) | 5 | Manage legacy workspace templates (the project catalog is 'workflow template'). |
| [`mammoth token`](https://mammoth.io/docs/build/cli/token/) | 3 | Create, list, and revoke long-lived API keys (aliases of client-app). |
| [`mammoth trash`](https://mammoth.io/docs/build/cli/trash/) | 3 | Inspect, restore, and remove trashed resources. |
| [`mammoth user`](https://mammoth.io/docs/build/cli/user/) | 7 | Manage users and account settings. |
| [`mammoth view`](https://mammoth.io/docs/build/cli/view/) | 146 | Transform, query, and publish data views. |
| [`mammoth webhook`](https://mammoth.io/docs/build/cli/webhook/) | 7 | Manage webhooks. |
| [`mammoth workflow`](https://mammoth.io/docs/build/cli/workflow/) | 31 | Create and manage workflows. |
| [`mammoth workspace`](https://mammoth.io/docs/build/cli/workspace/) | 33 | Manage workspace settings and members. |
| [Other commands](https://mammoth.io/docs/build/cli/other/) | 10 | `calc`, `capabilities`, `doctor`, `how`, `link`, `report list`, `resolve`, `run`, `upgrade`, `version` |

---
Source: https://mammoth.io/docs/build/cli.md · Updated: 2026-11-02
