Skip to lesson
Exit
Run Cursor CLI in scripts1 / 3

2 min lesson

Set the boundary for a headless run

Choose print mode, output format and write permissions for one unattended job.

Step 1 of 3

A headless run cannot ask you to approve the next step, so its boundary must exist before it starts.

Prepare the job before print mode

Interactive diagram. Step through it with the Next and Previous controls below, or Tab to a region to read its detail.

diagram: flow

Scope the work, permit the minimum actions and define success before Agent runs.