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

> All 2 mammoth activity commands with examples, arguments and confirmation flags: Inspect workspace activity and audit history.

> 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 workspace activity and audit history. 2 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 |
|---|---|---|---|
| [`activity export`](#mammoth-activity-export) | Export activity logs from the active workspace, with optional filters. | Read | — |
| [`activity list`](#mammoth-activity-list) | List activity logs in the active workspace, with optional filters. | Read | — |

## activity commands

### mammoth activity export

Export activity logs from the active workspace, with optional filters.

```bash
mammoth activity export
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `format` | `--input` field | no | `csv` | `str` |  |
| `start_time` | `--input` field | no | — | `str` |  |
| `end_time` | `--input` field | no | — | `str` |  |
| `categories` | `--input` field | no | — | `list[any]` |  |
| `activities` | `--input` field | no | — | `list[any]` |  |
| `user_ids` | `--input` field | no | — | `list[any]` |  |

- **Effect:** Read, scope `profile` · **Confirmation:** none · **Waits:** returns a job id at once; follow it with `mammoth job wait`
- **Id:** `activity.export` · **Result:** `ActivityExportResult` · **Backed by:** SDK `mammoth.api.activity_logs.ActivityLogsAPI.export`, API `POST /workspaces/{workspace_id}/activity_log/export` (ExportActivityLogs)

### mammoth activity list

List activity logs in the active workspace, with optional filters.

```bash
mammoth activity list
```

| Name | Passed as | Required | Default | Type | Notes |
|---|---|---|---|---|---|
| `limit` | `--input` field | no | `50` | `int` |  |
| `offset` | `--input` field | no | `0` | `int` |  |
| `sort` | `--input` field | no | — | `str` |  |
| `categories` | `--input` field | no | — | `list[any]` |  |
| `activities` | `--input` field | no | — | `list[any]` |  |
| `resource_id` | `--input` field | no | — | `str` |  |
| `result` | `--input` field | no | — | `str` |  |
| `start_time` | `--input` field | no | — | `str` |  |
| `end_time` | `--input` field | no | — | `str` |  |
| `origin` | `--input` field | no | — | `str` |  |
| `user_ids` | `--input` field | no | — | `list[any]` |  |
| `parent_id` | `--input` field | no | — | `int` |  |
| `search_text` | `--input` field | no | — | `str` |  |
| `fields` | `--input` field | no | — | `str` |  |
| `project_id` | `--input` field | no | — | `int` |  |

- **Effect:** Read, scope `profile` · **Confirmation:** none · **Pages:** `offset`
- **Id:** `activity.list` · **Result:** `ActivityListResult` · **Backed by:** SDK `mammoth.api.activity_logs.ActivityLogsAPI.list`, API `POST /workspaces/{workspace_id}/activity_log` (GetActivityLogs)

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