Skip to main content

The arc CLI

@joinarc/cli is the official command-line client for the Arc API and the package is @joinarc/cli. The CLI is read-only today (see the API).

Install​

npm install -g @joinarc/cli
arc --version

Requires Node.js 20+.

Authenticate​

arc login
arc whoami
arc companies --format json

Run arc logout to ends the session on Arc. Further management of the remote login sessions can be managed on the arc app.

API keys for CI and servers​

Create an API key under Settings → Developer. For interactive setup, save it with arc config add; the prompt hides the input. For CI, inject ARC_TOKEN from the platform's secret store. Do not put a key in a command line, shell history, log, committed file, or agent conversation.

arc config add verifies the key against the API before writing anything — it prints the company and owner behind the key, so it doubles as the "does it work?" check — then saves it to ~/.arc/config (owner-only permissions) twice: as default, which plain arc commands use, and under an alias named for the key's company (override with --profile <name>). The file is JSON, and holds a named profile per Arc account — pick one with --profile <name>:

{
"default": { "token": "arc_sk_…" },
"acme": { "token": "arc_sk_…" }
}

Connecting a second Arc account is just another arc config add: the new key takes over default and gets its own alias, while every earlier account keeps its profile — reach one with --profile acme.

Resolution precedence, highest first:

  • Credential: --token → ARC_TOKEN → saved browser login → default profile key. A named --profile / ARC_PROFILE with a key selects that key over browser login.
  • API URL: --api-url → ARC_API_URL → ~/.arc/config → production default
  • Profile: --profile → ARC_PROFILE → default

Companies​

One arc login covers every company that the signed-in person can use with the CLI. arc companies lists those companies. arc company use <company id> saves a default, and arc company current shows the company commands use and where the choice came from.

For a browser sign-in, the company precedence is --company, then ARC_COMPANY, then the saved default. If the saved default is no longer available, arc companies still works. Run arc company use <company id> to recover without signing in again.

An API key always acts for its own company. ARC_COMPANY is ignored when authentication uses an API key, and --company is a usage error.

Permissions​

An API key can only read what the Arc user who created it can read in the dashboard. Cash management commands (accounts, transactions, payments, statements, external-accounts, accounting-connections, invoices, invoice-recipients, and treasury summary|positions) require that user's Treasury view permission. Downloading a statement additionally requires permission to view account numbers, and payments requires the payments permission. cards --scope team mirrors the dashboard's Team cards tab and requires the same permission; cards --scope own remains available without it.

When permission is denied, the command exits 3. The key is still valid, so ask a company admin for access rather than reissuing it. Permissions are checked on every request, so role changes take effect immediately on existing keys.

Commands​

Paginated list commands use --limit (1–100, default 25) and --cursor. companies list and skills list return all results without pagination. Transaction and invoice lists also accept --from/--to (inclusive, YYYY-MM-DD, on the transaction date and the invoice issue date respectively). Values that can't work are rejected locally, before any request: --limit abc, --limit 500, --from last-monday and --timeout 0 all exit 2 naming the flag.

A command group runs its main read when you don't name a subcommand: arc accounts is arc accounts list, arc org is arc org get. config and skills have no default — they write, so they list their subcommands instead.

Use the Id column for get <id> and download <id>. Transactions also show Account, matching the Id in arc accounts list. Cards use Last4 instead of an ID; skills use Skill.

For a command's flags, examples, and response fields: arc help <command>.

Identity & organization​

CommandReturns
arc whoamiThe server-validated company, owner, and selected browser session or API key.
arc statusThe resolved profile, API URL, saved credential, and server-validated identity or validation error.
arc companies listEvery company available to the browser sign-in, including your role. arc companies is the same command.
arc company use <id>Save a company as the browser sign-in's default.
arc company currentShow the active company and whether it came from --company, ARC_COMPANY, the saved default, or an API key.
arc profile getYour personal profile — legal name, email, phone, address; adds date of birth, job title, ownership %, and citizenship once your identity is verified.
arc org getThe company's organization profile — legal name, DBA, masked EIN, phone, legal address. --investment-preferences adds investment preferences.
arc users listCompany members: name, email, role, status. --email resolves one member exactly (any casing); --name matches a name substring; --role/--status narrow by kind.

Accounts & transactions​

CommandReturns
arc accounts listCash-management accounts and their balances. --type treasury|operating narrows by product; --status selects a state by the name the app gives it — ACTIVE, ACCOUNT_RESTRICTED, PENDING_APPROVAL, ACCOUNT_CLOSED. The list defaults to open accounts (ACTIVE and ACCOUNT_RESTRICTED); naming another state returns it.
arc cards listArc-issued cards: masked last-4, form factor, cardholder, status, spend limit. --last4 selects one card exactly (cards carry no public id); --scope, --status, --form-factor, --cardholder narrow the list.
arc external-accounts listLinked external bank accounts: institution, masked number, type, status. Filter --type checking|savings, --status active|inactive.
arc transactions listTransactions, newest first, filtered server-side (below).
arc transactions get <id>Full detail for a single transaction, including isInternalTransfer.

