MCPcopy Create free account
hub / github.com/cursor/cookbook / printHelp

Function printHelp

sdk/coding-agent-cli/src/index.ts:259–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257}
258
259function printHelp() {
260 console.log(`Lightweight coding agent CLI
261
262Usage:
263 code-agent [options] "your task"
264 code-agent [options]
265
266Options:
267 -C, --cwd <path> Workspace directory for the local agent. Defaults to cwd.
268 -m, --model <id> Model id. Defaults to CURSOR_MODEL or composer-2.
269 --force Expire a stuck active local run before starting.
270 -h, --help Show this help.
271
272Interactive commands:
273 /local Run future prompts in the local workspace.
274 /cloud Run future prompts in Cursor cloud.
275 /model Open the model picker.
276 /reset Start a fresh agent in the current execution mode.
277
278Examples:
279 code-agent "Explain the auth flow"
280 code-agent --cwd ../my-app "Add a regression test for the parser"
281 code-agent
282 printf "Review the recent changes" | code-agent
283`)
284}
285
286main().catch((error) => {
287 const message = error instanceof Error ? error.message : String(error)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected