Helios CLI/

Using helios-cli

Compiling

$ helios compile my_script.hl -o my_script.json

Optimization can be switched on using the --optimize (or -O) flag:

$ helios compile my_script.hl --optimize -o my_script.json

helios-cli automatically searches for modules in the current directory. Other directories can be included using the -I option:

$ helios compile my_script.hl -I ./my_modules/ -o my_script.json

Parameters can be set using the -D<param-name> <param-value> option:

$ helios compile my_script.hl -DMY_PARAM 100 -o my_script.json

Evaluating a parameter

$ helios eval my_script.hl MY_PARAM

Similar to the compile command, additional module directories can be included using -I.

Calculating a script address

helios-cli can calculate the address of a compiled script:

$ helios address my_script.json

For mainnet address the --mainnet (or -m) flag must be used:

$ helios address my_script --mainnet