What
The --settings option passes a settings file or JSON text when you start Claude Code. Its values override your settings files for that session. Where Claude Code shows where a setting came from, these values now have their own labels:
- "Startup settings (--settings option)" as the description
- "Startup settings" as the header
- "Startup" as the short inline label
Before, settings from --settings had no label.
Why
When a value is being overridden, you can now see that it came from the --settings option.
Names in the bundle--settings
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up --settings, on CLI reference.
| `--settings` | Path to a settings JSON file or an inline JSON string. Values you set here override the same keys in your `settings.json` files for this session, but [most lists merge](https://code.claude.com/docs/en/settings.md#lists-mer…cli-reference see the edit
Added since
A small documentation edit on Best practices for Claude Code touched a line naming --settings after this was published.
* [`--bare`](https://code.claude.com/docs/en/headless#start-faster-with-bare-mode) skips your hooks, skills, plugins, MCP servers, and `CLAUDE.md` files from the repo and your home directory. It also doesn't use your claude.ai login: auth …best-practices see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
A small documentation edit on Best practices for Claude Code touched a line naming --settings after this was published.
Anthropic's release notes agree
Fixed /hooks leaving out hooks given by --settings