Dive

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.

Increase log verbosity (-v info, -vv debug, -vvv trace)

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

CommandDescription
dive askAsk a one-shot question (runs one agent turn)
dive chatInteractive chat (REPL)
dive plan listList available plan documents
dive plan showShow a plan document
dive plan validateValidate a plan document by name or file path
dive plan rmDelete a plan file
dive plan migrateRewrite a plan file to the current plan format
dive plan runRun a plan directly (bypasses the agent loop)
dive plan newScaffold an empty plan file to build up with set and step add
dive plan draftDraft a plan from a goal using the planner model (costs inference)
dive plan setSet one plan attribute
dive plan unsetClear one optional plan attribute
dive plan step addAppend a step, or anchor it before/after an existing one
dive plan step updateSet one attribute of a step
dive plan step renameRename a step, rewriting every downstream {{id.*}} reference
dive plan step unsetClear one optional attribute of a step
dive plan step rmRemove a step
dive tool listList every tool visible to the agent and planner
dive tool showShow one tool's description and schemas
dive tool testInvoke a tool directly
dive tool rmDelete a user tool file or a built-in tool's override
dive tool migrateRewrite a user tool file to the current tool format
dive agent listList every agent: built-in, global (~/.config/dive/agents), and project (./.dive/agents)
dive agent showPrint an agent's effective definition, the file to copy when customizing it
dive agent validateValidate every agent, or one agent file against the others
dive agent rmDelete an agent file
dive agent migrateRewrite an agent file to the current agent format
dive session listList sessions
dive session showShow a session's runs and messages
dive session rmDelete a session
dive secret setStore a secret in the OS credential store
dive secret rmRemove a secret from the OS credential store
dive secret listList every variable name the config, tools and packs reference, and where each resolves from
dive secret showShow where one name resolves from and what references it
dive dev keyPrint the public half of the local development key
dive serveRun Dive as an HTTP service that starts, streams and cancels plan runs
dive serve tokenPrint a run token signed with the local development key
dive mcp listList configured servers and their status
dive mcp toolsList tools exposed by servers
dive mcp testConnect to a server and verify initialize + tools/list
dive mcp serveServe Dive's plans and authoring commands to an agent over MCP (stdio)
dive mcp loginSign in to a server that uses OAuth, in your browser
dive mcp logoutRemove a saved sign-in
dive mcp probePre-warm the observed-shape cache by invoking read-only tools
dive shape listList cached tool shapes
dive shape showShow one tool's cached schema and example
dive config showPrint the merged effective configuration
dive config initWrite a starter config file
dive config pathPrint the config file locations and which exist
dive config checkReport each config file's format and whether the merged config loads
dive config migrateRewrite a config file to the current config format, comments intact
dive pack addInstall a pack from git as a plain copy in the project, global or given Dive directory
dive pack listList installed packs with their tags, newer releases, local edits, shadowing and moved release tags
dive pack updateMove packs to the newest release their ref allows, or with --major across majors, migrating your files at each
dive pack removeDelete a pack's copy, config entry and lock entry, and list files that still call it
dive pack newScaffold a pack in a directory of a packs repository: manifest, one tool, plan and agent, README, CHANGELOG and MIGRATING.md
dive pack checkLoad a pack the way an install would and report every problem: manifest, files, references, names, migrations and requirements
dive pack runRun one of a pack's items, private and migration ones included, under its manifest name
dive pack testRun check, then every migration over its sample files in tests/migrations/v<N>/ and validate the result
dive pack releaseCompare the public interface with the previous release tag and create the next annotated tag, without pushing
dive workbenchInteractive workbench: a dual-pane TUI for building plans, agents and tools
dive workbench planOpen 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 agentOpen the workbench in agent mode: draft a new agent, or edit an existing one
dive workbench toolOpen the workbench in tool mode: draft a new user tool, or edit an existing one
dive versionPrint the binary version and the file formats it reads and writes

Exit codes and output streams are covered in Error handling.

On this page