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 code | Meaning |
|---|---|
| 0 | succeeded |
| 1 | a CLI defect |
| 2 | refused: input, configuration, local state or the current state |
| 3 | not signed in |
| 4 | not permitted |
| 5 | failed, or a deadline passed |
| 6 | an expected outcome the operation names (rate limited, insufficient balance, …) |
| 124 | the doctor online check passed its deadline |
| 130 | cancelled: interrupted, or rejected on the approval page |
Each error code has one exit code.
Commands
whoami
capxul whoami: you, who you're acting as, environment
use
capxul use personal: Act as yourselfcapxul use org: Act as one of your Organizationscapxul use env: Use this environment from now on
auth
capxul auth login: Sign in with your email and a one-time codecapxul auth verify: finish signing in (scripts and agents)capxul auth list: List the people signed in on this machinecapxul auth switch: Switch to another person signed in on this machinecapxul auth logout: Sign out on this device
account
capxul account show: Read your Account lifecycle without starting setupcapxul account retry: Find where to finish setting up your Account
balance
capxul balance: balances for whoever you're acting as
address
capxul address: where to send crypto to this account
verify
capxul verify start: Start or continue verification; --input supplies answers, file paths, and business peoplecapxul verify status: Show the exact verification step or the approval for each currency
bank
capxul bank details: Show bank details people can paycapxul bank deposits: List bank depositscapxul bank match: Match a bank deposit to a requestcapxul bank settle: Choose the token a bank deposit becomescapxul bank accounts: List and manage your saved bank accountscapxul bank accounts add: Save your bank account; private values can come from --input FILE|-capxul bank accounts remove: Remove one of your saved bank accountscapxul bank pay: Pay a bank account; approve in your browser (moves money)
payment
capxul payment send: you approve it in the browser (moves money)capxul payment list: Payments sent and receivedcapxul payment get: Read one exact Paymentcapxul payment wait: Follow a Payment, or the approval ID a write returned, until it endscapxul payment retry: retry the exact Payment; you approve it in the browser (moves money)
inbox
capxul inbox list: List this actor's payment requests and document referencescapxul inbox get: Inspect one payment request and its document referencescapxul inbox pay: pay a received request; you approve it in the browser (moves money)capxul inbox decline: Decline a received payment request
request
capxul request issue: ask someone to pay youcapxul request list: List this actor's payment requests and document referencescapxul request get: Inspect one payment request and its document referencescapxul request cancel: Cancel an issued payment request
offer
capxul offer list: List fixed offerscapxul offer get: Get fixed offerscapxul offer create: Create fixed offerscapxul offer revise: Revise fixed offerscapxul offer deactivate: Deactivate fixed offers
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 isorg agreement listcapxul agreement show: One agreement that pays you, or --org's Safe: who pays, the rate, its state, the terms and their hash, earned and collectablecapxul 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 nowcapxul 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
capxul contact list: List contacts in the selected actor's address bookcapxul contact get: Read one contact by stable PartyIdcapxul contact add: Add one contact from AddressBookAddInput JSONcapxul contact label: Change one contact label by stable PartyIdcapxul contact hide: Hide one contactcapxul contact unhide: Restore one contactcapxul contact bank add: Save a private bank account for an existing contact
document
capxul document get: Read exact document bytes and metadatacapxul document verify: Check an authorized documentcapxul document render: Save a verified document as PDFcapxul document export: Save original document bytes to a new file
activity
capxul activity list: List exact authorized activity with a cursorcapxul activity get: Read one exact Payment or Movementcapxul activity summary: Summarize exact raw-unit activity totalscapxul activity annotate: Give a row its account and memo, from flags or JSON input
invite
capxul invite list: invitations you've receivedcapxul invite accept: Verify yourself for a business invite, or accept one exact permission offer by its current digestcapxul invite decline: Decline your own pending offer; starts its cleanup
org
capxul org list: List current Organization accesscapxul org create: Create one Organization, or resume the exact one this machine recordedcapxul org show: Read the exact Organization lifecyclecapxul org me: Read your standing in the Organizationcapxul org wait: Poll the lifecycle until ready or failed; never retry setupcapxul org retry: Resume this exact Organization setup lane; never creates onecapxul org member list: List members, including pending memberscapxul org member get: Read one member by exact Account IDcapxul org member invite: Invite one person; any grant offered is approved in the browser, a Seat alone needs no approval. --preview writes nothingcapxul org member grant: Give a Seat a permission. An Owner grants it, off chain; it never moves moneycapxul org member revoke: Take a permission back from a Seat. An Owner revokes itcapxul org invite list: invitations you've sentcapxul org invite cancel: Cancel a pending offer you administer; starts its cleanupcapxul org invite resend: Retry delivery of a verified pending offer; never extends expirycapxul org permission list: List active and pending Permissionscapxul org permission get: Read one exact Permissioncapxul org permission create: Propose a Permission from its complete policy to the Owners; you approve it in the browsercapxul org permission change: Propose one active Permission's complete new policy to the Owners; you approve it in the browsercapxul org permission assign: Propose assigning one active Permission to one exact Account; you approve it in the browsercapxul org permission revoke: Propose revoking one exact active Permission assignment; you approve it in the browsercapxul org permission replace: Replace the current Roles module with its complete authority scope; you approve it in the browsercapxul org payroll groups list: List saved roster drafts in one Organizationcapxul org payroll groups save: Create or replace one complete Payroll roster draftcapxul org payroll groups remove: Remove one exact Payroll roster draftcapxul org payroll terms: Read raw engagement terms without calculating paycapxul org payroll list: List Payroll runs and backend monthly totalscapxul org payroll run: run payroll from a Budget; you approve it in the browser (moves money)capxul org payroll get: Read one exact Payroll run and its ordered Paymentscapxul org payroll wait: Observe one exact Payroll run without submitting Paymentscapxul org department create: Propose a department, its yearly payroll budget and its holders to the Ownerscapxul org department show: A department: its budget, what is committed, its holders and agreementscapxul org department list: The Organization's departments, with their budgets and holderscapxul org department budget set: Propose a department's new yearly budget; the payout ceiling is resized with itcapxul org department holder add: Propose one more holder for a departmentcapxul org department holder remove: Propose taking a holder off a department; their agreements stay with itcapxul org department ceiling set: Propose the payout ceiling every department pays within; what this period paid stays paidcapxul org department ceiling freeze: Propose a payout freeze: the ceiling keeps --leave, with no refill until unfrozen; payees stay owedcapxul org department ceiling unfreeze: Propose the unfreeze: the yearly ceiling back, less all of --leave; any unspent part of it is forfeited, so nothing pays twicecapxul org agreement offer: Offer a payee a salary, a stream or a retainer from a department's payroll budgetcapxul org agreement withdraw: Take back an offer the payee has not accepted; its budget frees at oncecapxul org agreement change: Raise an agreement's rate now, or lower it from a date; give the rate flag it was offered with. --cancel cancels a waiting loweringcapxul org agreement pause: Stop an agreement's pay from building up; earned pay stays collectable and the budget does not changecapxul org agreement resume: Start a paused agreement's pay building up again from nowcapxul org agreement end: Set the last day an accepted agreement pays; its budget frees the day aftercapxul org agreement list: The Organization's payment agreements by department: payee, kind, yearly rate and statuscapxul org books accounts list: The chart of accounts, in code ordercapxul org books accounts import: Make the chart from a template, once. Needs Manage bookscapxul org books accounts add: Add an account. Needs Manage bookscapxul org books accounts rename: Rename or renumber an account. Needs Manage bookscapxul org books accounts archive: Archive an account: it takes no new rows. Needs Manage bookscapxul org books accounts review: The rows waiting in a not-decided account; --accept makes a suggestion an accountcapxul org books facts list: The books' facts, oldest firstcapxul org books assets list: Every token the books record, Capxul's own firstcapxul org books assets add: Add an ERC-20 your Safe holds: Capxul checks it on the chain and books its transfers from now on, with no USD. Needs Manage bookscapxul org books assets remove: Stop recording a token you added; the facts it booked stay. Needs Manage bookscapxul org owner list: Who the Owners are and how many must approve every changecapxul org owner add: Propose making a member an Owner, then approve it in your browsercapxul org owner remove: Propose that someone stops being an Owner; they stay a member. Then approve it in your browsercapxul org owner replace: Propose swapping one Owner for a member in one step, then approve it in your browsercapxul org owner threshold: Propose how many Owners must approve every change, then approve it in your browsercapxul org proposal list: Proposals, newest nonce firstcapxul org proposal get: One proposal: its calls, who approved, and its status on the chaincapxul org proposal approve: Approve it in your browser; the approval that reaches the threshold executes itcapxul org proposal reject: Propose its rejection, then approve that in your browsercapxul org proposal wait: Wait until no approval of it is still on its way to the chain
config
capxul config telemetry on: Turn on usage and diagnostics collectioncapxul config telemetry off: Turn off usage and diagnostics collectioncapxul config telemetry status: Show whether this CLI collects usage and diagnostics
schema
capxul schema: every command, flag and output as JSON
doctor
capxul doctor: Check local configuration; --online also checks the backend
dev
capxul dev key: a sandbox publishable key for your app, in .env.localcapxul dev fund: test money into your own Safe, or an Organization's with --orgcapxul dev time: show both devnet clocks: the chain and the backendcapxul dev time warp: move the chain and backend clocks forward togethercapxul dev time start-at: set the story in the past, once, before it begins: both clocks move backcapxul dev jobs run: run each backend job once, nowcapxul dev snapshot save: save the chain, the backend data and the indexercapxul dev snapshot list: the saved snapshots, by world timecapxul dev snapshot restore: put the chain, the backend data and the indexer backcapxul dev mail list: the sent mail, newest firstcapxul dev mail notices: each notice's delivery: sent, retrying or failedcapxul dev mail fail: make the next sink writes fail as a provider refusalcapxul dev approve: sign an open approval as a person, with their dev signercapxul dev gates set: turn a feature gate on or off for the Organization --org namescapxul dev prices set: script the USD rate a pair has, for the facts written after