Cursor CLI는 터미널에서 바로 AI 에이전트와 대화하며 코드를 작성, 리뷰, 수정할 수 있게 해줘. 대화형 터미널 인터페이스를 쓰든, 스크립트나 CI 파이프라인을 위한 출력 자동화를 원하든, CLI는 네가 일하는 그 자리에서 강력한 코딩 보조를 제공해.
# Install
curl https://cursor.com/install -fsS | bash

# Run interactive session
cursor-agent
Cursor CLI는 지금 베타야. 피드백 기다릴게!

Interactive mode

에이전트와 대화형 세션을 시작해 목표를 설명하고, 제안된 변경을 검토하고, 명령을 승인해:
# Start interactive session
cursor-agent

# Start with initial prompt
cursor-agent "refactor the auth module to use JWT tokens"

Non-interactive mode

스크립트, CI 파이프라인, 자동화 같은 비대화형 시나리오에는 프린트 모드를 사용해:
# Run with specific prompt and model
cursor-agent -p "find and fix performance issues" --model "gpt-5"

# Use with git changes included for review
cursor-agent -p "review these changes for security issues" --output-format text

Sessions

이전 대화를 이어 받아 여러 상호작용에 걸친 컨텍스트를 유지해:
# List all previous chats
cursor-agent ls

# Resume latest conversation  
cursor-agent resume

# Resume specific conversation
cursor-agent --resume="chat-id-here"