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 commands #4450

Merged
merged 6 commits into from
Jan 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

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

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

| Command | Alias | Description |
| --------- | ----- | ------------------------------------------------------------------------------------------- |
| `init` | c | Initialize a new webpack configuration |
| `migrate` | m | Migrate a configuration to a new version |
snitin315 marked this conversation as resolved.
Show resolved Hide resolved
| `loader` | l | Scaffold a loader repository |
| `plugin` | p | Scaffold a plugin repository |
| `info` | i | Output information about your system and dependencies |
| `serve` | s | Run the webpack Dev Server |
| `bundle` | b | Run webpack (default command, can be omitted) |
| `help` | h | Display help for commands and options |
| `version` | v | Output the version of `webpack`, `webpack-cli` and `webpack-dev-server` |

| Command | Usage | Description |
| ------------ | ----------------------------------------- | ------------------------------------------------------------------------------- |
| `build` | `build\|bundle\|b [entries...] [options]` | Run webpack (default command, can be omitted). |
| `configtest` | `configtest\|t [config-path]` | Validate a webpack configuration. |
| `help` | `help\|h [command] [option]` | Display help for commands and options. |
| `info` | `info\|i [options]` | Outputs information about your system. |
| `init` | `init\|c [scaffold...] [options]` | Initialize a new webpack configuration. |
| `loader` | `loader\|l [output-path]` | Scaffold a loader. |
| `plugin` | `plugin\|p [output-path]` | Scaffold a plugin. |
| `serve` | `serve\|s [options]` | Run the `webpack-dev-server`. |
| `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. |

## Flags

Expand Down