Command line interface application for the IOTA wallet library.
After downloading the CLI, create a new account. On Mac and Linux you will first need to chmod +x ./wallet
.
$ ./wallet new --node http://node.url:port --alias ALIAS
If you already created an account, you can just run the CLI without args to get to the account selector:
$ ./wallet
Alternatively, you can select the account to use with the account
command:
$ ./wallet account "my first account"
The wallet CLI has a set of main commands accesible with $ ./wallet COMMAND [ARGS]
and a dedicated command list for the account prompt.
Prints the CLI help information. If a command is specified, the command's help will be printed.
Sets the 24 word mnemonic to use.
new [--node "http://node.url:portNumber" --alias ALIAS --type TYPE]
Creates a new account connecting to the default testnet node. Optionally takes the account alias, account type (one of stronghold
, ledger-nano
or ledger-nano-simulator
) and a custom node URL.
Selects the account associated with the specified alias.
Deletes the account associated with the specified alias.
Synchronizes all accounts with the Tangle.
Backups the wallet database to the specified path.
Imports the accounts stored on the specified backup path.
Prints the CLI help information. If a command is specified, the command's help will be printed.
Exits the account prompt.
Synchronizes the account with the Tangle.
Generates a new unused address.
Gets the account balance.
Lists the account's addresses.
Lists the account's messages. If an id is specified, the query will look for the message associated with that id. If a type is specified, the messages will be filtered based on it.
- Possible
type
values: "received, "sent", "failed", "unconfirmed" or "value"
Transfer funds from the account to the given Bech32 address.
Promotes the specified message.
Reattaches the specified message.
Retries (promotes or reattaches) the specified message.
By default the database path is ./wallet-cli-database
but you can change this with the WALLET_DATABASE_PATH
environment variable:
$ export WALLET_DATABASE_PATH=/path/to/database # or add it to your .bashrc, .zshrc
$ ./wallet [COMMAND] [OPTIONS]
To run the CLI from source, install Rust (usually through Rustup) and run the following commands:
$ git clone https://github.com/iotaledger/cli-wallet
$ cargo run -- [COMMAND] [OPTIONS]