Add a `codex upgrade` command for easier updates, or implement automatic version updates

Resolved 💬 7 comments Opened Sep 24, 2025 by jasonwei1002 Closed Nov 23, 2025
💡 Likely answer: A maintainer (dedrisian-oai, contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

The current update command is too complex and not intuitive enough. It would be great if it could support codex upgrade to update versions. It would be even better if there were automatic updates. Thank you very much for your excellent work.

Are you interested in implementing this feature?

_No response_

Additional information

_No response_

View original on GitHub ↗

7 Comments

arrrggghhh · 9 months ago

Sometimes serious bugs occur, so if automatic updates are added, it would be better to offer them as an option.

In particular, with issues like the MCP-related caching problem and the usage-limit issue being discussed in version 0.40, forcing automatic updates would be inconvenient.

dlukt · 9 months ago

@arrrggghhh regarding the usage limit, what do you propose? In which version was it introduced to your knowledge, or is it global, not depending on codex-cli version?

looper200 · 9 months ago

Easy, Instead of using codex upgrade , just run npm install -g @openai/codex This is because if they add codex upgrade , it will simply run npm install -g @openai/codex or brew install codex . Also, if they want to add auto-update, it should be optional.

ljmerza · 9 months ago

codex upgrade is far easier to remember

dedrisian-oai contributor · 9 months ago

Yes, this would be great.

etraut-openai contributor · 7 months ago

Codex CLI now checks for updates when you run it.

alanhe421 · 7 months ago
codex upgrade is far easier to remember

It's really annoying that it can't update automatically, and it always reminds me of a new version.