regen testnet init-files

Initialize config directories & files for a multi-validator testnet running locally via separate processes (e.g. Docker Compose or similar)


init-files will setup "v" number of directories and populate each with necessary files (private validator, genesis, config, etc.) for running "v" validator nodes.

Booting up a network with these validator folders is intended to be used with Docker Compose, or a similar setup where each node has a manually configurable IP address.

Note, strict routability for addresses is turned off in the config file.

Example: regen testnet init-files --v 4 --output-dir ./.localnet --starting-ip-address

regen testnet init-files [flags]


      --algo string                  Key signing algorithm to generate keys for (default "secp256k1")
      --chain-id string              genesis file chain-id, if left blank will be randomly created
  -h, --help                         help for init-files
      --keyring-backend string       Select keyring's backend (os|file|test) (default "os")
      --minimum-gas-prices string    Minimum gas prices to accept for transactions; All fees in a tx must meet this minimum (e.g. 0.01uregen) (default "0.000006stake")
      --node-daemon-home string      Home directory of the node's daemon configuration (default "regen")
      --node-dir-prefix string       Prefix the directory name for each node with (node results in node0, node1, ...) (default "node")
  -o, --output-dir string            Directory to store initialization data for the testnet (default "./.localnet")
      --starting-ip-address string   Starting IP address ( results in persistent peers list ID0@, ID1@, ...) (default "")
      --v int                        Number of validators to initialize the testnet with (default 4)


  • regen testnet - subcommands for starting or configuring local testnets
Auto generated by spf13/cobra on 3-Apr-2024