1. HMY CLI Download

The Harmony CLI tool is used to interact with the Harmony blockchain.

Throughout this guide, we will use the following syntax:

  • ./hmy: This is the CLI program

  • ./hmy.sh -- : This is the command to use the CLI with a shell wrapper (for macOS)

  • <argument>: This is a required argument

  • [argument]: This is an optional argument

  • / : This is a line break, used to break up a line while writing a command

Download Harmony CLI tool

1. For Linux

curl -LO https://harmony.one/hmycli && mv hmycli hmy && chmod +x hmy

2. For MacOS

curl -O https://raw.githubusercontent.com/harmony-one/go-sdk/master/scripts/hmy.sh
chmod u+x hmy.sh
./hmy.sh -d

Now you can use hmy.sh as a wrapper over hmy and you should assume that all references to hmy in these documents refer to hmy.sh. For example, the command ./hmy becomes ./hmy.sh -- .

On Linux, calling the cookbook would look like this:

And on MacOS would look like:

Output

Troubleshooting

Frequently encountered errors:

Last updated

Was this helpful?