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.
Local Start Command
Section titled “Local Start Command”soma start localnet --force-regenesisCalls the SOMA CLI binary with the localnet subcommand and one flag:
--force-regenesisto generate a new genesis and not persist the local network state.
The localnet bundles a faucet and scoring services by default.
Persisting local network state
Section titled “Persisting local network state”If you stop and start the network without the --force-regenesis flag, all history is preserved and accessible.
The behavior of soma start depends on your setup:
- If
~/.soma/soma_configexists and contains agenesis.blob, it uses the existing genesis and network configuration - If the folder does not exist, it creates one and generates a new genesis configuration
- If you pass
--network.config, it checks for the specified network configuration file and loads the genesis blob accordingly
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 .