peer-cli

Guide

How agents should reason about peer-cli before they touch any command.

This section explains how peer-cli behaves as an operational surface.

It is the minimum context an agent should load before issuing write commands or wiring the CLI into a broader workflow.

Core Rules

  • Prefer JSON output unless a human explicitly asks for table formatting.
  • Assume every write is preview-first unless --yes is set.
  • Prefer peer mcp in read-only mode unless there is a specific need for write tools.
  • Treat configuration resolution as layered, not implicit.
  • Use the catalogs for machine reasoning and the docs for workflow context.

Command Shape

Every command follows the same high-level form:

peer [global flags] <group> <subcommand> [typed flags]

Examples:

peer quote --from USD --amount 100
peer deposit list --owner 0x1111111111111111111111111111111111111111
peer --env staging vault list --manager 0x1111111111111111111111111111111111111111

Global Operator Defaults

The following defaults matter operationally:

SettingDefaultNotes
envproductionCan be overridden by CLI flag, env var, or stored config.
formatjsonStrongly preferred for automation.
yesfalseKeeps write flows in preview mode.
debugfalseExtra stderr logging for investigation.
chainBase / 8453Used throughout SDK-backed operations.

Read vs Write Discipline

The command surface spans both pure reads and state-changing operations.

ModeDefault behaviorAgent recommendation
Read-onlyExecutes immediatelySafe for discovery, search, reconciliation, and MCP default mode
WriteReturns a preview unless --yes is setReview preview, confirm intent, then execute

Write families include deposits, intents, vault operations, delegation changes, transfers, and checkout mutations.

On this page