Lines Matching full:init
2 title: npm-init
10 npm init <package-spec> (same as `npx <package-spec>`)
11 npm init <@scope> (same as `npx <@scope>/create`)
18 `npm init <initializer>` can be used to set up a new or existing npm
26 The init command is transformed to a corresponding `npm exec` operation as
29 * `npm init foo` -> `npm exec create-foo`
30 * `npm init @usr/foo` -> `npm exec @usr/create-foo`
31 * `npm init @usr` -> `npm exec @usr/create`
32 * `npm init @usr@2.0.0` -> `npm exec @usr/create@2.0.0`
33 * `npm init @usr/foo@2.0.0` -> `npm exec @usr/create-foo@2.0.0`
35 If the initializer is omitted (by just calling `npm init`), init will fall
36 back to legacy init behavior. It will ask you a bunch of questions, and
44 globally installed, that will be what `npm init` uses. If you want npm
48 * `npm init foo@latest` # fetches and runs the latest `create-foo` from
50 * `npm init foo@1.2.3` # runs `create-foo@1.2.3` specifically
54 Any additional options will be passed directly to the command, so `npm init
61 - `npm init foo -y --registry=<url> -- --hello -a`
70 $ npm init react-app ./my-react-app
78 $ npm init esm --yes
81 Generate a plain old package.json using legacy init:
85 $ git init
86 $ npm init
92 $ npm init -y
98 `workspace` config option. When using `npm init -w <dir>` the cli will
110 You may generate a new workspace using the legacy init:
113 $ npm init -w packages/a
127 The workspaces init also supports the `npm init <initializer> -w <dir>`
136 npm init -w packages/my-react-app react-app .
159 #### `init-author-name`
164 The value `npm init` should use by default for the package author's name.
168 #### `init-author-url`
173 The value `npm init` should use by default for the package author's
178 #### `init-license`
183 The value `npm init` should use by default for the package license.
187 #### `init-module`
189 * Default: "~/.npm-init.js"
192 A module that will be loaded by the `npm init` command. See the
194 [init-package-json](https://github.com/npm/init-package-json) module for
195 more information, or [npm init](/commands/npm-init).
199 #### `init-version`
204 The value that `npm init` should use by default for the package version
238 * Implicitly set `--yes` during `npm init`.
268 This will also cause `npm init` to create a scoped package.
273 npm init --scope=@foo --yes
294 When set for the `npm init` command, this may be set to the folder of a
344 * [init-package-json module](http://npm.im/init-package-json)