CLI

Every gtme verb in one table, each linking its own page, with the exit codes they all share, generated from gtme help --agent

What you'll learn

You know what you want gtme to do and need the verb, or a script needs the exit code to branch on.

  • every verb and what it does
  • the exit codes every verb shares
  • where each verb's own page is

gtme has 13 verbs, in the order gtme help --agent prints them. Each verb's own page has its forms, its flags, an example from the docs, and where the docs use it. Everything a verb prints for a person goes to stderr; stdout carries data, so a script or an agent can read it.

VerbDoes
gtme initCreate ~/.gtme and the ledger
gtme secretStore a credential in ~/.gtme/secrets (VALUE omitted = prompt, no echo)
gtme planResolve adapters, validate every step's needs/uses and credentials, print the plan
gtme runExecute a pipeline
gtme queryread-only SQL against the ledger
gtme showPrint the current-value projection for one identity
gtme answerRecord a participant's answer for one pending human/* or agent/* step
gtme runsList runs, or print one run's receipt (records/cost per step)
gtme freezePrint the pipeline.yaml that produced a run, reconstructed from its stored config
gtme groupsList groups with their entity type and derived character (members, added/removed/touched tallies), inspect one
gtme vacuumEvict expired payloads from the ADR-030 cache tier
gtme adaptersList installed adapters with their source and pin (.source.json)
gtme helpPrint this document

Exit codes

Every verb exits with one of these, so a script can branch on the number.

CodeMeans
0ok
1other error
2validation or contract error: the plan, the file, or a value was refused
3auth or credential error
4rate-limited by a vendor
5network error