pnpm create

create-* 또는 @foo/create-* 스타터 키트로 프로젝트를 생성합니다.

pnpm create <name> [<args>...]

The name is mapped to a starter kit package:

Name Package
foo create-foo
create-foo create-foo
@scope @scope/create
@scope/foo @scope/create-foo

pnpm runs the starter kit with pnx and passes the remaining arguments to it.

예시#

pnpm create vite my-app

옵션#

--allow-build#

설치 중 postinstall 스크립트 실행이 허용된 패키지 이름 목록입니다.

--shell-mode, -c#

Run the command inside of a shell. Uses /bin/sh on UNIX and cmd.exe on Windows.

--cpu=<name>#

설치할 네이티브 모듈의 CPU 아키텍처를 재정의합니다. 허용되는 값은 process.arch에서 파생된 package.json의 cpu 필드와 동일합니다.

--os=<name>#

설치할 네이티브 모듈의 OS를 재정의합니다. 허용되는 값은 package.json의 os 필드와 동일하며, 이는 process.platform에서 파생됩니다.

--libc=<name>#

설치할 네이티브 모듈의 libc를 재정의합니다. 허용되는 값은 package.json의 libc 필드와 동일합니다.

보안 및 신뢰 정책#

pnpm create honors the project-level security and trust policy settings when resolving and fetching the starter kit. These include minimumReleaseAge, minimumReleaseAgeExclude, minimumReleaseAgeStrict, trustPolicy, trustPolicyExclude, and trustPolicyIgnoreAfter.