Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 6 additions & 6 deletions website/docs/en/guide/start/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ Run the following command to create an Rspack CLI project:

Then follow the prompts in your terminal.

### Quick creation
### Non-interactive mode

[create-rspack](https://www.npmjs.com/package/create-rspack) and [create-rsbuild](https://www.npmjs.com/package/create-rsbuild) provides some CLI flags. By setting these CLI flags, you can skip the interactive selection steps and create the project with one command.
[create-rspack](https://www.npmjs.com/package/create-rspack) and [create-rsbuild](https://www.npmjs.com/package/create-rsbuild) provides several CLI options. With these options, you can skip interactive prompts and create an app directly in non-interactive mode.

For example, to create a React project in the `my-project` directory with one command:
For example, the following command creates a React app in the `my-app` directory:
Comment thread
chenjiahan marked this conversation as resolved.

```bash
# Rspack CLI
npx create-rspack --dir my-project --template react
npx -y create-rspack --dir my-project --template react
# Rsbuild
npx create-rsbuild --dir my-project --template react
npx -y create-rsbuild --dir my-project --template react
# Using abbreviations
npx create-rsbuild -d my-project -t react
npx -y create-rsbuild -d my-project -t react
```

## Online examples
Expand Down
12 changes: 6 additions & 6 deletions website/docs/zh/guide/start/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ Rspack CLI 是对标 webpack CLI 的工具,提供基础的 `serve` 和 `build`

然后按照提示操作。

### 快速创建
### 非交互模式

[create-rspack](https://www.npmjs.com/package/create-rspack) 和 [create-rsbuild](https://www.npmjs.com/package/create-rsbuild) 提供了一些 CLI 选项。通过设置这些 CLI 选项,你可以跳过交互式的选择步骤,一键创建项目
[create-rspack](https://www.npmjs.com/package/create-rspack) 和 [create-rsbuild](https://www.npmjs.com/package/create-rsbuild) 提供了一些 CLI 选项。通过这些选项,你可以跳过交互式提示,直接以非交互模式创建应用

比如,一键创建 React 项目到 `my-project` 目录
例如,以下命令将在 `my-app` 目录中创建一个 React 应用
Comment thread
chenjiahan marked this conversation as resolved.

```bash
# Rspack CLI
npx create-rspack --dir my-project --template react
npx -y create-rspack --dir my-project --template react
# Rsbuild
npx create-rsbuild --dir my-project --template react
npx -y create-rsbuild --dir my-project --template react
# 使用缩写
npx create-rsbuild -d my-project -t react
npx -y create-rsbuild -d my-project -t react
```

## 在线示例
Expand Down
Loading