GithubHelp home page GithubHelp logo

loikg / hedera-cli Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 866 KB

A simple hedera cli client

License: Other

Go 100.00%
blockchain cli go golang hedera hedera-hashgraph hedera-sdk hedera-token-service cobra-cli command-line

hedera-cli's Introduction

Build and run tests

hedera-cli

This project is a work in progress and is not production ready. Use it at your own risks.

hedera-cli make it easy to interact with the hedera blockchain from the command line. It can connect to a local hedera node, testnet and mainnet.

Install

go install github.com/loikg/hedera-cli@latest

Usage

NAME:
   hedera-cli - hedera-cli make it easy to interact with the hedera blockchain

USAGE:
   hedera-cli [global options] command [command options] [arguments...]

DESCRIPTION:
   hedera-cli make it easy to interact with the hedera blockchain form the command line.
   It can connect to a local hedera node, testnet and mainnet.
   Operator and network can be configured inYou can either provide the
   --network, --operator-id, --operator-key or use the HEDERA_NETWORK, HEDERA_OPERATOR_ID,
   HEDERA_OPERATOR_KEY environment variables.

COMMANDS:
   account, a  Manage hedera accounts
   keygen, kg  Create a private key.
   token, t    Create, update, delete fungible and non fungible tokens
   help, h     Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --network value       Hedera network to connect to, possible values are local,testnet,mainnet [$HEDERA_NETWORK, $NETWORK]
   --operator-id value   Hedera operator account id [$HEDERA_OPERATOR_ID, $OPERATOR_ID]
   --operator-key value  Hedera operator account private key [$HEDERA_OPERATOR_KEY, $OPERATOR_KEY]
   --help, -h            show help

Examples

Create an account

export HEDERA_NETWORK=local
export HEDERA_OPERATOR_ID=0.0.1022
export HEDERA_OPERATOR_KEY=a608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4

hedera-cli account create

Create a fungible token

export HEDERA_NETWORK=local
export HEDERA_OPERATOR_ID=0.0.1022
export HEDERA_OPERATOR_KEY=a608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4

hedera-cli token create \
		--balance 100 \
		--decimals 2 \
		--name myToken \
		--symbol MTK \
		--type ft \
		--supply-type infinite \
		--treasury-id 0.0.1022 \
		--treasury-key $HEDERA_OPERATOR_KEY

hedera-cli's People

Contributors

dependabot[bot] avatar loikg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hedera-cli's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.