noninteractive.md +6 −3
141 141
142`CODEX_API_KEY` is only supported in `codex exec`.142`CODEX_API_KEY` is only supported in `codex exec`.
143 143
144144Use ChatGPT-managed auth in CI/CD (advanced)<ToggleSection title="Use ChatGPT-managed auth in CI/CD (advanced)">
145
146Read this if you need to run CI/CD jobs with a Codex user account instead of an145Read this if you need to run CI/CD jobs with a Codex user account instead of an
147API key, such as enterprise teams using ChatGPT-managed Codex access on trusted146API key, such as enterprise teams using ChatGPT-managed Codex access on trusted
148runners or users who need ChatGPT/Codex rate limits instead of API key usage.147runners or users who need ChatGPT/Codex rate limits instead of API key usage.
161 160
162See [Maintain Codex account auth in CI/CD (advanced)](https://developers.openai.com/codex/auth/ci-cd-auth).161See [Maintain Codex account auth in CI/CD (advanced)](https://developers.openai.com/codex/auth/ci-cd-auth).
163 162
163</ToggleSection>
164
164## Resume a non-interactive session165## Resume a non-interactive session
165 166
166If you need to continue a previous run (for example, a two-stage pipeline), use the `resume` subcommand:167If you need to continue a previous run (for example, a two-stage pipeline), use the `resume` subcommand:
267 | tee test-summary.md268 | tee test-summary.md
268```269```
269 270
270271More prompt-plus-stdin examples<ToggleSection title="More prompt-plus-stdin examples">
271 272
272### Summarize logs273### Summarize logs
273 274
301 | gh pr comment 789 --body-file -302 | gh pr comment 789 --body-file -
302```303```
303 304
305</ToggleSection>
306
304### Use `codex exec -` when stdin is the prompt307### Use `codex exec -` when stdin is the prompt
305 308
306If you omit the prompt argument, Codex reads the prompt from stdin. Use `codex exec -` when you want to force that behavior explicitly.309If you omit the prompt argument, Codex reads the prompt from stdin. Use `codex exec -` when you want to force that behavior explicitly.