Claude Code /config command persists settings
Anthropic's command-line tool, Claude Code, now supports the /config key=value syntax in non-interactive mode via the -p flag. When executed, it writes the configuration key and value directly to the settings file to persist across future runs, and exits immediately without running any other tasks.
Providing a persistent command-line configuration mechanism improves automation but deviates from typical ephemeral CLI flags, risking configuration drift for unwary developers.
* Streamlines programmatic setup, terminal automation, and configuration sharing.
* The immediate exit mechanism ensures settings are applied without running accidental prompt queries.
* Modifying configuration files persistently via a one-off flag can cause confusion for developers expecting single-run overrides.
DISCOVERED
1h ago
2026-06-20
PUBLISHED
2h ago
2026-06-20
RELEVANCE
AUTHOR
dani_avila7