> 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.

# mammoth context

> All 4 mammoth context commands with examples, arguments and confirmation flags: Inspect and select the active project context.

> 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`.

Inspect and select the active project context. 4 commands.

Every command also takes the [global flags](https://mammoth.io/docs/build/cli/global-flags/) (`--output`, `--yes`, `--confirm`, `--dry-run`, `--input`, `--profile`, ...), which are not repeated below. `--input` takes a JSON or YAML document of the input fields; `mammoth schema get COMMAND_ID` prints a command's full input schema.

**Confirmation.** Commands marked `--yes --confirm TARGET` or `--yes` always need those flags, even at a terminal: they never prompt. Commands marked "`--yes` or prompt" ask at an interactive terminal (table output, no `--no-input`) and otherwise need `--yes`. `--dry-run` skips confirmation and sends nothing.

## Summary

| Command | What it does | Effect | Confirmation |
|---|---|---|---|
| [`context show`](#mammoth-context-show) | Show the profile, endpoint, workspace and project the next command would use. | Read | — |
| [`context project clear`](#mammoth-context-project-clear) | Clear the active project id for one profile. Idempotent. | Benign mutation | — |
| [`context project status`](#mammoth-context-project-status) | Report the resolved active project id for one profile. | Read | — |
| [`context project use`](#mammoth-context-project-use) | Save a positive project id as the active project for one profile. | Benign mutation | — |

## context commands

### mammoth context show

Show the profile, endpoint, workspace and project the next command would use.

```bash
mammoth context show
```

- **Effect:** Read, scope `local` · **Confirmation:** none
- **Preconditions:** Local read, no network call. Shows which profile, endpoint, workspace and project the next command would use; it never prints credentials.
- **Id:** `context.show` · **Result:** `ContextShowResult`

## context project

### mammoth context project clear

Clear the active project id for one profile. Idempotent.

```bash
mammoth context project clear
```

- **Effect:** Benign mutation, scope `local` · **Confirmation:** none
- **Id:** `context.project.clear` · **Result:** `ContextProjectClearResult`

### mammoth context project status

Report the resolved active project id for one profile.

```bash
mammoth context project status
```

- **Effect:** Read, scope `local` · **Confirmation:** none
- **Id:** `context.project.status` · **Result:** `ContextProjectStatusResult`

### mammoth context project use

Save a positive project id as the active project for one profile.

```bash
mammoth context project use 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | yes | — | `int` | Positive project id to make active. |

- **Effect:** Benign mutation, scope `local` · **Confirmation:** none
- **Preconditions:** Required inputs: PROJECT_ID.
- **Id:** `context.project.use` · **Result:** `ContextProjectUseResult`

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