betterspec
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

OptionDescription
--listList 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 = true

Get a single value:

$ betterspec config mode
local

Set a value:

$ betterspec config mode global
Updated mode: local -> global

On this page