Skip to main content

kwil-admin migrate genesis-state

kwil-admin migrate genesis-state

Download the genesis state corresponding to the ongoing migration.

Synopsis

Download the genesis state for the new network from a trusted node on the source network. The genesis state includes the genesis config file (genesis.json), genesis snapshot (snapshot.sql.gz), and the migration info such as the start and end heights. The genesis state is saved in the root directory specified by the --out-dir flag. If there is no approved migration or if the migration has not started yet, the command will return a message indicating that there is no genesis state to download.

kwil-admin migrate genesis-state [flags]

Examples

# Download the genesis state to the default output directory (~/.genesis-state)
kwil-admin migrate genesis-state

# Download the genesis state to a custom output directory
kwil-admin migrate genesis-state --out-dir /path/to/root/dir

Options

      --authrpc-cert string   kwild's TLS certificate, required for HTTPS server
-h, --help help for genesis-state
--pass string admin server password (alternative to mTLS with tlskey/tlscert). May be set in ~/.kwil-admin/rpc-admin-pass instead.
-r, --out-dir string The target directory for downloading the genesis state files. (default "~/.genesis-state")
-s, --rpcserver string admin RPC server address (either unix or tcp) (default "/tmp/kwild.socket")
--tlscert string kwil-admin's TLS certificate file for server to authenticate us (default "auth.cert")
--tlskey string kwil-admin's TLS key file to establish a mTLS (authenticated) connection (default "auth.key")

Options inherited from parent commands

      --output string   the format for command output - either 'text' or 'json' (default "text")
-S, --silence Silence logs

SEE ALSO

  • kwil-admin migrate - The migrate command provides functions for managing migration proposals.