Back to Pnpm Io

pnpm init

versioned_docs/version-10.x/cli/init.md

latest381 B
Original Source

Create a package.json file.

Options

--bare

Added in: v10.25.0

Creates a package.json with only the required fields.

--init-type <type>

  • Default: commonjs
  • Type: commonjs, module

Set the module system for the package.

--init-package-manager

Pin the project to the current pnpm version by adding a "packageManager" field to package.json.