Skip to content

Commit 1bdf021

Browse files
docs: fix name
1 parent 74d9234 commit 1bdf021

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

src/content/api/cli.mdx

+14-8
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,22 @@ npx webpack build --config ./webpack.config.js --stats verbose
6868

6969
### Init
7070

71-
Used to initialize a new webpack project using `@webpack-cli/create-webpack-app`.
71+
Used to initialize a new webpack project using `create-new-webpack-app`.
7272

7373
```bash
74-
npx create-webpack-app init [generation-path] [options]
74+
npx create-new-webpack-app [generation-path] [options]
7575
```
7676

7777
**example**
7878

7979
```bash
80-
npx create-webpack-app init ./my-app --force --template=default
80+
npx create-new-webpack-app ./my-app --force --template=default
81+
```
82+
83+
Alias to:
84+
85+
```bash
86+
npx create-new-webpack-app init ./my-app --force --template=default
8187
```
8288

8389
#### Generation Path
@@ -110,13 +116,13 @@ To generate a project without questions. When enabled, the default answer for ea
110116
Scaffold a loader.
111117

112118
```bash
113-
npx create-webpack-app loader [output-path] [options]
119+
npx create-new-webpack-app loader [output-path] [options]
114120
```
115121

116122
**example**
117123

118124
```bash
119-
npx create-webpack-app loader ./my-loader --template=default
125+
npx create-new-webpack-app loader ./my-loader --template=default
120126
```
121127

122128
#### Output Path
@@ -136,13 +142,13 @@ Type of template.
136142
Scaffold a plugin.
137143

138144
```bash
139-
npx create-webpack-app plugin [output-path] [options]
145+
npx create-new-webpack-app plugin [output-path] [options]
140146
```
141147

142148
**example**
143149

144150
```bash
145-
npx create-webpack-app plugin ./my-plugin --template=default
151+
npx create-new-webpack-app plugin ./my-plugin --template=default
146152
```
147153

148154
#### Output Path
@@ -157,7 +163,7 @@ Path to the output directory, e.g. `./plugin-name`.
157163

158164
Type of template.
159165

160-
T> See the [full documentation of `create-webpack-app`](https://github.com/webpack/webpack-cli/blob/master/packages/create-webpack-app/README.md).
166+
T> See the [full documentation of `create-new-webpack-app`](https://github.com/webpack/webpack-cli/blob/master/packages/create-webpack-app/README.md).
161167

162168
### Info
163169

0 commit comments

Comments
 (0)