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

> All 25 mammoth project commands with examples, arguments and confirmation flags: Create and manage projects.

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

Create and manage projects. 25 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 |
|---|---|---|---|
| [`project bulk-delete`](#mammoth-project-bulk-delete) | Delete several projects by id. Prompt or '--yes' required. | Destructive | `--yes --confirm TARGET` |
| [`project bulk-update`](#mammoth-project-bulk-update) | Apply a role patch across named projects. High-impact: '--yes --confirm WS'. | High impact | `--yes --confirm TARGET` |
| [`project check`](#mammoth-project-check) | List what a report on this project must still account for. | Read | — |
| [`project copy`](#mammoth-project-copy) | Copy a project into a new one and wait for the copy job. | Benign mutation | — |
| [`project create`](#mammoth-project-create) | Create a project. Name comes from a positional or the 'name' field. | Benign mutation | — |
| [`project delete`](#mammoth-project-delete) | Delete one project (positional or active). | High impact | `--yes --confirm TARGET` |
| [`project ensure`](#mammoth-project-ensure) | Return the project with exactly this name, creating it when absent. | Benign mutation | — |
| [`project get`](#mammoth-project-get) | Get one project by id (positional or active project). | Read | — |
| [`project list`](#mammoth-project-list) | List the caller's member projects in the active workspace, one page at a time. | Read | — |
| [`project needs-attention`](#mammoth-project-needs-attention) | List the Monitor "Needs Attention" rows with the dataset behind each view. | Read | — |
| [`project pending-changes`](#mammoth-project-pending-changes) | Report a project's pending pipeline changes. | Read | — |
| [`project publish-credentials`](#mammoth-project-publish-credentials) | Report publish credentials for a project's ODBC endpoint. | Read | — |
| [`project resource-dependencies`](#mammoth-project-resource-dependencies) | Update project resource dependencies. | Read | — |
| [`project resource-status`](#mammoth-project-resource-status) | Report the project's in-flight resource tasks, named as such. | Read | — |
| [`project sample-flow`](#mammoth-project-sample-flow) | Create a sample flow in a project (positional or active). | Benign mutation | — |
| [`project update`](#mammoth-project-update) | Update a project's name or color from the '--input' document. | Benign mutation | — |
| [`project checkpoint list`](#mammoth-project-checkpoint-list) | List a project's checkpoints, with optional filters from '--input'. | Read | — |
| [`project data-check list`](#mammoth-project-data-check-list) | List a project's data checks, with optional filters from '--input'. | Read | — |
| [`project memory add`](#mammoth-project-memory-add) | Save one agent preference ('text' from '--input') for the caller. | Benign mutation | — |
| [`project memory list`](#mammoth-project-memory-list) | List the caller's saved agent preferences for a project. | Read | — |
| [`project memory remove`](#mammoth-project-memory-remove) | Remove the caller's saved preference at 'index' (from '--input'). | Benign mutation | `--yes` or prompt |
| [`project resource-dependencies update`](#mammoth-project-resource-dependencies-update) | Apply confirmed data-sync patches to a project's resource graph. | High impact | `--yes --confirm TARGET` |
| [`project user add`](#mammoth-project-user-add) | Add users to a project. High-impact: '--yes --confirm PROJECT_ID'. | High impact | `--yes --confirm TARGET` |
| [`project user remove`](#mammoth-project-user-remove) | Remove users from a project. High-impact: '--yes --confirm PROJECT_ID'. | High impact | `--yes --confirm TARGET` |
| [`project user update`](#mammoth-project-user-update) | Update a project member's role ('role' required; 'user_id'/'invite_id'). | High impact | `--yes` |

## project commands

### mammoth project bulk-delete

Delete several projects by id. Prompt or '--yes' required.

```bash
mammoth project bulk-delete --input '{"project_ids": [1]}' --yes
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `project_ids` | `--input` field | yes | — | `list[int]` |  |
| `timeout` | `--input` field | no | — | `int` |  |
| `poll_interval` | `--input` field | no | `2.0` | `float` |  |

- **Effect:** Destructive, scope `project` · **Confirmation:** always `--yes --confirm TARGET`, even at a terminal (TARGET is the exact id or name acted on; the `confirmation_required` error's hint names it)
- **Preconditions:** Sorted comma-separated ID-set confirmation.
- **Id:** `project.bulk-delete` · **Result:** `ProjectBulkDeleteResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.bulk_delete_and_verify`, API `DELETE /workspaces/{workspace_id}/projects` (DeleteProjects)

### mammoth project bulk-update

Apply a role patch across named projects. High-impact: '--yes --confirm WS'.

```bash
mammoth project bulk-update --input '{"patch_data": {"patches": [{"op": "add", "path": "role", "value": [{"project_id": 456, "user_roles": [{"user_id": 123, "role": "project_analyst"}]}]}]}}' --yes
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `patch_data` | `--input` field | yes | — | `dict[str, any]` |  |

- **Effect:** High impact, scope `project` · **Confirmation:** always `--yes --confirm TARGET`, even at a terminal (TARGET is the exact id or name acted on; the `confirmation_required` error's hint names it)
- **Preconditions:** Release contract is ProjectsPatch (role add/replace/remove across projects). The CLI requires every patches\[\].value item to name a project_id and the confirmation names those ids; a body that names no project is refused before dispatch. Not verified live.
- **Id:** `project.bulk-update` · **Result:** `ProjectBulkUpdateResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.bulk_update`, API `PATCH /workspaces/{workspace_id}/projects` (UpdateProjects)

### mammoth project check

List what a report on this project must still account for.

```bash
mammoth project check 123 456
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `DATASET_ID` | positional | no | — | `int` | Check only this dataset (its first view unless VIEW_ID is given); no other dataset or dashboard is read. |
| `VIEW_ID` | positional | no | — | `int` | Check this view of DATASET_ID instead of its first (most recent) one. |

- **Effect:** Read, scope `project` · **Confirmation:** none
- **Preconditions:** Reads the first view of each dataset (the one uploads and the playbooks use) and one data page per view, six resources at a time. `resources` has one status row per dataset and dashboard with its freshness (in_sync, out_of_sync or running, with data_updated_at) kept apart from its data quality (warning count), or the error that stopped its check. Given DATASET_ID it reads only that dataset's first view and skips the dashboards; also given VIEW_ID it reads that view instead. Every status row names the view_id and view_name it checked, so compare it with the view the work was on.
- **Id:** `project.check` · **Result:** `ProjectCheckResult`

### mammoth project copy

Copy a project into a new one and wait for the copy job.

```bash
mammoth project copy 123 'Revenue report'
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | yes | — | `int` | ID of the project to copy. |
| `NAME` | positional | yes | — | `str` | Name of the new project. If it is already taken, the copy is named with the next free suffix ("NAME 2", "NAME 3", ...); no need to check the name first. |
| `dataset_ids` | `--input` field | no | — | `list[int]` |  |
| `include_dashboards` | `--input` field | no | `false` | `bool` |  |
| `exclude_data` | `--input` field | no | `false` | `bool` |  |

- **Effect:** Benign mutation, scope `project` · **Confirmation:** none · **Waits:** waits for the job to finish (`--job-timeout`, `--return-running`)
- **Preconditions:** Creates a project: copies the datasets, views and pipelines of PROJECT_ID into a new project NAME, in one job the command waits for. Input fields: dataset_ids (copy only these; default all), include_dashboards (default false), exclude_data (default false, copies pipelines without rows). The result is project_id, dataset_map, view_map, skipped (what was left behind or still points outside the copy) and dashboards (dashboard_id, new_dashboard_id). Needs permission to create projects. Sweep with 'project delete ID --yes --confirm ID'.
- **Id:** `project.copy` · **Result:** `ProjectCopyResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.copy`, API `POST /workspaces/{workspace_id}/projects/{project_id}/copy` (CopyProject)

### mammoth project create

Create a project. Name comes from a positional or the 'name' field.

```bash
mammoth project create 'Revenue report'
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `NAME` | positional | no | — | `str` | Name of the new project; or pass it via the 'name' input field. Or the `name` input field. |
| `name` | `--input` field | no | — | `str` |  |
| `color` | `--input` field | no | — | `str` |  |
| `project_access` | `--input` field | no | — | `str` |  |

- **Effect:** Benign mutation, scope `project` · **Confirmation:** none
- **Id:** `project.create` · **Result:** `ProjectCreateResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.create`, API `POST /workspaces/{workspace_id}/projects` (CreateProject)

### mammoth project delete

Delete one project (positional or active).

```bash
mammoth project delete 123 --yes --confirm 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `timeout` | `--input` field | no | — | `int` |  |
| `poll_interval` | `--input` field | no | `2.0` | `float` |  |

- **Effect:** High impact, scope `project` · **Confirmation:** always `--yes --confirm TARGET`, even at a terminal (TARGET is the exact id or name acted on; the `confirmation_required` error's hint names it)
- **Preconditions:** Immutable project-ID confirmation.
- **Id:** `project.delete` · **Result:** `ProjectDeleteResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.delete_and_verify`, API `DELETE /workspaces/{workspace_id}/projects/{project_id}` (DeleteProject)

### mammoth project ensure

Return the project with exactly this name, creating it when absent.

```bash
mammoth project ensure 'Revenue report'
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `NAME` | positional | no | — | `str` | Exact project name to find or create; or pass it via the 'name' input field. Or the `name` input field. |
| `name` | `--input` field | no | — | `str` |  |

- **Effect:** Benign mutation, scope `project` · **Confirmation:** none
- **Preconditions:** Matches the exact, case-sensitive name; several projects with the same name resolve to the lowest id and the rest are listed under 'duplicates'. Creating a project is a benign mutation; sweep with 'project delete ID --yes --confirm ID'.
- **Id:** `project.ensure` · **Result:** `ProjectEnsureResult`

### mammoth project get

Get one project by id (positional or active project).

```bash
mammoth project get 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |

- **Effect:** Read, scope `project` · **Confirmation:** none · **Pages:** `single_page`
- **Preconditions:** Reads one project by id. A token limited to one project can read only that project.
- **Id:** `project.get` · **Result:** `ProjectGetResult`

### mammoth project list

List the caller's member projects in the active workspace, one page at a time.

```bash
mammoth project list
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `limit` | `--input` field | no | `100` | `int` |  |
| `offset` | `--input` field | no | `0` | `int` |  |
| `fields` | `--input` field | no | `id,name` | `str` |  |
| `include_non_members` | `--input` field | no | `false` | `bool` |  |

- **Effect:** Read, scope `project` · **Confirmation:** none · **Pages:** `single_page`
- **Preconditions:** B01 FIRST_PAGE_ONLY: no offset/cursor continuation proven yet.
- **Id:** `project.list` · **Result:** `ProjectListResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.list`, API `GET /workspaces/{workspace_id}/projects` (GetProject)

### mammoth project needs-attention

List the Monitor "Needs Attention" rows with the dataset behind each view.

```bash
mammoth project needs-attention 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |

- **Effect:** Read, scope `project` · **Confirmation:** none
- **Preconditions:** The rows of the Monitor Needs Attention tab for one project (the app has no workspace-wide list): pipeline_error, pending_pipeline, pending_data, checkpoint (needs approval), data_check (failed), each with view_id and the owning dataset_id, and needs_input (a file or dataset waiting for a person; action is unstructured_rows, ambiguous_date_format, password_required, sheet_selection_required or schema_mismatch); datasets lists each affected dataset once with its view_ids. Pending retentions are not returned by the API and are not included. To delete the datasets behind the views, take dataset_id from datasets and run dataset delete or dataset bulk-delete (confirm first).
- **Id:** `project.needs-attention` · **Result:** `ProjectNeedsAttentionResult`

### mammoth project pending-changes

Report a project's pending pipeline changes.

```bash
mammoth project pending-changes 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |

- **Effect:** Read, scope `project` · **Confirmation:** none
- **Id:** `project.pending-changes` · **Result:** `ProjectPendingChangesResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.pending_changes`, API `GET /workspaces/{workspace_id}/projects/{project_id}/pending-changes` (GetPendingChanges)

### mammoth project publish-credentials

Report publish credentials for a project's ODBC endpoint.

```bash
mammoth project publish-credentials 123 --input '{"odbc_type": "postgres"}'
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `odbc_type` | `--input` field | yes | — | `Literal['postgres', 'bigquery']` | One of `postgres`, `bigquery`. |

- **Effect:** Read, scope `project` · **Confirmation:** none
- **Id:** `project.publish-credentials` · **Result:** `ProjectPublishCredentialsResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.publish_credentials`, API `GET /workspaces/{workspace_id}/projects/{project_id}/credentials` (GetPublishCredentials)

### mammoth project resource-dependencies

Update project resource dependencies.

```bash
mammoth project resource-dependencies 123 --input '{"resource_ids": [456]}'
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `resource_ids` | `--input` field | yes | — | `list[str]` |  |
| `is_recursive` | `--input` field | no | — | `bool` |  |

- **Effect:** Read, scope `project` · **Confirmation:** none
- **Id:** `project.resource-dependencies` · **Result:** `ProjectResourceDependenciesResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.resource_dependencies`, API `GET /workspaces/{workspace_id}/projects/{project_id}/resource-dependencies` (GetResourceDependencies)

### mammoth project resource-status

Report the project's in-flight resource tasks, named as such.

```bash
mammoth project resource-status 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |

- **Effect:** Read, scope `project` · **Confirmation:** none
- **Id:** `project.resource-status` · **Result:** `ProjectResourceStatusResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.resource_status`, API `GET /workspaces/{workspace_id}/projects/{project_id}/resource-status` (GetResourceStatus)

### mammoth project sample-flow

Create a sample flow in a project (positional or active).

```bash
mammoth project sample-flow 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `label_resource_id` | `--input` field | no | — | `int` |  |

- **Effect:** Benign mutation, scope `project` · **Confirmation:** none
- **Id:** `project.sample-flow` · **Result:** `ProjectSampleFlowResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.sample_flow`, API `POST /workspaces/{workspace_id}/projects/{project_id}/sample-flow` (CreateSampleFlow)

### mammoth project update

Update a project's name or color from the '--input' document.

```bash
mammoth project update 123 --input '{"name": "Renamed project"}'
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `name` | `--input` field | no | — | `str` |  |
| `color` | `--input` field | no | — | `str` |  |

- **Effect:** Benign mutation, scope `project` · **Confirmation:** none
- **Id:** `project.update` · **Result:** `ProjectUpdateResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.update`, API `PATCH /workspaces/{workspace_id}/projects/{project_id}` (UpdateProject)

## project checkpoint

### mammoth project checkpoint list

List a project's checkpoints, with optional filters from '--input'.

```bash
mammoth project checkpoint list 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `fields` | `--input` field | no | — | `str` |  |
| `sort` | `--input` field | no | — | `str` |  |
| `dataview_id` | `--input` field | no | — | `int` |  |
| `sequence` | `--input` field | no | — | `int` |  |
| `status` | `--input` field | no | — | `str` |  |

- **Effect:** Read, scope `project` · **Confirmation:** none · **Pages:** `single_page`
- **Id:** `project.checkpoint.list` · **Result:** `ProjectCheckpointListResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.checkpoint_list`, API `GET /workspaces/{workspace_id}/projects/{project_id}/checkpoints` (GetProjectCheckpoints)

## project data-check

### mammoth project data-check list

List a project's data checks, with optional filters from '--input'.

```bash
mammoth project data-check list 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `fields` | `--input` field | no | — | `str` |  |
| `sort` | `--input` field | no | — | `str` |  |
| `dataview_id` | `--input` field | no | — | `int` |  |
| `sequence` | `--input` field | no | — | `int` |  |
| `status` | `--input` field | no | — | `str` |  |

- **Effect:** Read, scope `project` · **Confirmation:** none · **Pages:** `single_page`
- **Id:** `project.data-check.list` · **Result:** `ProjectDataCheckListResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.data_check_list`, API `GET /workspaces/{workspace_id}/projects/{project_id}/data-checks` (GetProjectDataChecks)

## project memory

### mammoth project memory add

Save one agent preference ('text' from '--input') for the caller.

```bash
mammoth project memory add 123 --input '{"text": "Quarterly revenue summary"}'
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `text` | `--input` field | yes | — | `str` |  |

- **Effect:** Benign mutation, scope `project` · **Confirmation:** none
- **Preconditions:** Save only a preference the user stated for how the agent works or shows things (at most 20, each at most 200 characters); never data, results or secrets. The in-app agent applies them in every later turn in this project. A rule about what a board's data means (for example, Returned orders are refunds) belongs to that board: dashboard context create.
- **Id:** `project.memory.add` · **Result:** `ProjectMemoryAddResult`

### mammoth project memory list

List the caller's saved agent preferences for a project.

```bash
mammoth project memory list 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |

- **Effect:** Read, scope `project` · **Confirmation:** none
- **Preconditions:** The saved preferences are the caller's own, per project, oldest first; the in-app agent reads them at the start of every turn. Remove one by its zero-based position in this list.
- **Id:** `project.memory.list` · **Result:** `ProjectMemoryListResult`

### mammoth project memory remove

Remove the caller's saved preference at 'index' (from '--input').

```bash
mammoth project memory remove 123 --input '{"index": 1}' --yes
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `index` | `--input` field | yes | — | `int` |  |

- **Effect:** Benign mutation, scope `project` · **Confirmation:** `--yes`, or answer the prompt at an interactive terminal
- **Preconditions:** index is the zero-based position from project memory list; use it when the user asks to forget a preference.
- **Id:** `project.memory.remove` · **Result:** `ProjectMemoryRemoveResult`

## project resource-dependencies

### mammoth project resource-dependencies update

Apply confirmed data-sync patches to a project's resource graph.

```bash
mammoth project resource-dependencies update 123 --input '{"patches": [{"op": "replace", "path": "data_sync", "value": {"context_type": "dataview", "context_id": 1}}]}' --yes --confirm 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `patches` | `--input` field | yes | — | `list[DataSyncPatchItem]` |  |

- **Effect:** High impact, scope `project` · **Confirmation:** always `--yes --confirm TARGET`, even at a terminal (TARGET is the exact id or name acted on; the `confirmation_required` error's hint names it) · **Waits:** waits for the job to finish (`--job-timeout`, `--return-running`)
- **Preconditions:** Changes the resources the project declares it depends on; views and dashboards that read through a removed dependency can stop resolving data. Read the current set first (`project resource-dependencies`). Needs --yes and --confirm PROJECT_ID.
- **Id:** `project.resource-dependencies.update` · **Result:** `ProjectResourceDependenciesUpdateResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.resource_dependencies_update`, API `PATCH /workspaces/{workspace_id}/projects/{project_id}/resource-dependencies` (BulkModify)

## project user

### mammoth project user add

Add users to a project. High-impact: '--yes --confirm PROJECT_ID'.

```bash
mammoth project user add 123 --input '{"user_ids": [123], "role": "project_analyst"}' --yes --confirm 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `user_ids` | `--input` field | yes | — | `list[int]` |  |
| `role` | `--input` field | no | — | `str` |  |

- **Effect:** High impact, scope `project` · **Confirmation:** always `--yes --confirm TARGET`, even at a terminal (TARGET is the exact id or name acted on; the `confirmation_required` error's hint names it)
- **Preconditions:** B03 PROJECT_USER_ID_ROLE_UNTYPED. role is required, and a user who is already a project member is refused (the backend would replace that member's role, demoting an admin); change roles with project user update. Takes existing workspace users' ids. To add someone by email who is not in the workspace yet, use workspace user add with {"email_ids": \[EMAIL\], "projects": \[{"project_id": PROJECT_ID, "role": ROLE}\]}: it invites them as a workspace member with that project role, which is how a project gets a new person.
- **Id:** `project.user.add` · **Result:** `ProjectUserAddResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.add_users`, API `POST /workspaces/{workspace_id}/projects/{project_id}/users` (AddUserProject)

### mammoth project user remove

Remove users from a project. High-impact: '--yes --confirm PROJECT_ID'.

```bash
mammoth project user remove 123 --input '{"user_ids": ["resource-123"]}' --yes --confirm 123
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `user_ids` | `--input` field | yes | — | `list[str]` |  |

- **Effect:** High impact, scope `project` · **Confirmation:** always `--yes --confirm TARGET`, even at a terminal (TARGET is the exact id or name acted on; the `confirmation_required` error's hint names it)
- **Preconditions:** B03 PROJECT_USER_ID_ROLE_UNTYPED; sorted target-set confirmation.
- **Id:** `project.user.remove` · **Result:** `ProjectUserRemoveResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.remove_users`, API `DELETE /workspaces/{workspace_id}/projects/{project_id}/users` (RemoveUserProject)

### mammoth project user update

Update a project member's role ('role' required; 'user_id'/'invite_id').

```bash
mammoth project user update 123 --input '{"role": "project_admin", "user_id": 123}' --yes
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `PROJECT_ID` | positional | no | — | `int` | ID of the project to act on; defaults to the active project. |
| `role` | `--input` field | yes | — | `Literal['project_admin', 'project_analyst']` | One of `project_admin`, `project_analyst`. |
| `user_id` | `--input` field | no | — | `int` |  |
| `invite_id` | `--input` field | no | — | `int` |  |

- **Effect:** High impact, scope `project` · **Confirmation:** always `--yes`, even at a terminal
- **Preconditions:** Changes one project member's role (role plus exactly one of user_id or invite_id); the person gains or loses access at once. Needs --yes.
- **Id:** `project.user.update` · **Result:** `ProjectUserUpdateResult` · **Backed by:** SDK `mammoth.api.projects.ProjectsAPI.user_update`, API `PATCH /workspaces/{workspace_id}/projects/{project_id}/users` (UpdateUserProject)

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