The CLI authenticates to the Fireblocks API using the same JWT-signing mechanism as the official SDKs: each request is signed with your RSA private key and identified by your API key.Documentation Index
Fetch the complete documentation index at: https://fireblocks-43c4b3ee-chore-add-cli.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
You need:- A Fireblocks API key — obtained from the Fireblocks Console under Developer Center > API Users
- An RSA private key — the
.keyfile generated when creating the API user
Credential Resolution Order
The CLI resolves credentials in priority order:- CLI flags —
--api-keyand--secret-keypassed directly on the command line - Environment variables —
FIREBLOCKS_API_KEYandFIREBLOCKS_SECRET_KEY(orFIREBLOCKS_SECRET_KEY_PATH) - Config file profile — stored in
~/.config/fireblocks/config.json
Interactive Setup
The easiest way to configure credentials is the interactiveconfigure command:
~/.config/fireblocks/config.json with file permissions 0600.
To configure a named profile:
Config File Format
Environment Variables
For CI/CD pipelines and non-interactive environments, set credentials as environment variables:| Variable | Description |
|---|---|
FIREBLOCKS_API_KEY | Your Fireblocks API key |
FIREBLOCKS_SECRET_KEY | RSA private key — inline PEM content or a file path |
FIREBLOCKS_SECRET_KEY_PATH | File path to your RSA private key (alternative to FIREBLOCKS_SECRET_KEY) |
FIREBLOCKS_BASE_URL | Base URL override (default: https://api.fireblocks.io) |
CLI Flags
Pass credentials directly on the command line to override environment variables and the config file:--secret-key accepts either a file path or an inline PEM string.
Multiple Profiles
Use profiles to manage multiple workspaces or environments:API Base URL
The default base URL ishttps://api.fireblocks.io. Override it per command, in a profile, or via FIREBLOCKS_BASE_URL.
| Environment | Base URL |
|---|---|
| US Mainnet / Testnet | https://api.fireblocks.io (default) |
| US Sandbox | https://sandbox-api.fireblocks.io |
| EU Mainnet / Testnet | https://eu-api.fireblocks.io |
| EU2 Mainnet / Testnet | https://eu2-api.fireblocks.io |
Verify Your Setup
Runwhoami to confirm credentials are configured correctly and that the API key can authenticate:
GET /v1/users/me and returns the masked API key, base URL, and user details on success.
To preview the resolved auth context without making a network call: