It is possible to override secator's default configuration using a user configuration file located at ~/.secator/config.yml .
The default user configuration is empty.
Get config
To get secator's user config, run:
secator config get
Edit config
Editing whole config
To modify secator's user config, run:
secator config edit
This will open the YAML config in your default editor (using the$EDITOR env variable).
Upon saving your changes, the config will be validated by pydantic and saved to disk if it's valid.
If validation errors occur (for instance a wrong key, or wrong value type), you will get an error message such as:
❌ 1 validation error for SecatorConfig
offline_test
Extra inputs are not permitted
For further information visit https://errors.pydantic.dev/2.7/v/extra_forbidden
Hint: Run "secator config edit --resume" to edit your patch and fix issues.
The invalid patch will not be saved in the user config. This ensures the actual user config is always valid. Run secator config edit --resume to resume the edit to fix the issues, or skip the --resume flag to start over.
Editing specific config keys
To edit specific keys, use:
secator config set <path.to.config.key> <VALUE>
For instance, to set the debug component to celery:
secator config set debug.component celery
Env overrides
Values in the secator config can be overriden using environment variables. Environment variables are prefixed with SECATOR_and use dotted path notation.