For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /index.md.
close
  • English
  • Latest release v0.7.4

    Unified Toolchain forShipping JavaScript Faster

    One CLI unifies development, builds, testing, linting, and formatting across all your JavaScript projects. Powered by the Rspack ecosystem.

    rs devrs build

    From dev to production, fast

    Start a dev server in an instant and build your app for production. Powered by Rsbuild, with the speed of Rspack at every step.

    • Fast feedback with hot module replacement
    • Optimized production builds powered by Rspack
    • One app configuration for development and builds
    $ 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 kB

    rs lib

    Your library, ready to ship

    Build JavaScript and TypeScript libraries with Rslib. From reusable utilities to component libraries, bring your code to more projects.

    • Flexible output formats, including ESM and CommonJS
    • Generate TypeScript declarations with --dts
    • Rebuild on every change with --watch
    $ 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 kB

    rs test

    Test as fast as you build

    Run your tests with Rstest and keep feedback close to your code. Share your build settings and move from local development to CI with ease.

    • Automatically inherit app or library configuration
    • Rerun related tests as your code changes
    • Collect coverage locally or run once in CI
    $ rs test
    Rstest v0.11.0
    
    src/utils.test.ts (2)
    src/app.test.ts (1)
    
     Test Files  2 passed
          Tests  3 passed
       Duration  211ms

    rs lintrs fmtrs check

    Consistent code. One command

    Run lint and formatting checks together, with optional TypeScript type checking. Keep your existing code style with support for Prettier options and plugins.

    • Type-aware linting, with optional type checking
    • Parallel formatting with a persistent cache
    • Apply lint and formatting fixes with rs check --fix
    $ rs check
    
    start   Linting...
    success Lint passed in 287ms
    
    start   Checking formatting...
    success Format check passed in 25ms (7 files)

    rs hooksrs staged

    Better code in every commit

    Automatically check and format staged files before committing. Reuse lint-staged task configuration and migrate your existing Git Hooks workflow from Husky.

    • Manage Git hooks for the whole repository
    • Run checks on staged files before committing
    • Configure lint, format, and custom tasks by file pattern
    $ 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!

    rs doc

    Great docs, built right in

    Turn your content into a documentation site with Rspress. Keep your docs alongside your code, with one configuration for the whole workflow.

    • Write in Markdown and add React components with MDX
    • Built-in search and multilingual documentation
    • Develop, build, and preview with one CLI
    $ rs doc
    Rspress v2.0.0
    
    Local: http://localhost:3000/
    Network: use --host to expose
    
    start   build started...
    ready   built in 0.18s