> ## Documentation Index
> Fetch the complete documentation index at: https://docs.safefetch.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI Commands

> All SafeFetch CLI commands with usage examples.

## Global

```bash theme={null}
safefetch --help
safefetch --version
safefetch --api-key <key> --api-url <url> <command>
```

## Actions

### Send

```bash theme={null}
safefetch send --url https://example.com/api/action [options]
```

Options:

* `--url <url>` required
* `--method <method>` default `POST`
* `--body <json>`
* `--retries <n>` default `3`
* `--dedupe <key>`
* `--callback <url>`
* `--approve`
* `--sync`
* `--idempotency-key <key>`

Example:

```bash theme={null}
safefetch send \
  --url https://example.com/api/action \
  --body '{"task":"send-email"}' \
  --retries 5 \
  --idempotency-key req_123
```

### Get

```bash theme={null}
safefetch get act_V1StGXR8_Z5j
```

### List

```bash theme={null}
safefetch list [options]
```

Options:

* `--status <status>`
* `--limit <n>` default `20`
* `--offset <n>` default `0`

Example:

```bash theme={null}
safefetch list --status failed --limit 10 --offset 0
```

### Cancel

```bash theme={null}
safefetch cancel <act_id>
```

### Approve

```bash theme={null}
safefetch approve <act_id>
```

### Retry

```bash theme={null}
safefetch retry <act_id>
```

## Health

```bash theme={null}
safefetch health
```

All command responses are printed as pretty JSON, with colorized status values.
