create nuxt
init 명령어는 새로운 Nuxt 프로젝트를 초기화합니다.
Terminal
npm create nuxt@latest [DIR] [--cwd=<directory>] [-t, --template] [-f, --force] [--offline] [--preferOffline] [--no-install] [--gitInit] [--shell] [--packageManager]
create-nuxt
명령어는 unjs/giget를 사용하여 새로운 Nuxt 프로젝트를 초기화합니다.
Arguments
Argument | Description |
---|---|
DIR="" | 프로젝트 디렉토리 |
Options
Option | Default | Description |
---|---|---|
--cwd=<directory> | . | 작업 디렉토리 지정 |
-t, --template | 템플릿 이름 | |
-f, --force | 기존 디렉토리 덮어쓰기 | |
--offline | 오프라인 모드 강제 | |
--preferOffline | 오프라인 모드 선호 | |
--no-install | 의존성 설치 건너뛰기 | |
--gitInit | git 저장소 초기화 | |
--shell | 프로젝트 디렉토리에서 설치 후 셸 시작 | |
--packageManager | 패키지 관리자 선택 (npm, pnpm, yarn, bun) |
Environment variables
NUXI_INIT_REGISTRY
: 사용자 정의 템플릿 레지스트리를 설정합니다. (자세히 알아보기).- 기본 레지스트리는 nuxt/starter/templates에서 로드됩니다.
※이 페이지는 Nuxt.js 공식 문서의 비공식 번역 페이지입니다.
공식 문서의 해당 페이지는 여기 있습니다:
https://nuxt.com/docs/3.x/api/commands/init