CLI

CLI reference

Every capxul command, its flags, what it returns and how it fails.

Each page is generated from capxul schema <command>, which reads the command's own definition. The CLI prints the same facts: run capxul schema for every command, or add --help to one command.

Global flags

| Flag | Type | Description | | ----------------------- | ---------- | ----------------------------------------------------------- | ----- | ---- | ------------------------------------------------------------ | ------- | ----- | ----- | ------ | ------------------------------------------------------------------------------------------------ | | --help, -h | boolean | Show help information | | --version, -v | boolean | Show version information | | --wizard | boolean | Start wizard mode for a command | | --completions | <bash | zsh | fish | sh> | Print shell completion script (choices: bash, zsh, fish, sh) | | --log-level | <all | trace | debug | info | warn | warning | error | fatal | none> | Sets the minimum log level (choices: all, trace, debug, info, warn, warning, error, fatal, none) | | --json | boolean | Print a versioned JSON result | | --no-input | boolean | Never ask for terminal input or open a browser | | --org | <handle> | act as this organization for one command | | --env | <name> | use this environment for one command | | --accept-experimental | boolean | accept that production is experimental and moves real money | | --fields | <a,b> | choose which JSON fields come back |

Exit codes

Exit codeMeaning
0succeeded
1a CLI defect
2refused: input, configuration, local state or the current state
3not signed in
4not permitted
5failed, or a deadline passed
6an expected outcome the operation names (rate limited, insufficient balance, …)
124the doctor online check passed its deadline
130cancelled: interrupted, or rejected on the approval page

Each error code has one exit code.

Commands

whoami

use

auth

account

balance

address

verify

  • capxul verify start: Start or continue verification; --input supplies answers, file paths, and business people
  • capxul verify status: Show the exact verification step or the approval for each currency

bank

payment

inbox

request

offer

agreement

  • capxul agreement list: The agreements that pay you, from every Organization, or that pay --org's Safe: earned, collectable and the next release. The department's side is org agreement list
  • capxul agreement show: One agreement that pays you, or --org's Safe: who pays, the rate, its state, the terms and their hash, earned and collectable
  • capxul agreement accept: Accept an offer by signing its exact terms hash from your own Safe, or with --org as an Owner proposal on your Organization's Safe; pay builds up from the start date or now
  • capxul agreement collect: Collect everything released: the payer pays it as one Payments V3 payment. With --org, an Owner proposal on your Organization's Safe. With nothing released, nothing is signed

contact

document

activity

invite

org

config

schema

doctor

  • capxul doctor: Check local configuration; --online also checks the backend

dev

On this page