Skip to content

Start a Local Network

The SOMA CLI provides the soma start command to create and start a local instance of the SOMA network, including a faucet and model scoring services.

soma start localnet --force-regenesis

Calls the SOMA CLI binary with the localnet subcommand and one flag:

  • --force-regenesis to generate a new genesis and not persist the local network state.

The localnet bundles a faucet and scoring services by default.

If you stop and start the network without the --force-regenesis flag, all history is preserved and accessible.

By default, soma start uses an existing genesis and network configuration if the ~/.soma/soma_config folder exists and includes a genesis.blob file. If the folder does not exist, it creates the folder and generates a new genesis configuration. If you pass --network.config , the command checks for the network configuration file and tries to load the genesis blob as per the network configuration file.

To generate a custom genesis, use the soma genesis command and pass the desired custom values. For more information about possible flags and options, run soma genesis --help .