[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_
7 Comments
Found 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 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 (
configis 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.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.