Configuration
The MachineMetrics CLI provides commands to manage different configuration sets for your projects.
Configure Command
mmdev configure [options] <variant>
Switches between different sets of configuration files and secrets for your project.
Arguments
variant
- Name of the variant to use
Options
-h, --help
- Display help for command
Usage
To create a new variant, simply run:
mmdev configure <variant>
This will copy the current configuration files and secrets to a new .variant
directory.
To switch between variants, run the same command with the desired variant name:
mmdev configure staging
mmdev configure production
mmdev configure dev
Important Notes
Be sure to include the .variant
directory in your .gitignore
file to prevent committing secrets to your repository.
Recommended .gitignore
entries:
**/secrets/*
!**/secrets/*.example
**/.variant/*
**/public/default.json
*/app/config/*
!*/app/config/*.example