An unofficial CLI for managing Fireblocks services.
Project description
fireblocks-cli
Disclaimer: This project is an independent, unofficial command-line interface (CLI) for interacting with the Fireblocks API. It is not affiliated with or endorsed by Fireblocks Ltd. "Fireblocks" is a registered trademark of Fireblocks Ltd.
This project is inspired by the design philosophy and usability of the AWS CLI.
Environment
This tool has been tested with:
- Python 3.11 or newer
Other versions are not officially supported. Please ensure you are using Python 3.11+ before running or contributing to this project.
Installation
You can install fireblocks-cli locally as a Python project:
git clone https://github.com/stirnetwork/fireblocks-cli.git
cd fireblocks-cli
pip install .
You can use pip.
pip install fireblocks-cli
For development, use:
pip install -e .[dev]
Usage
fireblocks-cli [COMMAND] [OPTIONS]
Examples:
fireblocks-cli configure init
fireblocks-cli configure list
To see all available commands:
fireblocks-cli --help
fireblocks-cli configure Subcommand List
| Subcommand | Implemented | Test | Description | Notes |
|---|---|---|---|---|
init |
✅ | ✅ | Initialize the default configuration files | Creates ~/.config/fireblocks-cli/config.toml and ~/.config/fireblocks-cli/keys/ |
gen-keys |
✅ | ✅ | Generate Fireblocks-compatible private key and CSR | Outputs to .config/fireblocks-cli/keys/{name}.csr, etc. |
list |
✅ | ✅ | List all configured profiles | Displays [profile] sections from config.toml |
edit |
✅ | ✅ | Open the config file in your default $EDITOR |
Falls back to vi or nano if $EDITOR is not set |
validate |
✅ | ✅ | Validate the structure and contents of the config file | Checks for invalid or missing keys and values |
add |
n/a | n/a | Append a new profile to the configuration file | Will add to the bottom of the file without auto-formatting |
remove |
n/a | n/a | Remove a profile from the configuration | Deletes the corresponding section from config.toml |
Directory Structure (XDG Base Directory Specification)
This CLI follows the XDG Base Directory Specification:
- Configuration:
$XDG_CONFIG_HOME/fireblocks-cli/config.toml(default:~/.config/fireblocks-cli/config.toml) - Data:
$XDG_DATA_HOME/fireblocks-cli/(default:~/.local/share/fireblocks-cli/) - Cache:
$XDG_CACHE_HOME/fireblocks-cli/(default:~/.cache/fireblocks-cli/)
For Developers
This section explains how to contribute and work on the project.
🛠️ Developer Setup
Install development dependencies:
make install-dev
Run tests:
make test
Run linter:
make lint-license
Run all pre-commit hooks:
make pre-commit-refresh
Build a binary (optional)
To build an executable for distribution:
./build.sh patch # or 'minor' or 'major'
The binary will be generated in the dist/ directory, compressed using UPX (if available).
Code Licensing & Attribution
-
Licensed under MPL-2.0.
-
Files include SPDX headers and author metadata.
-
Please use the following before committing:
make annotate-SPD
make add-author
Changing the Copyright Holder
To change the copyright holder name inserted into source files:
-
Create a file named
COPYRIGHT_HOLDERin the root of the repository, and write your name or your organization’s name in it. For example:echo "Your Name or Organization" > COPYRIGHT_HOLDER
⚠️ Note: This file is
.gitignore'd and should not be committed. -
Run
make annotate-SPD(or the relevant pre-commit hook) to re-annotate modified source files with the new copyright holder name.- This target internally calls
reuse annotateto update SPDX headers. - Only
.pyand.shfiles tracked by git are affected.
make annotate-SPD - This target internally calls
Important: The value in
COPYRIGHT_HOLDERmust be under 50 characters.
🤝 Contributing
Contributions are welcome!
Please make sure your commits are signed off (DCO) and that you run the following before pushing:
pre-commit run --all-files
🖋 What is "signed off (DCO)"?
By signing off your commits, you certify that you wrote the code or have the right to submit it under the project's license.
To sign off a commit, use the -s flag when committing:
git commit -s -m "Your commit message"
or
git commit -sm "Your commit message"
This will append a line like the following to your commit message:
Signed-off-by: Your Name <your.email@example.com>
For more details, see the Developer Certificate of Origin.
🧾 Contributors
This project is developed with support from multiple contributors. See CONTRIBUTORS.md for a full list.
📄 License
This project is licensed under the Mozilla Public License 2.0.
📬 Contact
Maintained by Shohei Kamon. Feel free to reach out for collaboration or questions!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fireblocks_cli-0.1.10.tar.gz.
File metadata
- Download URL: fireblocks_cli-0.1.10.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0096a6a3c55fc5aeead279faf83bb3dbbc66b2d91126bf82750da9dec89f4d5
|
|
| MD5 |
098acb3d208bb9d1dd287aaca6064671
|
|
| BLAKE2b-256 |
65920937722c41b48276205aaa27963a4c16f517aa62bedc39e91c1d0fd1c396
|
File details
Details for the file fireblocks_cli-0.1.10-py3-none-any.whl.
File metadata
- Download URL: fireblocks_cli-0.1.10-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb36858cde5e157ee7d8a8000b9edb71d049b20ec200993188bc733d13de427b
|
|
| MD5 |
aa37cc6eff9c301b5dffc67cb9eef8d6
|
|
| BLAKE2b-256 |
c920e163efee6079ae3dd11aa5de1188df26a97064d93a03aa7f842c3edb902a
|