The config create command creates a new configuration based on an existing one.
dashmate config create CONFIG [FROM]| Argument | Description | Required | Default |
|---|---|---|---|
CONFIG |
Name for the new configuration | Yes | |
FROM |
Base the new config on this existing config | No | base |
This command creates a new configuration with the specified name, based on an existing configuration.
If the FROM argument is not provided, the new configuration will be based on the base configuration, which contains minimal default settings.
Creating a new configuration is useful when you want to:
- Create variants of existing configurations (e.g., different ports or settings)
- Create specialized configurations for specific use cases
- Back up a configuration before making changes
The command will fail if a configuration with the same name already exists.
# Create a new configuration named 'my-mainnet' based on the default 'base' config
dashmate config create my-mainnet
# Create a new configuration based on the 'testnet' config
dashmate config create my-testnet testnet
# Create a customized local config based on the existing local config
dashmate config create local-custom local- config list - List available configurations
- config set - Set configuration options
- config remove - Remove a configuration