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

# Run interactive session
cursor-agent
Cursor CLI는 지금 베타야. 피드백 환영해!

대화형 모드

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

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

비대화형 모드

스크립트, CI 파이프라인, 자동화 같은 비대화형 시나리오에는 print 모드를 써봐:
# 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

세션

이전 대화를 이어서 여러 번의 상호작용 동안 컨텍스트를 유지해:
# List all previous chats
cursor-agent ls

# Resume latest conversation  
cursor-agent resume

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