Use the Blnk CLI to manage your Core from your terminal.
The Blnk CLI is the official command-line tool to interact with your Blnk Core. Use the commands below to connect to an instance, manage ledgers, balances, transactions, identities, and reconciliations.
Ensure your Blnk server is running and that you have connected the CLI to an instance before using resource commands. Run blnk connect [url] then blnk info to verify.
Use the connect command to connect to a Blnk Core instance and verify that the instance is reachable.
blnk connect [url]
You can also use the alias c, e.g. blnk c https://api.example.com
Options
Description: This command connects to a Blnk Core instance and verifies that the instance is reachable.Usage: blnk connect [url]Options: -h, --help Show help informationExamples: $ blnk connect $ blnk c https://api.example.com
Description: View a list of your ledgers.Usage: blnk ledgers list [options]Options:Single list: --id <ledger-id> Get a ledger by ID --json Print full JSON output for single fetchGroup list: --<field> <value> Filter by any field (quote comma-separated values, e.g. --currency "USD,EUR") -p, --page <number> Page number (default: 1, e.g. 2) --per-page <number> Results per page (default: 10, e.g. 25) -h, --help Show help informationExamples: $ blnk ledgers list $ blnk ledgers l --page 2 --per-page 20 $ blnk ledgers l --ledger-id ldg_abc123
Description: This command creates a new ledger interactively.Usage: blnk ledgers createOptions: --json Print full JSON output -h, --help Show help informationExamples: $ blnk ledgers create $ blnk ledgers c $ blnk ledgers create --json
Description: View a list of your balances.Usage: blnk balances list [options]Options:Single list: --id <balance-id> Get a balance by ID --json Print full JSON output for single fetchGroup list: --<field> <value> Filter by any field (quote comma-separated values, e.g. --currency "USD,EUR") -p, --page <number> Page number (default: 1, e.g. 2) --per-page <number> Results per page (default: 10, e.g. 25) -h, --help Show help informationExamples: $ blnk balances list $ blnk balances l --page 2 --per-page 15 $ blnk balances l --currency "USD,EUR" --indicator World
Description: This command creates a new balance interactively.Usage: blnk balances createOptions: --json Print full JSON output -h, --help Show help informationExamples: $ blnk balances create $ blnk balances c $ blnk balances create --json
Description: Link a balance to an identity.Usage: blnk balances update <balance-id>Options: -h, --help Show help informationExamples: $ blnk balances update bln_abc123 $ blnk balances u bln_abc123
Description: View a list of your transactions.Usage: blnk transactions list [options]Options:Single list: --id <transaction-id> Get a transaction by ID --json Print full JSON output for single fetchGroup list: --<field> <value> Filter by any field (quote comma-separated values, e.g. --currency "USD,EUR") -p, --page <number> Page number (default: 1, e.g. 2) --per-page <number> Results per page (default: 10, e.g. 25) -h, --help Show help informationExamples: $ blnk transactions list $ blnk transactions l --page 3 --per-page 25 $ blnk transactions l --status APPLIED --currency "USD,EUR" $ blnk transactions l --balance-id bln_abc123 --status APPLIED
For creating more complex transactions, use the API. See the API documentation.
Options
Description: This command creates a new transaction interactively.Usage: blnk transactions createOptions: --json Print full JSON output -h, --help Show help informationExamples: $ blnk transactions create $ blnk transactions c $ blnk transactions create --jsonNote: For creating more complex transactions, please use the API. Refer to the API documentation at https://docs.blnkfinance.com
Description: View a list of your identities.Usage: blnk identities list [options]Options:Single list: --id <identity-id> Get an identity by ID --json Print full JSON output for single fetchGroup list: --<field> <value> Filter by any field (quote comma-separated values, e.g. --currency "USD,EUR") -p, --page <number> Page number (default: 1, e.g. 2) --per-page <number> Results per page (default: 10, e.g. 25) -h, --help Show help informationExamples: $ blnk identities list $ blnk identities l --page 2 --per-page 20 $ blnk identities l --email-address jane@example.com $ blnk identities l --first-name Jane --last-name Doe
Description: This command creates a new identity interactively.Usage: blnk identities createOptions: --json Print full JSON output -h, --help Show help informationExamples: $ blnk identities create $ blnk identities c $ blnk identities create --json
Description: View a list of your reconciliations.Usage: blnk reconciliations list [options]Options:Group list: --<field> <value> Filter by any field (quote comma-separated values, e.g. --currency "USD,EUR") -p, --page <number> Page number (default: 1, e.g. 2) --per-page <number> Results per page (default: 10, e.g. 25) -h, --help Show help informationExamples: $ blnk reconciliations list $ blnk reconciliations l -p 2 --per-page 20 $ blnk reconciliations l --status COMPLETED --upload-id upl_abc123
We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool.To ask questions or discuss issues, please contact us or join our Discord community.