Update Codex and check its version

getting started

// what it does

codex update checks for and applies a newer release; codex --version (short -V) prints the running build. An npm install upgrades with npm install -g @openai/codex@latest instead. If something is misconfigured, codex doctor generates a read-only diagnostic report without starting a session.

// shell

$ codex update
$ codex --version
$ codex doctor

// resources