[BUG] Command line theme configuration no longer works since upgrade to 2.0
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
claude config commands are no longer supported in the latest release, which breaks the ability to programmatically set the theme from the command line ala claude config set --global theme <theme>.
Context: My invocation of claude code is wrapped in a function that detects whether or not my system theme is dark/light (dynamic based on the time of day) and sets the theme before invoking claude code.
What Should Happen?
Need a way to programmatically set the theme to dark or light. One possible solution is to expose theme as an additional setting configured from a json file, but the current code does not appear to do this.
Error Messages/Logs
Run `claude config set --global theme light`
Steps to Reproduce
Run claude config set --global theme <theme> and observe:
error: unknown option '--global'
claude config set theme light interprets config as a prompt
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
v2.0.0
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
No response
Found 1 possible duplicate issue:
- https://github.com/anthropics/claude-code/issues/6962
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
Note that the bug flagged by claude code as duplicate is related to the proposed 'possible' solution to my specific problem (set theme from settings.json), but not the root cause of the bug (config is broken).
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This is still an issue. It would be super nice to fix! I have to change the Claude Code theme a couple times every day now.