Quick start
Online examples
We provide online Rsbuild examples that showcase Rspack's build performance and Rsbuild's development experience:
Environment preparation
Rsbuild supports using Node.js, Deno, or Bun as the JavaScript runtime.
Use the following installation guides to choose a runtime:
- Rsbuild >= v1.5.0 requires Node.js 18.12.0 or higher.
- Rsbuild < 1.5.0 requires Node.js 16.10.0 or higher.
Create an Rsbuild application
Use create-rsbuild to create a new Rsbuild application. Run the following command:
Follow the prompts to choose from available options, including whether to add optional tools like TypeScript and ESLint.
After creating the application, complete these steps:
- Run
git initto initialize a Git repository. - Run
npm install(or your package manager's install command) to install dependencies. - Run
npm run devto start the dev server, which runs onhttp://localhost:3000by default.
Templates
When creating an application, you can choose from the following templates provided by create-rsbuild:
create-rsbuild provides basic templates. You can find more templates at:
- Visit Rspack - Ecosystem to learn about higher-level tools built on Rsbuild.
- Visit awesome-rstack - Starter for community-maintained templates.
Optional tools
create-rsbuild can help you set up commonly used tools, including Biome, ESLint, Prettier, and Storybook. Use the arrow keys to navigate and the space bar to select. Press Enter without selecting anything if you don't need these tools.
Biome provides similar linting and formatting features to ESLint and Prettier. If you select Biome, you typically won't need to add ESLint or Prettier.
Current directory
To create an application in the current directory, set the target folder to .:
Non-interactive mode
create-rsbuild supports a non-interactive mode through command-line options. This mode skips prompts and creates the project directly, which is useful for scripts, CI, and automation.
For example, the following command creates a React app in the my-app directory:
All CLI flags supported by create-rsbuild:
Migrate from existing projects
To migrate from an existing project to Rsbuild, refer to the following guides:
- Migrate from webpack
- Migrate from Create React App
- Migrate from Vue CLI
- Migrate from Vite
- Migrate from Modern.js Builder
- Migrate from Tsup to Rslib
- Migrate from Storybook to Storybook Rsbuild
Other projects
If your project doesn't match the above migration guides, you can manually install the @rsbuild/core package:
After installation, refer to the following documents to configure your project:
- See CLI to learn about available CLI commands.
- See Plugin List to select Rsbuild plugins.
- See Configure Rsbuild to configure Rsbuild.
CLI
Rsbuild includes a lightweight CLI with commands like dev and build.
Refer to the CLI to learn about all available commands and options.
Entry module
By default, Rsbuild CLI uses src/index.(js|ts|jsx|tsx) as the entry module. You can modify the entry module using the source.entry option.
Core packages
@rsbuild/core
Core Rsbuild package that provides the CLI commands and JavaScript API.
create-rsbuild
Create a new Rsbuild project.
Next step
You may want:

