diff --git a/packages/core/src/cli/commands.ts b/packages/core/src/cli/commands.ts index b6fb8cb179..69ad376359 100644 --- a/packages/core/src/cli/commands.ts +++ b/packages/core/src/cli/commands.ts @@ -188,6 +188,13 @@ export function setupCommands(): void { sections.shift(); for (const section of sections) { + if (section.title === 'Usage') { + section.body = section.body.replace( + '$ rsbuild', + color.yellow(`$ rsbuild [command] [options]`), + ); + } + // Fix the dev command name if (section.title === 'Commands') { section.body = section.body.replace( diff --git a/website/docs/en/guide/basic/cli.mdx b/website/docs/en/guide/basic/cli.mdx index 3bc4b2d8c1..ee088ffc05 100644 --- a/website/docs/en/guide/basic/cli.mdx +++ b/website/docs/en/guide/basic/cli.mdx @@ -14,7 +14,7 @@ The output is shown below: ``` Usage: - $ rsbuild [options] + $ rsbuild [command] [options] Commands: dev Start the dev server diff --git a/website/docs/zh/guide/basic/cli.mdx b/website/docs/zh/guide/basic/cli.mdx index c85b95c239..89ab083941 100644 --- a/website/docs/zh/guide/basic/cli.mdx +++ b/website/docs/zh/guide/basic/cli.mdx @@ -14,7 +14,7 @@ npx rsbuild -h ``` Usage: - $ rsbuild [options] + $ rsbuild [command] [options] Commands: dev Start the dev server