pnpm create

Create a project from a create-* or @foo/create-* starter kit.

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

The name is mapped to a starter kit package:

NamePackage
foocreate-foo
create-foocreate-foo
@scope@scope/create
@scope/foo@scope/create-foo

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

Examples#

pnpm create vite my-app

Options#

--allow-build#

A list of package names that are allowed to run postinstall scripts during installation.

--shell-mode, -c#

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

--cpu=<name>#

Override CPU architecture of native modules to install. Acceptable values are same as cpu field of package.json, which comes from process.arch.

--os=<name>#

Override OS of native modules to install. Acceptable values are same as os field of package.json, which comes from process.platform.

--libc=<name>#

Override libc of native modules to install. Acceptable values are same as libc field of package.json.

Security and trust policies#

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.