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

# mf auth

> Authenticate and manage capabilities for the current identity

Source: https://docs.manyfold.ai/docs/cli/reference/auth/

**Usage:** `mf auth [command]`

**Options**

| Options | Purpose |
| --- | --- |
| `-h, --help` | display help for command |

**Subcommands**

| Command | Purpose |
| --- | --- |
| [`mf auth ensure`](#mf-auth-ensure) | Ensure the current identity has the requested capabilities |

## `mf auth ensure`

Ensure the current identity has the requested capabilities

**Usage:** `mf auth ensure [options]`

**Options**

| Options | Purpose |
| --- | --- |
| `--scopes <list>` | comma-separated grant scopes to ensure (e.g. channels:read,channels:edit) |
| `--for-agent <id>` | agent to ensure scopes for (defaults to --agent-id / $MF_AGENT_ID) |
| `--json` | output the result as JSON |
| `-h, --help` | display help for command |
