Cursor CLI: running coding agents from the terminal, in scripts and GitHub Actions
Cursor CLI is a command-line tool from Cursor for running coding agents from the terminal. The page says the same commands work in any environment, and that the tool gives access to frontier models from Anthropic, OpenAI, Gemini, Cursor and others, and fits into the user's preferred IDE. It can be used in scripts and automations, for example to update docs automatically, trigger security reviews or build custom coding agents. The page lists a Headless CLI[1] mode for scripts, Shell Mode, which runs shell commands from agents with safety checks and output display, and GitHub Actions integration for CI/CD[2] workflows.
Sources
-
cursor.com
Cursor CLI — Run Agents in Terminal, GitHub Actions and Automations & Scripts







