Enter the following command into your shell of choice:
$ curl -LO https://harmony.one/hmycli && mv hmycli hmy && chmod +x hmy
hmy depends on some dynamic libraries, hence we recommend using the shell wrapper. Enter there commands into your terminal:
$ 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.sh -- .
If you are interested in compiling from source, then the process is more involved.
Clone the repository at the same level as the main Harmony repo:
$ cd /Users/edgar/Repos/harmony-work/src/github.com/harmony-one$ lsbls harmony mcl$ git clone https://github.com/harmony-one/go-sdk.git
2. Then setup the build flags:
$ source harmony/scripts/setup_bls_build_flags.sh
make in the
go-sdk repo. This builds a binary named
$ cd go-sdk$ make
Congratulations! You can now use the binary to run the CLI.