promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Codex CLI

codex apply

Applies a diff created in the cloud locally.

codex apply takes a diff produced e.g. by a cloud task (cloud/cloud exec/cloud list) and applies it locally in the working directory.

โœ… WHEN TO USE IT?

Apply the result of a cloud task locally

codex apply <task-id> โ€” apply the diff generated in the cloud locally

Check a cloud result before applying it locally

codex cloud list, then codex apply for the desired task

โ›” WHEN NOT TO?

There's no cloud diff at all, only local changes

codex apply is meant for applying cloud diffs locally, not for purely local changes.

Better: Make changes directly locally with the normal Codex session

SOURCES