Skip to main content

IOTA CLI

IOTA provides a command line interface (CLI) tool to interact with the IOTA network, its features, and the Move programming language. The complete suite of tools is called the IOTA CLI, with commands grouped together by feature. Each group of commands is commonly referred to by its top-level command: IOTA Client CLI, IOTA Console CLI, IOTA Keytool CLI, IOTA Move CLI, and IOTA Validator CLI.

Check IOTA CLI installation

Before you can use the IOTA CLI, you must install it. To check if the CLI exists on your system, open a terminal or console and type the following command:

iota --version

If the terminal or console responds with a version number, you already have the IOTA CLI installed.

If the command is not found, follow the instructions in Install IOTA to get the IOTA CLI on your system.

Update CLI

To get the latest version of the CLI, you can run the following command from a terminal or console. Be sure to replace <BRANCH-NAME> with develop, devnet, testnet, or mainnet to get the desired version. For more information on the branches available, see IOTA Environment Setup.

cargo install --locked --git https://github.com/iotaledger/iota.git --branch <BRANCH-NAME> --features gas-profiler iota

IOTA CLI commands

There are a number of top-level commands available, to get an overview of them, use the iota help command. The six most useful commands to users are the following:

  • IOTA Client CLI: Use the iota client command to interact with the IOTA network.
  • IOTA Client PTB CLI: Use the iota client ptb command to build and execute PTBs.
  • IOTA Console CLI: Use iota console to open an interactive console with the currently active network.
  • IOTA Keytool CLI: Use the iota keytool command to access cryptography utilities.
  • IOTA Move CLI: Use the iota move command to work with the Move programming language.
  • IOTA Validator CLI: Use the iota validator command to access tools useful for IOTA validators.

Use the help flag for the commands that are not documented yet. For example, iota validator --help.