Command Line Interface for Safe
Project description
Safe CLI
Safe CLI is a command-line utility for Safe contracts. You can use it to manage your Safe account from the command line.
It does not rely on Safe{Core} API and can also be used in networks where Safe services are unavailable. Learn more through the documentation.
Using Docker
Prerequisite: Install Docker Desktop.
Once Docker is installed on your system, run the following command to create new Safe accounts:
docker run -it safeglobal/safe-cli safe-creator
You can also run the following command to run the Safe CLI with an existing Safe:
docker run -it safeglobal/safe-cli safe-cli <checksummed_safe_address> <ethereum_node_url>
Using Python PIP
Prerequisite: Python >= 3.9 (Python 3.12 is recommended).
Once Python is installed on your system, run the following command to install Safe CLI:
pip3 install -U safe-cli
Usage
safe-cli [-h] [--history] [--get-safes-from-owner] address node_url
positional arguments:
address The address of the Safe, or an owner address if --get-safes-from-owner is specified.
node_url Ethereum node url
options:
-h, --help Show this help message and exit
--history Enable history. By default it's disabled due to security reasons
--get-safes-from-owner Indicates that address is an owner (Safe Transaction Service is required for this feature)
Safe{Core} API/Protocol
- Safe Infrastructure
- Safe Transaction Service
- Safe Smart Account
- Safe Smart Account deployment info and addreses
Setting up for developing
If you miss something and want to send us a PR:
git clone https://github.com/safe-global/safe-cli.git
cd safe-cli
stat venv 2>/dev/null || python3 -m venv venv
source venv/bin/activate && pip install -r requirements-dev.txt
pre-commit install -f
Contributors
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file safe_cli-1.2.1.tar.gz
.
File metadata
- Download URL: safe_cli-1.2.1.tar.gz
- Upload date:
- Size: 35.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab5474e91935b66d02b3faa15bf2c5ff58ee5cdb57779f8a8b6a63ff4f9fc332 |
|
MD5 | 4c7668fd05df92a5932c4283fefb1fc2 |
|
BLAKE2b-256 | daef80f5ec20dd3b67721b87eca47e8dd1a791c17055fbcd1bd9062821193e40 |
File details
Details for the file safe_cli-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: safe_cli-1.2.1-py3-none-any.whl
- Upload date:
- Size: 44.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4ad4d25d3476afd920a286db74a58bbb23c30813b5378454814f1794eb51b91 |
|
MD5 | cb730675e8d040e8e762860b3a34d0c0 |
|
BLAKE2b-256 | 39be0ecc1f37b1acb8a12bff432fe618b9288bb59450e5e8866c60b1695f1f36 |