Skip to main content
Global flags apply at the root of the CLI or recur on multiple commands. Command-specific flags are documented on each resource or additional command page.

Global flags

Blnk CLI supports the following global flags:
FlagTypeDescription
-h, --helpbooleanShow help for the current command. Run blnk [command] --help for subcommand help.
-v, --versionbooleanPrint the CLI version and exit.

Shared resource flags

These flags appear on many list, create, and fetch commands under Resource commands.
FlagTypeDefaultDescription
--jsonbooleanPrint the full API response as JSON. On create, prints JSON after a successful request. On list, applies when fetching a single resource with --id.
--idstringFetch a single resource by ID on list commands (for example --id ldg_abc123 for ledgers). Without --json, the CLI prints a formatted summary; with --json, it prints the full object.
-p, --pageinteger1Page number for paginated list results.
--per-pageinteger10Number of results per page for paginated lists.
--{field}stringFilter list results by any indexed field. Pass the field name after -- and the value after a space. Quote comma-separated values for multiple matches, for example --currency "USD,EUR".
-h, --helpbooleanShow help for the current subcommand.
For how output changes with these flags, see CLI output formats.