# Commands
This section describes the commands available from injectived, the command line interface that connects a running injectived process.
# add-genesis-account
Adds a genesis account to genesis.json.
Syntax
Example
# collect-gentxs
Collects genesis transactions and outputs them to genesis.json.
Syntax
# debug
Helps debug the application. For a list of syntax and subcommands, see the debug subcommands. TODO!!!
# export
Exports the state to JSON.
Syntax
# gentx
Adds a genesis transaction to genesis.json.
Syntax
Example
# help
Shows help information.
Syntax
# init
Initializes the configuration files for a validator and a node.
Syntax
Example
# keys
Manages Keyring commands. For a list of syntax and subcommands, see the keys subcommands.
# migrate
Migrates the source genesis into the target version and prints to STDOUT.
Syntax
Example
# query
Manages queries. For a list of syntax and subcommands, see the query subcommands.
# rollback
A state rollback is performed to recover from an incorrect application state transition, when Tendermint has persisted an incorrect app hash and is thus unable to make progress. Rollback overwrites a state at height n with the state at height n - 1. The application also roll back to height n - 1. No blocks are removed, so upon restarting Tendermint the transactions in block n will be re-executed against the application.
Syntax
# rosetta
Creates a Rosetta server.
Syntax
# start
Runs the full node application with Tendermint in or out of process. By default, the application runs with Tendermint in process.
Syntax
# status
Displays the status of a remote node.
Syntax
# tendermint
Manages the Tendermint protocol.
# testnet
Creates a testnet with the specified number of directories and populates each directory with the necessary files.
Syntax
Example
# tx
Retrieves a transaction by its hash, account sequence, or signature. For a list of full syntax and subcommands, see the tx subcommands.
Syntax to query by hash
Syntax to query by account sequence
Syntax to query by signature
# validate-genesis
Validates the genesis file at the default location or at the location specified.
Syntax
Example
# version
Returns the version of Injective you’re running.
Syntax