배포 및 서버리스 개발을 위한 포괄적인 Vercel CLI 명령어와 워크플로우.
설치 및 설정
| 명령어 | 설명 |
|---|
npm install -g vercel | Vercel CLI를 전역으로 설치 |
yarn global add vercel | Yarn으로 설치 |
vercel login | Vercel 계정에 로그인 |
vercel logout | Vercel에서 로그아웃 |
vercel whoami | 현재 사용자 표시 |
vercel --version | CLI 버전 표시 |
vercel --help | 도움말 정보 표시 |
프로젝트 관리
| 명령어 | 설명 |
|---|
vercel | 현재 디렉토리 배포 |
vercel --prod | 프로덕션에 배포 |
vercel --prebuilt | 미리 빌드된 정적 파일 배포 |
vercel init | 새 프로젝트 초기화 |
vercel link | Vercel 프로젝트에 로컬 디렉토리 연결하기 |
vercel unlink | 프로젝트 연결 해제 |
vercel ls | 모든 배포 나열 |
vercel rm <deployment> | 배포 제거 |
배포 명령어
| 명령어 | 설명 |
|---|
vercel deploy | 프로젝트 배포 |
vercel --name <name> | 사용자 지정 이름으로 배포 |
vercel --target production | 프로덕션에 배포 |
vercel --target preview | 미리보기로 배포 |
vercel --build-env KEY=value | 빌드 환경 변수 설정 |
vercel --env KEY=value | 런타임 환경 변수 설정 |
vercel --regions <regions> | 특정 지역에 배포 |
vercel --force | 새 배포 강제 |
환경 변수
| 명령어 | 설명 |
|---|
vercel env ls | 환경 변수 목록 |
vercel env add <name> | 환경 변수 추가 |
vercel env rm <name> | 환경 변수 제거 |
vercel env pull | 환경 변수 다운로드 |
vercel env pull .env.local | 특정 파일로 가져오기 |
도메인 관리
| 명령어 | 설명 |
|---|
vercel domains ls | 모든 도메인 나열하기 |
vercel domains add <domain> | 사용자 지정 도메인 추가 |
vercel domains rm <domain> | 도메인 제거 |
vercel domains inspect <domain> | 도메인 구성 검사 |
vercel alias <deployment> <domain> | 도메인 별칭 설정 |
vercel alias rm <alias> | 별칭 제거 |
프로젝트 구성
| 명령어 | 설명 |
|---|
vercel projects ls | 모든 프로젝트 나열하기 |
vercel projects add <name> | 새 프로젝트 생성 |
vercel projects rm <name> | 프로젝트 제거 |
vercel switch <project> | 프로젝트로 전환 |
vercel inspect <deployment> | 배포 세부 정보 검사 |
로그 및 모니터링
| 명령어 | 설명 |
|---|
vercel logs <deployment> | 배포 로그 보기 |
vercel logs --follow | 실시간으로 로그 추적하기 |
vercel logs --since 1h | 지난 1시간 동안의 로그 표시 |
vercel logs --until 2h | 2시간 전까지의 로그 표시 |
vercel logs --output raw | 원시 로그 출력 표시 |
시크릿 관리
| 명령어 | 설명 |
|---|
vercel secrets ls | 모든 비밀 나열하기 |
vercel secrets add <name> <value> | 비밀 추가 |
vercel secrets rm <name> | 비밀 제거 |
vercel secrets rename <old> <new> | 비밀 이름 변경 |
팀 및 조직
| 명령어 | 설명 |
|---|
vercel teams ls | 팀 목록 |
vercel teams switch <team> | 팀으로 전환 |
vercel teams add <email> | 팀원 초대하기 |
vercel teams rm <email> | 팀 구성원 제거 |
개발 서버
| 명령어 | 설명 |
|---|
vercel dev | 로컬 개발 서버 시작 |
vercel dev --listen 3000 | 특정 포트에서 시작 |
vercel dev --debug | 디버그 모드로 시작하기 |
vercel dev --confirm | 확인 프롬프트 건너뛰기 |
DNS 관리
| 명령어 | 설명 |
|---|
vercel dns ls <domain> | DNS 레코드 목록 |
vercel dns add <domain> <type> <value> | DNS 레코드 추가 |
vercel dns rm <record-id> | DNS 레코드 제거 |
vercel dns import <domain> <file> | DNS 레코드 가져오기 |
인증서
| 명령어 | 설명 |
|---|
vercel certs ls | SSL 인증서 목록 |
vercel certs add <domain> | SSL 인증서 추가 |
vercel certs rm <cert-id> | 인증서 제거 |
vercel certs issue <domain> | 새 인증서 발급 |
빌드 구성
| 명령어 | 설명 |
|---|
vercel build | 로컬에서 프로젝트 빌드하기 |
vercel --build-env NODE_ENV=production | 빌드 환경 설정 |
vercel --no-build | 빌드 프로세스 건너뛰기 |
vercel --debug | 디버그 출력 활성화 |
Git 통합
| 명령어 | 설명 |
|---|
vercel git connect | Git 저장소 연결 |
vercel git disconnect | Git 저장소 연결 해제 |
vercel git ls | 연결된 저장소 목록 |
함수 및 API 라우트
| 명령어 | 설명 |
|---|
vercel functions ls | 서버리스 함수 목록 |
vercel functions inspect <function> | 함수 세부 정보 검사 |
vercel functions logs <function> | 함수 로그 보기 |
배포 별칭
| 명령어 | 설명 |
|---|
vercel alias ls | 모든 별칭 나열하기 |
vercel alias set <deployment> <alias> | 배포 별칭 설정 |
vercel alias rm <alias> | 별칭 제거 |
프로젝트 설정
| 명령어 | 설명 |
|---|
vercel --scope <team> | 팀 범위에서 명령 실행 |
vercel --token <token> | 특정 인증 토큰 사용 |
vercel --global-config <path> | 사용자 지정 구성 경로 사용 |
vercel --local-config <path> | 로컬 구성 파일 사용 |
고급 배포
| 명령어 | 설명 |
|---|
vercel --archive=tgz | 배포 아카이브 생성 |
vercel --public | 배포를 공개로 설정하기 |
vercel --regions all | 모든 지역에 배포 |
vercel --regions sfo1,iad1 | 특정 지역에 배포 |
문제 해결
Would you like me to continue with more specific translations for the remaining sections?
| 명령어 | 설명 |
|---|
vercel --debug | 디버그 모드 활성화 |
vercel --verbose | 자세한 출력 활성화 |
vercel doctor | 진단 검사 실행 |
vercel status | Vercel 서비스 상태 확인 |
| 파일 | 설명 |
|---|
vercel.json | 프로젝트 구성 |
.vercelignore | 배포 중 무시할 파일들 |
.env.local | 로컬 환경 변수 |
.env.production | 프로덕션 환경 변수 |
| 명령어 | 설명 |
|---|
vercel integrations ls | 통합 목록 |
vercel integrations add <integration> | 통합 추가 |
vercel integrations rm <integration> | 통합 제거 |
| 명령어 | 설명 |
| --------- | ------------- |
vercel --prod --regions sfo1 | 단일 지역에 배포 |
vercel --build-env NEXT_TELEMETRY_DISABLED=1 | 원격 분석 비활성화 |
vercel --no-clipboard | 클립보드 복사 비활성화 |