One CLI unifies development, builds, testing, linting, and formatting across all your JavaScript projects. Powered by the Rspack ecosystem.
Start a dev server in an instant and build your app for production. Powered by Rsbuild, with the speed of Rspack at every step.
$ rs build
Rsbuild v2.0.0
info build started...
ready built in 0.02s
File (web) Size Gzip
dist/static/js/index.js 0.20 kB 0.18 kB
dist/index.html 0.32 kB 0.24 kB
Total: 0.52 kB 0.42 kBBuild JavaScript and TypeScript libraries with Rslib. From reusable utilities to component libraries, bring your code to more projects.
$ rs lib --dts
Rslib v1.0.0
info build started...
ready built in 0.02s
start generating declaration files...
ready declaration files generated
File (esm) Size
dist/index.js 0.04 kBRun your tests with Rstest and keep feedback close to your code. Share your build settings and move from local development to CI with ease.
$ rs test
Rstest v0.11.0
✓ src/utils.test.ts (2)
✓ src/app.test.ts (1)
Test Files 2 passed
Tests 3 passed
Duration 211msRun lint and formatting checks together, with optional TypeScript type checking. Keep your existing code style with support for Prettier options and plugins.
$ rs check
start Linting...
success Lint passed in 287ms
start Checking formatting...
success Format check passed in 25ms (7 files)Automatically check and format staged files before committing. Reuse lint-staged task configuration and migrate your existing Git Hooks workflow from Husky.
$ rs staged
✔ Done backing up original state!
✔ rs lint --fix
✔ rs fmt
✔ Done running tasks for staged files!
✔ Done staging changes from tasks!
✔ Done cleaning up temporary files!Turn your content into a documentation site with Rspress. Keep your docs alongside your code, with one configuration for the whole workflow.
$ rs doc
Rspress v2.0.0
➜ Local: http://localhost:3000/
➜ Network: use --host to expose
start build started...
ready built in 0.18s