CLI Reference
betterspec config
Get or set configuration values
betterspec config
Read and write betterspec configuration values. Configuration is stored in betterspec/config.yaml.
Usage
betterspec config [key] [value]Options
| Option | Description |
|---|---|
--list | List all configuration values |
-C, --cwd <path> | Run as if betterspec was started in <path> |
Behavior
- No arguments +
--list: prints all configuration key-value pairs. - Key only: prints the current value for that key.
- Key + value: sets the key to the given value.
Examples
List all configuration:
$ betterspec config --list
mode = local
spec.repo = git@github.com:acme/specs.git
spec.branch = main
archive.datePrefix = trueGet a single value:
$ betterspec config mode
localSet a value:
$ betterspec config mode global
Updated mode: local -> global