arc transactions list filters are applied server-side, so you fetch only the rows you asked for. They combine freely, and each stays in effect while paging with --cursor:

FlagFilters on
--account <id>One account — the Id from arc accounts list, or a row's accountArn.
--direction debit|creditMoney out, or money in.
--status OPEN|POSTED|VOID|RETURNEDThe status the rows report; POSTED is settled.
--method <method>ach and wire match every variant of each; or name one — ach-credit, ach-debit, ach-transfer, wire-credit, wire-debit, wire-transfer, international-wire-transfer, card, check-deposit, internal-transfer, rewards-redemption.
--min-amount / --max-amountDollars (10000.50), matched against the amount's magnitude — the same bound covers debits and credits.
--search <text>Case-insensitive substring across the transaction — the counterparty or merchant name, the description and notes, and bank/account identifiers are all matched. Broader than a name filter.
--from / --toDate window, YYYY-MM-DD.
--exclude-internal-transfersOmits self-transfers and treasury sweeps.

Payments​

CommandReturns
arc payments listOutgoing payments in one uniform shape. All states are returned by default; --status <all|paid|scheduled|draft|pending-approval|canceled> filters the list.
arc payments get <id>Detail for a single payment in any lifecycle state.

arc payments list filters also run in the database, across every lifecycle state at once:

FlagFilters on
--counterparty <text>Case-insensitive substring on the payee name.
--method <method>wire covers domestic and international wires; or name one — ach, intra-transfer, international-wire, international-wire-fee. Drafts report no method, so any --method excludes them.
--min-amount / --max-amountDollars (10000.50), matched against the amount the row shows.
--from / --toDate window, YYYY-MM-DD, on the single Date the row displays — sent for a paid payment, else scheduled, else created.

Statements​

CommandReturns
arc statements listAvailable monthly account statements. --account <id> (the Id from arc accounts list), --month 2026-06, and --year 2026 narrow the list.
arc statements download <id>Downloads a statement PDF (--output <file>; defaults to arc-statement-<id>.pdf).

Reach one month directly rather than paging for it:

arc statements list --account a1b2c3d4 --month 2026-06 --format json

Statement PDFs draw on a small per-company hourly budget shared with the Arc app — download the statements you need rather than looping the whole list, and cache the file.

Invoices​

CommandReturns
arc invoices listInvoices you've sent (money in): number, recipient, title, issue date, due date, total. Filter server-side: --recipient (name substring), --number (exact), --due-from/--due-to (due-date range), --overdue (due before today — invoices carry no payment status, so this is a due-date test only), --from/--to (issue-date range).
arc invoices get <id>One invoice's detail: the list row plus the sender's note and every line item.
arc invoice-recipients listThe customers you bill: name, email, when added; adds each structured billing address in --format json. Alphabetical by name.

Treasury​

CommandReturns
arc treasury summaryInvested-account overview: total value (matches arc accounts list), cash available to trade, net yield (bps), interest/dividend earnings.
arc treasury positionsHoldings, one uniform row each (cash / MMF / T-bill / …): market value, shares, net yield (bps), maturity.
arc treasury ratesCurrent money-market fund rates (gross + net of your fees), highest-yield highlights, and the cash-sweep rate.

Accounting​

CommandReturns
arc accounting-connections listAccounting integrations (QuickBooks/Xero links + bank feeds) and their sync status: provider, type, status, last synced.

Reference & agent setup​

CommandReturns
arc openapiPrints the full /v1 OpenAPI spec (offline) — the machine-readable definition of every response shape.
arc schema [resource]Prints one resource's response schema offline (e.g. arc schema payments); omit the resource to list the available schemas.
arc skills list / arc skills installManage the agent skills that teach an AI agent how to use this CLI (see Connect your AI agent).

Output format​

Every command supports a global --format:

  • --format table (default) — human-readable.
  • --format json — pretty JSON (structured; Money is { minorUnits, currency }).
  • --format jsonl — newline-delimited JSON, one row per line — ideal for piping to jq -c / grep.

Response shapes​

The exact fields each command returns are defined once, machine-readably. Discover them offline: arc schema <resource> for a single resource, arc openapi for the whole spec, or arc <command> --help (each carries a Response fields section). You can also browse the rendered API reference. These pages describe what each command does and when to reach for it — not its field-by-field layout.

Exit codes​

Stable, so scripts and agents can branch on $?:

CodeMeaning
0success
2usage error (bad flags / missing or malformed key)
3auth failed — bad/expired key (401) or your Arc user lacks permission for that data (403)
4rate limited (429)
5API error (5xx, unexpected status, or a 2xx body that isn't JSON)
6network error (timeout, DNS, connection)
70unexpected CLI bug