M31A's CLI is built with yargs. The parser is defined in packages/cli/src/config/config.ts.
Synopsis
text
m31a [options] [query..]
m31a <subcommand> [options]Running m31a with no subcommand opens the interactive TUI. A positional query opens the TUI with an initial prompt; use -p/--prompt for non-interactive execution.
Global options
| Option | Alias | Description |
|---|---|---|
--version | -v | Print the M31A version and exit. |
--help | -h | Show help and exit. |
--debug | -d | Open the debug console (also available with F12). |
Model and provider
| Option | Alias | Description |
|---|---|---|
--model <name> | -m | Select a model slug, alias, or configured model. |
--provider <id> | — | Select a provider (defaults to nvidia-nim). |
--list-models | — | List available models and exit. |
Execution mode
| Option | Alias | Description |
|---|---|---|
--prompt <text> | -p | Run non-interactively (headless) with the given prompt. |
--prompt-interactive <text> | -i | Execute a prompt, then continue in interactive mode. |
--acp | — | Start the Agent Client Protocol server. |
--experimental-acp | — | Deprecated alias for --acp. |
Safety and policy
| Option | Alias | Description |
|---|---|---|
--approval-mode <mode> | — | default, auto_edit, yolo, or plan. |
--yolo | -y | Auto-approve all actions (equivalent to --approval-mode yolo). |
--sandbox | -s | Run in a sandbox. |
--skip-trust | — | Trust the current workspace for this session. |
--policy <path> | — | Additional policy file or directory; repeatable/comma-separated. |
--admin-policy <path> | — | Additional admin policy file or directory. |
--allowed-mcp-server-names <list> | — | Restrict which MCP servers may load. |
--allowed-tools <list> | — | Deprecated; use the policy engine. |
Workspace and sessions
| Option | Alias | Description |
|---|---|---|
--worktree [name] | -w | Start in a new git worktree (requires experimental.worktrees). |
--include-directories <list> | — | Add directories to workspace context. |
--resume [value] | -r | Resume latest or a session index; bare flag means latest. |
--session-file <path> | — | Load a session from a JSON file. |
--session-id <id> | — | Start a session with a custom UUID-like id. |
--list-sessions | — | List sessions for this project and exit. |
--delete-session <index> | — | Delete a session by index. |
Extensions and output
| Option | Alias | Description |
|---|---|---|
--extensions <list> | -e | Limit which extensions load. |
--list-extensions | -l | List extensions and exit. |
--output-format <format> | -o | text, json, or stream-json. |
--screen-reader | — | Plain-text, screen-reader-friendly output. |
--raw-output | — | Disable output sanitization (security warning). |
--accept-raw-output-risk | — | Suppress the --raw-output warning. |
Hidden testing flags (--fake-responses, --fake-responses-non-strict, --record-responses, --isCommand) are not intended for general use.
Validation rules
The parser rejects combinations that are ambiguous or unsafe:
--resume,--session-id, and--session-fileare mutually exclusive.- A positional prompt cannot be combined with
--prompt. --promptcannot be combined with--prompt-interactive.--yolocannot be combined with--approval-mode; use--approval-mode=yolo.--output-formatmust betext,json, orstream-json.--worktreerequiresexperimental.worktreesto be enabled.
Subcommands
m31a mcp
text
m31a mcp add <name> <commandOrUrl> [args...]
m31a mcp remove <name>
m31a mcp list
m31a mcp enable <name>
m31a mcp disable <name>m31a extensions
Alias: m31a extension.
text
m31a extensions install <source>
m31a extensions uninstall <name>
m31a extensions list
m31a extensions update [name]
m31a extensions disable <name>
m31a extensions enable <name>
m31a extensions link <path>
m31a extensions new <name>
m31a extensions validate <path>
m31a extensions config <name>m31a skills
Alias: m31a skill.
text
m31a skills list [--all]
m31a skills enable <name>
m31a skills disable <name> [--scope]
m31a skills install <source> [--scope] [--path]
m31a skills link <path>
m31a skills uninstall <name> [--scope]m31a hooks
text
m31a hooks migratem31a models
text
m31a models
m31a models listm31a hub
text
m31a hub [status|start|stop|ensure]Default action: status.
m31a schedule
text
m31a schedule create <name> <cron> <prompt...>
m31a schedule list
m31a schedule delete <id>
m31a schedule trigger <id>
m31a schedule tickDefault action: list.
m31a connect
text
m31a connect list
m31a connect start <connector>
m31a connect stop <connector>
m31a connect send <connector> <channel> <text...>Default action: list.
Examples
bash
m31a
m31a -m nvidia/nemotron-3-ultra-550b-a55b
m31a --approval-mode auto_edit
m31a --include-directories ../lib,../shared
m31a --worktree
m31a --resume latest
m31a -p "Explain the architecture of this codebase" -o jsonNext steps
- Slash commands for in-app commands.
- Settings for persistent configuration.