var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=1&rec=1&url=https://docs.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

terrad init

Initialize private validator, p2p, genesis, and application configuration files. To learn how to run a full node, visit the Full node guide.

You can access Terrad's config files by running the following.

Terrad
Copy

_1
code ~/.terra/config/genesis.json

Synopsis

Initialize the validators' and node's configuration files.

Usage

Terrad
Copy

_1
terrad init [moniker] [flags]

Example

Terrad
Copy

_1
terrad init myNode

Options

Terrad
Copy

_5
--chain-id string genesis file chain-id, if left blank will be randomly created
_5
-h, --help help for init
_5
--home string node's home directory (default "/Users/.terra")
_5
-o, --overwrite overwrite the genesis.json file
_5
--recover provide seed phrase to recover existing key instead of creating

See also

  • terrad - The Terra Blockchain's CLI and node daemon.