Title: Cursor CLI Reference: Commands, Flags and Settings (2026)
Open Graph Title: Cursor CLI Reference: Commands, Flags and Settings (2026)
X Title: Cursor CLI Reference: Commands, Flags and Settings (2026)
Description: All 327 Cursor CLI commands and options: 73 CLI flags, 54 keyboard shortcuts, 53 slash commands and more, each with examples and a link to the official docs.
Open Graph Description: All 327 Cursor CLI commands and options: 73 CLI flags, 54 keyboard shortcuts, 53 slash commands and more, each with examples and a link to the official docs.
X Description: All 327 Cursor CLI commands and options: 73 CLI flags, 54 keyboard shortcuts, 53 slash commands and more, each with examples and a link to the official docs.
Opengraph URL: https://www.developersdigest.tech/reference/cursor-cli
Domain: developersdigest.tech
{"@context":"https://schema.org","@type":"Organization","name":"Developers Digest","url":"https://www.developersdigest.tech","logo":"https://avatars.githubusercontent.com/u/124798203?v=4","description":"AI-focused developer education platform covering coding tools, frameworks, and infrastructure through video tutorials, blog posts, and free developer tools.","sameAs":["https://youtube.com/@developersdigest","https://github.com/developersdigest","https://x.com/devdigest"],"founder":{"@type":"Person","name":"Developers Digest"}}
{"@context":"https://schema.org","@type":"WebSite","name":"Developers Digest","url":"https://www.developersdigest.tech","potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.developersdigest.tech/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}
{"@context":"https://schema.org","@type":"Dataset","name":"Cursor CLI reference","description":"Cursor CLI documents 53 slash commands, 73 CLI flags, 42 subcommands, 54 keyboard shortcuts, 46 settings keys, 36 environment variables and 23 config files. This page lists all 327 with what each one does, the values it accepts and a working example where the docs give one.","url":"https://www.developersdigest.tech/reference/cursor-cli","dateModified":"2026-10-17","creator":{"@type":"Organization","name":"Developers Digest","url":"https://www.developersdigest.tech"},"isBasedOn":["https://cursor.com/docs/cli/reference/parameters","https://cursor.com/docs/cli/reference/output-format","https://cursor.com/docs/cli/acp","https://cursor.com/docs/cli/changelog","https://cursor.com/docs/cloud-agent/self-hosted/pool","https://cursor.com/docs/cli/reference/authentication","https://cursor.com/docs/cli/mcp","https://cursor.com/docs/cli/installation","https://cursor.com/docs/cli/reference/slash-commands","https://cursor.com/docs/cli/reference/terminal-setup","https://cursor.com/docs/cli/reference/configuration","https://cursor.com/docs/cli/reference/permissions","https://cursor.com/docs/agent/security/run-modes","https://cursor.com/docs/reference/sandbox","https://cursor.com/docs/configuration/worktrees","https://cursor.com/docs/cli/shell-mode","https://cursor.com/docs/cli/using","https://cursor.com/docs/cli/github-actions","https://cursor.com/docs/cli/overview"],"variableMeasured":["Slash commands","CLI flags","Subcommands","Keyboard shortcuts","Settings","Environment variables","Config files"],"measurementTechnique":"Copied verbatim from the tool's official documentation on the verified date"}
{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"How many commands and options does Cursor CLI have?","acceptedAnswer":{"@type":"Answer","text":"The official Cursor CLI docs list 327 items: 53 slash commands, 73 CLI flags, 42 subcommands, 54 keyboard shortcuts, 46 settings keys, 36 environment variables and 23 config files. The largest group is CLI flags, with 73."}},{"@type":"Question","name":"Where does Cursor CLI keep its configuration?","acceptedAnswer":{"@type":"Answer","text":"Cursor CLI documents 23 config files and locations, including ~/.cursor/cli-config.json, $env:USERPROFILE\\.cursor\\cli-config.json and \u003cproject\u003e/.cursor/cli.json. The docs describe ~/.cursor/cli-config.json as: Global CLI config file on macOS/Linux. Pure JSON (no comments); the CLI self-repairs missing fields and backs up corrupted files as .bad."}},{"@type":"Question","name":"Which environment variables does Cursor CLI read?","acceptedAnswer":{"@type":"Answer","text":"The docs list 36 environment variables, such as CURSOR_API_KEY, CURSOR_AUTH_TOKEN, CURSOR_CONFIG_DIR and XDG_CONFIG_HOME. Each one is in the environment variables table above with what it controls."}}]}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.developersdigest.tech"},{"@type":"ListItem","position":2,"name":"CLI reference","item":"https://www.developersdigest.tech/reference"},{"@type":"ListItem","position":3,"name":"Cursor CLI"}]}
| theme-color | #ffffff |
| google-adsense-account | ca-pub-2667478487260700 |
| og:site_name | Developers Digest |
| og:image | https://www.developersdigest.tech/og/tools/reference-cursor-cli?title=Cursor+CLI+reference&subtitle=327+commands,+flags+and+settings+-+verified+October+17,+2026 |
| og:image:width | 1200 |
| og:image:height | 630 |
| og:image:alt | Cursor CLI reference |
| og:type | website |
| twitter:card | summary_large_image |
| twitter:creator | @devdigest |
| twitter:image | https://www.developersdigest.tech/og/tools/reference-cursor-cli?title=Cursor+CLI+reference&subtitle=327+commands,+flags+and+settings+-+verified+October+17,+2026 |
| twitter:image:alt | Cursor CLI reference |
| twitter:image:width | 1200 |
| twitter:image:height | 630 |
Links:
Viewport: width=device-width, initial-scale=1