Cursor는 터미널에서 파일과 폴더를 열 수 있는 명령줄 도구를 제공해. 개발 워크플로우에 Cursor를 통합하려면 cursorcode 명령을 모두 설치해.

CLI 명령 설치

Command Palette에서 CLI 명령을 설치해:
  1. Command Palette 열기 (Cmd/Ctrl + P)
  2. 설치 명령만 보이도록 “Install” 입력
  3. Install 'cursor' to shell 선택해서 실행
  4. 다시 실행해 Install 'code' to shell 선택

CLI 명령어 사용하기

설치가 끝나면, 아래 명령어 중 하나로 Cursor에서 파일이나 폴더를 열어줘:
# cursor 명령어 사용
cursor path/to/file.js
cursor path/to/folder/

# code 명령어 사용 (VS Code 호환)
code path/to/file.js
code path/to/folder/

명령 옵션

두 명령 모두 다음 옵션을 지원해:
  • 파일 열기: cursor file.js
  • 폴더 열기: cursor ./my-project
  • 여러 항목 열기: cursor file1.js file2.js folder1/
  • 새 창으로 열기: cursor -n 또는 cursor --new-window
  • 창이 닫힐 때까지 기다리기: cursor -w 또는 cursor --wait

FAQ