ITC completion
The itc completion command generates bash completion scripts for the Intelchain Command Line Interface (CLI). It allows you to automatically complete commands and flags when typing, improving efficiency when using the CLI in a bash environment. To enable bash completion, run the provided command and add it to your '~/.bashrc' file for persistent use across sessions.
Commmand Syntax
./itc completion [flags]
Displays help information for the 'completion' command.
-h
--help
mainnet
Specifies the network to connect to (e.g., mainnet, testnet). Default: --net string
Options Inherited from Parent Commands
--file string
-> Specifies a file path for input when the command requires it-e
,--ledger
→ Enables the use of a Ledger hardware wallet for transaction signing.--no-latest
→ Prevents appending "latest" to RPC parameters, useful for specific blockchain states.--no-pretty
→ Disables pretty-print formatting for JSON outputs, making them compact and machine-readable.-n
,--node string
→ Specifies the host node for blockchain communication. Default:http://localhost:9500
-r
,--rpc-prefix string
→ Sets the RPC prefix for commands interacting with the blockchain. Default:itc
-v
,--verbose
→ Outputs detailed debug information, equivalent to setting theITC_ALL_DEBUG=true
environment variable.
Usage Examples
Generate bash completion script
To generate the completion script and load it in the current session :
.<(itc completion)
Persist completion for future sessions
To enable bash completion for all future sessions, add the following line to your '~/.bashrc' file :
.<(itc completion)
Enable completion with custom node or flags
If you wish to specify additional flags (e.g., connecting to a remote node) :
.<(itc completion -n http://remote-node:9500)
See Also
itc
: Main command for interacting with the Intelchain blockchain.itc completion collect-rewards
: Command for collecting token rewards.itc completion create-validator
: Command for creating a new validator.itc completion delegate
: Command for delegating tokens to a validator.itc completion edit-validator
: Command for editing an existing validator.itc completion undelegate
: Command for removing a delegation responsibility.