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 2 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
23 changes: 12 additions & 11 deletions src/content/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,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 | 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 | Alias | Description |
| ------------ | -------------- | ----------------------------------------------------------------------- |
| `build` | `bundle`, `b` | Run webpack (default command, can be omitted). |
| `watch` | `--watch`, `w` | Run webpack and watch for files changes. |
| `loader` | `l` | Scaffold a loader repository |
| `plugin` | `p` | Scaffold a plugin repository |
snitin315 marked this conversation as resolved.
Show resolved Hide resolved
| `info` | `i` | Output information about your system and dependencies |
| `serve` | `s` | Run the webpack Dev Server |
| `configtest` | `t` | Tests webpack configuration against validation errors |
snitin315 marked this conversation as resolved.
Show resolved Hide resolved
| `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` |
snitin315 marked this conversation as resolved.
Show resolved Hide resolved

## Flags

Expand Down