Skip to content

Commit 27ad7c9

Browse files
authored
docs: mf dev cli commands (#400)
1 parent 8fb5d50 commit 27ad7c9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

website/docs/en/guide/basic/cli.mdx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ The output is shown below:
1616
Usage: rslib <command> [options]
1717
1818
Options:
19-
-V, --version output the version number
20-
-h, --help display help for command
19+
-V, --version output the version number
20+
-h, --help display help for command
2121
2222
Commands:
23-
build [options] build the library for production
24-
inspect [options] inspect the Rsbuild / Rspack configs of Rslib projects
25-
help [command] display help for command
23+
build [options] build the library for production
24+
inspect [options] inspect the Rsbuild / Rspack configs of Rslib projects
25+
mf [options] <dev> start Rsbuild dev server of Module Federation format
26+
help [command] display help for command
2627
```
2728

2829
## rslib build
@@ -59,7 +60,7 @@ inspect the Rsbuild / Rspack configs of Rslib projects
5960
Options:
6061
-c --config <config> specify the configuration file, can be a relative or absolute path
6162
--env-mode <mode> specify the env mode to load the `.env.[mode]` file
62-
--lib <name> build the specified library (may be repeated)
63+
--lib <name> inspect the specified library (may be repeated)
6364
--output <output> specify inspect content output path (default: ".rsbuild")
6465
--verbose show full function definitions in output
6566
-h, --help display help for command
@@ -105,12 +106,13 @@ Inspect config succeed, open following files to view the content:
105106
## rslib mf dev
106107

107108
The `rslib mf dev` command is utilized to start Rsbuild dev server of Module Federation format.
109+
108110
This enables you to develop your mf format module within the host app more rapidly.
109111

110112
```text
111-
Usage: rslib mf dev [options]
113+
Usage: rslib mf [options] <dev>
112114
113-
start Rsbuild dev server of Module Federation format.
115+
start Rsbuild dev server of Module Federation format
114116
115117
Options:
116118
-c --config <config> specify the configuration file, can be a relative or absolute path

0 commit comments

Comments
 (0)