DISABLE_UPGRADE_COMMAND
Updated by Alex Sorokoletov
DISABLE_UPGRADE_COMMAND is a Claude Code environment variable: /upgrade command. Its release history is not tracked here. It is listed in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| Category | Feature toggles |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export DISABLE_UPGRADE_COMMAND=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"DISABLE_UPGRADE_COMMAND": "<value>"
}
}Related variables
CLAUDE_CODE_DISABLE_COMMAND_INJECTION_CHECK: Previously allowed disabling command injection detection.DISABLE_BUG_COMMAND: /bug command.DISABLE_DOCTOR_COMMAND: /doctor diagnostic command.DISABLE_EXTRA_USAGE_COMMAND: Extra usage display.DISABLE_FEEDBACK_COMMAND: /feedback command.DISABLE_INSTALL_GITHUB_APP_COMMAND: GitHub app install command.CLAUDE_CODE_DISABLE_ADMIN_ENV_UNIONCLAUDE_CODE_DISABLE_ARTIFACT
Frequently asked questions
What does DISABLE_UPGRADE_COMMAND do?
/upgrade command
Which Claude Code version has DISABLE_UPGRADE_COMMAND?
Its release history is not tracked here.
How do I set DISABLE_UPGRADE_COMMAND?
Export it before starting Claude Code (export DISABLE_UPGRADE_COMMAND=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.