CLI
CLI reference
Every dive command, generated from the CLI's own definitions.
A command-line agent with a plan-based execution engine
dive [OPTIONS] <COMMAND>Global options
These options work with every command.
-v, --verboseinteger
Increase log verbosity (-v info, -vv debug, -vvv trace)
--identitystring
Act as this [identities] entry: runs get a run token minted for its tenant and user, which http tools send to the app
Format: IDENTITY.
Commands
| Command | Description |
|---|---|
dive ask | Ask a one-shot question (runs one agent turn) |
dive chat | Interactive chat (REPL) |
dive plan list | List available plan documents |
dive plan show | Show a plan document |
dive plan validate | Validate a plan document by name or file path |
dive plan rm | Delete a plan file |
dive plan migrate | Rewrite a plan file to the current plan format |
dive plan run | Run a plan directly (bypasses the agent loop) |
dive plan new | Scaffold an empty plan file to build up with set and step add |
dive plan draft | Draft a plan from a goal using the planner model (costs inference) |
dive plan set | Set one plan attribute |
dive plan unset | Clear one optional plan attribute |
dive plan step add | Append a step, or anchor it before/after an existing one |
dive plan step update | Set one attribute of a step |
dive plan step rename | Rename a step, rewriting every downstream {{id.*}} reference |
dive plan step unset | Clear one optional attribute of a step |
dive plan step rm | Remove a step |
dive tool list | List every tool visible to the agent and planner |
dive tool show | Show one tool's description and schemas |
dive tool test | Invoke a tool directly |
dive tool rm | Delete a user tool file or a built-in tool's override |
dive tool migrate | Rewrite a user tool file to the current tool format |
dive agent list | List every agent: built-in, global (~/.config/dive/agents), and project (./.dive/agents) |
dive agent show | Print an agent's effective definition, the file to copy when customizing it |
dive agent validate | Validate every agent, or one agent file against the others |
dive agent rm | Delete an agent file |
dive agent migrate | Rewrite an agent file to the current agent format |
dive session list | List sessions |
dive session show | Show a session's runs and messages |
dive session rm | Delete a session |
dive secret set | Store a secret in the OS credential store |
dive secret rm | Remove a secret from the OS credential store |
dive secret list | List every variable name the config, tools and packs reference, and where each resolves from |
dive secret show | Show where one name resolves from and what references it |
dive dev key | Print the public half of the local development key |
dive serve | Run Dive as an HTTP service that starts, streams and cancels plan runs |
dive serve token | Print a run token signed with the local development key |
dive mcp list | List configured servers and their status |
dive mcp tools | List tools exposed by servers |
dive mcp test | Connect to a server and verify initialize + tools/list |
dive mcp serve | Serve Dive's plans and authoring commands to an agent over MCP (stdio) |
dive mcp login | Sign in to a server that uses OAuth, in your browser |
dive mcp logout | Remove a saved sign-in |
dive mcp probe | Pre-warm the observed-shape cache by invoking read-only tools |
dive shape list | List cached tool shapes |
dive shape show | Show one tool's cached schema and example |
dive config show | Print the merged effective configuration |
dive config init | Write a starter config file |
dive config path | Print the config file locations and which exist |
dive config check | Report each config file's format and whether the merged config loads |
dive config migrate | Rewrite a config file to the current config format, comments intact |
dive pack add | Install a pack from git as a plain copy in the project, global or given Dive directory |
dive pack list | List installed packs with their tags, newer releases, local edits, shadowing and moved release tags |
dive pack update | Move packs to the newest release their ref allows, or with --major across majors, migrating your files at each |
dive pack remove | Delete a pack's copy, config entry and lock entry, and list files that still call it |
dive pack new | Scaffold a pack in a directory of a packs repository: manifest, one tool, plan and agent, README, CHANGELOG and MIGRATING.md |
dive pack check | Load a pack the way an install would and report every problem: manifest, files, references, names, migrations and requirements |
dive pack run | Run one of a pack's items, private and migration ones included, under its manifest name |
dive pack test | Run check, then every migration over its sample files in tests/migrations/v<N>/ and validate the result |
dive pack release | Compare the public interface with the previous release tag and create the next annotated tag, without pushing |
dive workbench | Interactive workbench: a dual-pane TUI for building plans, agents and tools |
dive workbench plan | Open the workbench in plan mode: draft a new plan, or open an existing one to inspect, edit and run — fully, or gated with per-tool-call confirmation |
dive workbench agent | Open the workbench in agent mode: draft a new agent, or edit an existing one |
dive workbench tool | Open the workbench in tool mode: draft a new user tool, or edit an existing one |
dive version | Print the binary version and the file formats it reads and writes |
Exit codes and output streams are covered in Error handling.