Skip to content

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 ​

OptionAliasDescription
--version-vPrint the M31A version and exit.
--help-hShow help and exit.
--debug-dOpen the debug console (also available with F12).

Model and provider ​

OptionAliasDescription
--model <name>-mSelect 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 ​

OptionAliasDescription
--prompt <text>-pRun non-interactively (headless) with the given prompt.
--prompt-interactive <text>-iExecute a prompt, then continue in interactive mode.
--acp—Start the Agent Client Protocol server.
--experimental-acp—Deprecated alias for --acp.

Safety and policy ​

OptionAliasDescription
--approval-mode <mode>—default, auto_edit, yolo, or plan.
--yolo-yAuto-approve all actions (equivalent to --approval-mode yolo).
--sandbox-sRun 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 ​

OptionAliasDescription
--worktree [name]-wStart in a new git worktree (requires experimental.worktrees).
--include-directories <list>—Add directories to workspace context.
--resume [value]-rResume 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 ​

OptionAliasDescription
--extensions <list>-eLimit which extensions load.
--list-extensions-lList extensions and exit.
--output-format <format>-otext, 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-file are mutually exclusive.
  • A positional prompt cannot be combined with --prompt.
  • --prompt cannot be combined with --prompt-interactive.
  • --yolo cannot be combined with --approval-mode; use --approval-mode=yolo.
  • --output-format must be text, json, or stream-json.
  • --worktree requires experimental.worktrees to 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 migrate

m31a models ​

text
m31a models
m31a models list

m31a 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 tick

Default 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 json

Next steps ​

Built with VitePress. Powered by NVIDIA NIM.