All Tags

#cli

11 articles

Cursor CLI Headless Mode: --print, --force, and Scripts That Edit Files

4 min read

Use -p/--print for non-interactive runs; combine with --force so the Agent writes to disk. Ideal for scripts, batch jobs, and automation.

#cursor#cli#headless#automation#scripts

Cursor CLI Output Formats and CI Integration

4 min read

When to use text, json, and stream-json; parsing results in CI, live progress, and failure handling.

#cursor#cli#ci#output-format#automation

Cursor CLI Session Management and Cloud Execution

3 min read

Resume the last conversation with --resume, list history with cursor agent ls, and run long tasks in the cloud with -c so they keep running after you close the terminal.

#cursor#cli#sessions#resume#cloud

Cursor CLI Tutorial — Overview

2 min read

Cursor CLI brings your AI assistant to the terminal: write, edit, and ask questions without opening the IDE. Perfect for servers, scripts, and keyboard-driven workflows.

#cursor#cli#terminal

Installing Cursor CLI

1 min read

Install Cursor CLI in one terminal command using the official script. Supports macOS, Linux, WSL, and Windows.

#cursor#cli#install

Cursor CLI Basic Usage

2 min read

The most common approach: use cursor agent to run commands or enter conversation mode; cursor ask for read-only questions; use --path to specify a working directory.

#cursor#cli#agent

Cursor CLI Three Modes: Agent / Plan / Ask

3 min read

Agent modifies files, Plan drafts a plan before acting, Ask is read-only. One sentence to tell them apart — and learn to switch with slash commands mid-conversation.

#cursor#cli#agent#plan#ask

Cursor CLI Non-Interactive Mode (Scripts & CI)

2 min read

Use --no-interactive to let the AI run to completion without waiting for input. Perfect for scripts and CI. Optionally pick --model or use -c to run in the cloud.

#cursor#cli#automation#ci

Cursor CLI Tips & FAQ

3 min read

Resume conversations with --resume, confirm before running commands, use CLI alongside the IDE, plus answers to FAQs about command not found, pricing, and server usage.

#cursor#cli#tips#faq

Cursor CLI with Git Worktree

3 min read

Worktree gives the same repo multiple directories; CLI acts on whichever directory it runs in. Together they enable parallel work across branches with multiple terminals.

#cursor#cli#git#worktree

Infinite Debug Loop: Let Cursor CLI Fix Until Tests Pass

4 min read

Write a shell script that has cursor agent automatically fix code, run tests, and if tests fail let the AI fix again — repeating until all tests pass.

#cursor#cli#debug#automation#testing

Other Tags