Skip to main content
Use the ledgers command to browse ledgers, open one record by ID, and create new ledgers on your connected Core instance. Ledgers group balances and transactions; start here when you need a ledger_id for balance setup.

list

See every ledger on your connected Core instance in a paginated table with ID, name, and created time. Use this when you need a ledger_id before creating balances or when auditing how your books are partitioned.
Options Usage
1

List all ledgers

Run the command to view a paginated table of ledgers:
Paginate with -p and --per-page:
200 Success

list --id

Resolve one ledger by ledger_id, including its name and meta_data. Pass --json to print the same payload your application receives from the Core API.
Options Usage
1

Get one ledger

Run the command with a ledger ID:

create

Add a ledger through guided prompts for name and optional JSON metadata. Create ledgers first when you are standing up a new product, region, or currency scope. Balances and transactions hang off a ledger.
Arguments The CLI prompts for these values. They are not passed on the command line. Options Usage
1

Create new ledger

Run the command:
The CLI prompts for each argument:
Press Enter at the metadata prompt to leave it empty.
2

Ledger created