# Commands

# Introduction

plugchaind Daemon Commands allow you to init, start, reset a node, or generate a genesis file, etc.

You can get familiar with these commands by creating a Local Testnet.

# Usage

plugchaind <command>

# Available Commands

Name Description
init Initialize private validator, p2p, genesis, and application configuration files
add-genesis-account Add genesis account to genesis.json
gentx Generate a genesis tx carrying a self delegation
collect-gentxs Collect genesis txs and output a genesis.json file
start Run the full node
unsafe-reset-all Resets the blockchain database, removes address book files, and resets priv_validator.json to the genesis state
tendermint Tendermint subcommands
testnet Initialize files for a Plug Chain Hub testnet
reset Reset app state to the specified height
export Export state to JSON
config Query and modify the client configuration of the specified data directory
version Show executable binary version

# Global Flags

Name,shorthand Default Description Required Type
-h, --help Help for plugchaind
--home /$HOME/.plugchain Directory for config and data String
--log_level *:info Log level (default "main:info,state:info,*:error") String
--trace Print out full stack trace on errors