Skip to main content

hedera-cli-py

Hedera CLI in Python

Install

pip install hedera-cli

How to Use

Just run:

hedera-cli

Since hedera-cli depends on hedera-sdk-py, which requires Java >= 11, please make sure your JAVA_HOME environment is set up correctly.

You can run setup inside hedera-cli and enter your account ID and private key. You can also put them in an .env file to be read automatically at hedera-cli startup. To use a different env file, just use the filename as the argument for hedera-cli. For example:

hedera-cli mainnet.env

A sample env file sample.env is provided.

commands

Type ? or help for a list of commands. Type ?command for help on a specific command, for example ?topic.

setup

Set up the client.

account

account create  (create an account, account id and privatekey will be printed)

account info [accoun_id]  (get account info for current account if no accountId is provided,
                           or for a different account if accountId is provided)

account balance [account_id]  (get account balance for current account if no accountId,
                               or for a different account if accountId is provided)

account delete account_id  (delete the account identified by accountId.
                                you will be prompted for that account's private key)

file

file create [file_path]
file info file_id
file contents file_id
file append file_id [file_path]
file delete file_id

send

send  (no argument, you will prompted for recipient account and amount)

topic

topic create [memo]  (create a topic with an optional memo)
topic info topic_id  (get info about a topic)
topic send topic_id message [[message]]  (send message to topic_id)
topic get topic_id [sequence_number]  (get topic message(s).  If you specify a sequence_number,
                                       you get one message, otherwise, you get all the messages on the topic)

keygen

Create a key pair.

network

Switch network

exit

Exit the CLI

Metadata

Release files for hedera-cli 0.1.2.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hedera-cli 0.1.2.post1
File Size Uploaded Provenance
hedera-cli-0.1.2.post1.tar.gz 13.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hedera-cli 0.1.2.post1
File Interpreter ABI Platform
hedera_cli-0.1.2.post1-py3-none-any.whl Python 3 none any Details

Total release size: 26.2 kB

Release files / hedera-cli-0.1.2.post1.tar.gz

Download URL hedera-cli-0.1.2.post1.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bf0263b9aec547a88d726bcfab9d1da5b8b57edffde72589c5f571576ec088ee
BLAKE2b-256 checksum
How to use checksums
3422610ee24098538b4b35aabc2e9c0a37d30f34ae4cf927e24fa147a826179c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

Release files / hedera_cli-0.1.2.post1-py3-none-any.whl

Download URL hedera_cli-0.1.2.post1-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1fc52f2750af5c350fcbc2b079bbc0babe217d0b9287c9262876d7e12225650
BLAKE2b-256 checksum
How to use checksums
4a2be0f21673e0123be718e94edf0238cc767701d58a8fb88a6eec7eb00e1be8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

Security for hedera-cli 0.1.2.post1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page