Installation

Install

Install Latest Release Build
1
curl https://raw.githubusercontent.com/iotexproject/iotex-core/master/install-cli.sh | sh
Copied!
install Latest Unstable Build
1
curl https://raw.githubusercontent.com/iotexproject/iotex-core/master/install-cli.sh | sh -s "unstable"
Copied!

Show Version

Usage: ioctl version
1
→ ioctl version
2
Client:
3
packageVersion:"v0.5.0" packageCommitID:"a4308fc82bea22cfaa45addef679a09f41f3a998" gitStatus:"clean" goVersion:"go version go1.11.5 darwin/amd64" buildTime:"2019-04-20-PDT/18:04:37"
4
5
Server: api.iotex.one:443
6
packageVersion:"v0.5.0" packageCommitID:"a4308fc82bea22cfaa45addef679a09f41f3a998" gitStatus:"clean" goVersion:"go version go1.11.5 linux/amd64" buildTime:"2019-04-21-UTC/01:04:11"
Copied!

Update

Usage: ioctl update [-t version-type]
Update ioctl Release Build:
1
➜ ioctl update
2
Downloading the latest stable version ...
3
Password:
4
ioctl is up-to-date now.
Copied!
update ioctl Latest/Unstable Build:
1
➜ ioctl update -t unstable
2
Downloading the latest unstable version ...
3
Password:
4
ioctl is up-to-date now.
Copied!

Configure

Variables: [endpoint, wallet, explorer, defaultacc, language, nsv2height] Explorers: [iotexscan (default), iotxplorer, custom]

Set Config

Usage: ioctl config set VARIABLE VALUE
Mainnet
Testnet
1
➜ ioctl config set endpoint api.mainnet.iotex.one:443
2
endpoint is set to api.iotex.one:443
3
4
# If the endpoint does not implement SSL, use:
5
# ioctl config set endpoint api.mainnet.iotex.one:80 --insecure
Copied!
1
➜ ioctl config set endpoint api.testnet.iotex.one:443
2
endpoint is set to api.iotex.one:443
3
4
# If the endpoint does not implement SSL, use:
5
# ioctl config set endpoint api.testnet.iotex.one:80 --insecure
Copied!

Get Config

Usage: ioctl config get VARIABLE | all
1
➜ ioctl config get wallet
2
/Users/IoTeX/.config/ioctl/default
Copied!

Reset Config

Usage: ioctl config reset
1
➜ ioctl config reset
2
Config reset to default values
Copied!
Last modified 2mo ago
Export as PDF
Copy link