# `max tasks`

Manage your Max automated tasks on the Public API (/public/v1/max/periodic-tasks/...). Scheduled (cron) or event-based (integration trigger) automations that run inside your own Max agent. NOT the same as `frontline user-tasks` (to-dos) or `frontline object task` (record tasks).

```bash
max tasks [options] [command]
```

## `max tasks list`

GET /public/v1/max/periodic-tasks — list your Max automated tasks

```bash
max tasks list [options]
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--enabled <bool>` | Filter by enabled status (true or false) |  |
| `--name <text>` | Filter by task name (substring match) |  |
| `--page <n>` | Page number |  |
| `--page-size <n>` | Page size |  |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max tasks get`

GET /public/v1/max/periodic-tasks/:id — get one Max task

```bash
max tasks get [options] <taskId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max tasks create`

POST /public/v1/max/periodic-tasks — create a Max task (provide --cron OR --trigger-slug, not both)

```bash
max tasks create [options]
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--name <name>` | Task name |  |
| `--instructions <text>` | What Max should do when the task runs |  |
| `--cron <expr>` | Scheduled task: cron expression, e.g. '0 8 * * 1-5' |  |
| `--trigger-slug <slug>` | Event task: trigger slug (see `max tasks triggers`), e.g. GOOGLECALENDAR_EVENT_STARTING_SOON |  |
| `--trigger-config <json>` | Event task: JSON config for the trigger |  |
| `--integrations <json>` | JSON array of toolkits the task may use (the agent will only have access to these selected integrations), e.g. '["gmail"]' |  |
| `--notify-email <bool>` | Notify task result by email (true|false) |  |
| `--notify-whatsapp <bool>` | Notify task result by WhatsApp (true|false) |  |
| `--notify-slack <bool>` | Notify task result by Slack (true|false) |  |
| `--slack-channel <id>` | Slack channel ID for notifications (omit for DM) |  |
| `--inactive` | Create the task disabled (default: enabled) |  |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max tasks update`

PUT /public/v1/max/periodic-tasks/:id — update a Max task (fetches current state, applies your flags, re-sends)

```bash
max tasks update [options] <taskId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--name <name>` | Task name |  |
| `--instructions <text>` | What Max should do when the task runs |  |
| `--cron <expr>` | Switch to / change schedule (clears any event trigger) |  |
| `--trigger-slug <slug>` | Switch to / change event trigger (clears any cron) |  |
| `--trigger-config <json>` | JSON config for the event trigger |  |
| `--integrations <json>` | JSON array of toolkits the task may use (the agent will only have access to these selected integrations) |  |
| `--notify-email <bool>` | Notify task result by email (true|false) |  |
| `--notify-whatsapp <bool>` | Notify task result by WhatsApp (true|false) |  |
| `--notify-slack <bool>` | Notify task result by Slack (true|false) |  |
| `--slack-channel <id>` | Slack channel ID for notifications |  |
| `--enable` | Enable the task |  |
| `--disable` | Disable the task |  |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max tasks enable`

Enable a Max task (PUT with enabled=true; pauses/resumes its schedule or event trigger)

```bash
max tasks enable [options] <taskId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max tasks disable`

Disable a Max task (PUT with enabled=false; pauses/resumes its schedule or event trigger)

```bash
max tasks disable [options] <taskId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max tasks delete`

DELETE /public/v1/max/periodic-tasks/:id — delete a Max task

```bash
max tasks delete [options] <taskId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max tasks run`

POST /public/v1/max/periodic-tasks/:id/execute — run a task now (scheduled/CRON tasks only; event tasks are rejected)

```bash
max tasks run [options] <taskId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max tasks triggers`

GET /public/v1/max/periodic-tasks/triggers — list event trigger slugs (+ config fields) and which integrations you have connected

```bash
max tasks triggers [options]
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |