Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(api): update init command usage #4851

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/content/api/cli.md
Expand Up @@ -37,18 +37,18 @@ Read the [installation guide](/guides/installation) if you don't already have we

webpack-cli offers a variety of commands to make working with webpack easy. By default webpack ships with

| Command | Usage | Description |
| ------------------------------------- | ----------------------------------------- | ------------------------------------------------------------------------------- |
| `build` | `build\|bundle\|b [entries...] [options]` | Run webpack (default command, can be omitted). |
| [`configtest`](#configtest) | `configtest\|t [config-path]` | Validate a webpack configuration. |
| [`help`](#help) | `help\|h [command] [option]` | Display help for commands and options. |
| [`info`](#info) | `info\|i [options]` | Outputs information about your system. |
| [`init`](#init) | `init\|c [generation-path] [options]` | Initialize a new webpack project. |
| `loader` | `loader\|l [output-path]` | Scaffold a loader. |
| `plugin` | `plugin\|p [output-path]` | Scaffold a plugin. |
| [`serve`](/configuration/dev-server/) | `serve\|s [options]` | Run the `webpack-dev-server`. |
| [`version`](#version) | `version\|v [commands...]` | Output the version number of `webpack`, `webpack-cli` and `webpack-dev-server`. |
| `watch` | `watch\|w [entries...] [options]` | Run webpack and watch for files changes. |
| Command | Usage | Description |
| ------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------- |
| `build` | `build\|bundle\|b [entries...] [options]` | Run webpack (default command, can be omitted). |
| [`configtest`](#configtest) | `configtest\|t [config-path]` | Validate a webpack configuration. |
| [`help`](#help) | `help\|h [command] [option]` | Display help for commands and options. |
| [`info`](#info) | `info\|i [options]` | Outputs information about your system. |
| [`init`](#init) | `init\|create\|new\|c\|n [generation-path] [options]` | Initialize a new webpack project. |
| `loader` | `loader\|l [output-path]` | Scaffold a loader. |
| `plugin` | `plugin\|p [output-path]` | Scaffold a plugin. |
| [`serve`](/configuration/dev-server/) | `serve\|s [options]` | Run the `webpack-dev-server`. |
| [`version`](#version) | `version\|v [commands...]` | Output the version number of `webpack`, `webpack-cli` and `webpack-dev-server`. |
| `watch` | `watch\|w [entries...] [options]` | Run webpack and watch for files changes. |

### Init

Expand All @@ -72,7 +72,7 @@ Location of where to generate the configuration. Defaults to `process.cwd()`.

**`--template`**

`string = default`
`string = 'default'`

Name of template to generate.

Expand Down