• Home
  • Raw
  • Download

Lines Matching full:init

1 .TH "NPM-INIT" "1" "February 2024" "" ""
3 \fBnpm-init\fR - Create a package.json file
8 npm init <package-spec> (same as `npx <package-spec>`)
9 npm init <@scope> (same as `npx <@scope>/create`)
16 \fBnpm init <initializer>\fR can be used to set up a new or existing npm package.
20 The init command is transformed to a corresponding \fBnpm exec\fR operation as follows:
23 \fBnpm init foo\fR -> \fBnpm exec create-foo\fR
25 \fBnpm init @usr/foo\fR -> \fBnpm exec @usr/create-foo\fR
27 \fBnpm init @usr\fR -> \fBnpm exec @usr/create\fR
29 \fBnpm init @usr@2.0.0\fR -> \fBnpm exec @usr/create@2.0.0\fR
31 \fBnpm init @usr/foo@2.0.0\fR -> \fBnpm exec @usr/create-foo@2.0.0\fR
35 If the initializer is omitted (by just calling \fBnpm init\fR), init will fall back to legacy init
37 …ate-<initializer>\fR package globally installed, that will be what \fBnpm init\fR uses. If you wan…
40 \fBnpm init foo@latest\fR # fetches and runs the latest \fBcreate-foo\fR from the registry
42 \fBnpm init foo@1.2.3\fR # runs \fBcreate-foo@1.2.3\fR specifically
47 Any additional options will be passed directly to the command, so \fBnpm init
53 \fBnpm init foo -y --registry=<url> -- --hello -a\fR
64 $ npm init react-app ./my-react-app
73 $ npm init esm --yes
77 Generate a plain old package.json using legacy init:
82 $ git init
83 $ npm init
91 $ npm init -y
96 …our project by using the \fBworkspace\fR config option. When using \fBnpm init -w <dir>\fR the cli…
107 You may generate a new workspace using the legacy init:
111 $ npm init -w packages/a
127 The workspaces init also supports the \fBnpm init <initializer> -w <dir>\fR syntax, following the s…
131 npm init -w packages/my-react-app react-app .
151 .SS "\fBinit-author-name\fR"
160 The value \fBnpm init\fR should use by default for the package author's name.
161 .SS "\fBinit-author-url\fR"
170 The value \fBnpm init\fR should use by default for the package author's homepage.
171 .SS "\fBinit-license\fR"
180 The value \fBnpm init\fR should use by default for the package license.
181 .SS "\fBinit-module\fR"
184 Default: "~/.npm-init.js"
190init\fR command. See the documentation for the \fBinit-package-json\fR \fI\(lahttps://github.com/n…
191 .SS "\fBinit-version\fR"
200 The value that \fBnpm init\fR should use by default for the package version number, if not already …
239 Implicitly set \fB--yes\fR during \fBnpm init\fR.
273 This will also cause \fBnpm init\fR to create a scoped package.
279 npm init --scope=@foo --yes
304 When set for the \fBnpm init\fR command, this may be set to the folder of a workspace which does no…
355 \fBinit-package-json module\fR \fI\(lahttp://npm.im/init-package-json\(ra\fR