auto_fix_high
cmdhub adapter

Agent CLI
for cmdhub.

Schema-aware transforms between one command contract and another.

lock Auth: Model profile
Quick Install cmdhub get agent

terminal Command Reference

Generated from source. Global flags apply to all commands.

Global Flags

--config string Config path override
--cursor string Continuation cursor
--debug bool Enable debug diagnostics
--json bool Alias for --output json
--jsonl bool Alias for --output jsonl
--limit int = 50 Maximum items to emit
--no-paginate bool Fetch only one page
--output, -o string = human Output mode: human|json|jsonl
--page-size int = 50 Requested upstream page size
--profile string = default Config/auth profile
--quiet, -q bool Suppress non-essential diagnostics
--trace-id string Trace identifier
--view string = summary View mode: summary|full
agent adapt Compile one typed stream into another
--dry-run bool Dry run mode
--model string Ollama model name (overrides profile)
--to string Target command
--via string Optional intermediate intent schema

agent auth — Show local agent auth state

agent auth login No-op for local agent auth
agent auth logout No-op for local agent auth
agent auth refresh No-op for local agent auth
agent auth status Show local agent auth status
agent auth whoami Show local agent profile identity
agent capabilities Describe agent CLI capabilities
agent doctor Run agent CLI diagnostics
agent explain Explain the transformation plan
--model string Ollama model name (overrides profile)
--to string Target command
--via string Optional intermediate intent schema
agent profile Manage model execution profiles
agent resolve Resolve an agent schema or command target
agent schema Show schema for a command or intent
--in bool Show input schema
--out bool Show output schema
--to string Target command
--via string Intent schema id alias for --to
agent validate Validate stdin against a target or intent schema
--schema string Intent schema id
--to string Target command
agent version Show agent version information

play_circle Live Examples

Output captured from a real workspace. Regenerate with scripts/gen-docs.sh --update.

auth

Show local auth status
$ agent auth status
{
  "auth_mode": "none",
  "authenticated": true,
  "profile": "default",
  "provider": "local",
  "suggested_next_step": "agent schema --to intent.contact.v1 --out --json",
  "tool": "agent"
}

alt_route Composition Patterns

Bridge your ecosystem with zero middleware.

# Adapt a Gmail message into a calendar-event input contract
gmail message list --label INBOX --limit 1 --output jsonl \
  | agent adapt --to "gcal event create"