> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

[Latest release v0.7.5](https://github.com/rstackjs/rstack-cli/releases)

# Unified Toolchain forShipping JavaScript Faster

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

[Get started](/guide/quick-start)[GitHub](https://github.com/rstackjs/rstack-cli)

[rs dev](/guide/cli/dev)/[rs build](/guide/cli/build)

## From dev to production, fast

Start dev servers quickly and build enterprise-grade web applications with [Rspack](https://rspack.rs/) and [Rsbuild](https://rsbuild.rs/)

- Build [5–20× faster](https://github.com/rstackjs/build-tools-performance) than webpack
- Optimize bundles for faster runtime performance
- A consistent bundling process for development and production


````
$ 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](/guide/cli/lib)

## Your library, ready to ship

Build reusable JavaScript libraries, CLI tools, and UI components with [Rslib](https://rslib.rs/)

- One configuration for ESM, CJS, Module Federation, and more
- Choose bundle or bundleless output to suit your needs
- Generate type declarations quickly with TypeScript 7


````
$ 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](/guide/cli/test)

## Faster tests, instant feedback

Test JavaScript with [Rstest](https://rstest.rs/) for fast feedback from local development to CI

- Familiar Jest-style APIs
- Tests accelerated by Rspack, 20%+ faster than Jest
- Automatically reuse your build configuration to reduce maintenance overhead


````
$ 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 lint](/guide/cli/lint)/[rs fmt](/guide/cli/fmt)/[rs check](/guide/cli/check)

## Fast checks, consistent code

Keep your team's code consistent with one command for linting, formatting checks, and type checking

- Lint 20–40× faster than ESLint
- Format 5–10× faster than Prettier
- Compatible with ESLint and Prettier configuration and plugins


````
$ rs check

start   Linting...
success Lint passed in 287ms

start   Checking formatting...
success Format check passed in 25ms (99 files)
````

[rs hooks](/guide/cli/hooks)/[rs staged](/guide/cli/staged)

## Checks for every commit

Add code checks to your Git workflow with familiar lint-staged configuration and Husky-style hooks

- Manage repository-wide Git hooks in one place
- Automatically check staged files
- Run custom commands to suit your workflow


````
$ 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](/guide/cli/doc)

## Build AI-friendly docs sites

Build beautiful, AI-friendly static documentation sites with [Rspress](https://rspress.rs/) and maintain them alongside your code

- Write content in Markdown and MDX
- Full-text search and multilingual support out of the box
- Automatically generate llms.txt and Markdown files for AI agents


````
$ rs doc
Rspress v2.0.0

 ➜ Local: http://localhost:3000/
 ➜ Network: use --host to expose

start   build started...
ready   built in 0.18s
````

## Build your next project with Rstack CLI

Keep your tools in sync and make time for what you want to create.

$`pnpm create rstack@latest`

[Get started](/guide/quick-start)

## Guide

- [Quick start](/guide/quick-start)
- [Configuration](/guide/configuration)
- [API reference](/guide/api-reference)
- [IDE integration](/guide/ide-integration)
- [Migration](/guide/migration)

## Commands

- [rs build](/guide/cli/build)
- [rs lib](/guide/cli/lib)
- [rs test](/guide/cli/test)
- [rs lint](/guide/cli/lint)
- [rs doc](/guide/cli/doc)

## Ecosystem

- [Rsbuild](https://rsbuild.rs/)
- [Rslib](https://rslib.rs/)
- [Rstest](https://rstest.rs/)
- [Rslint](https://rslint.rs/)
- [Rspress](https://rspress.rs/)

## Community

- [GitHub](https://github.com/rstackjs/rstack-cli)
- [Discord](https://discord.gg/XsaKEEk4mW)
- [Reddit](https://www.reddit.com/r/Rspack/)
- [Bluesky](https://bsky.app/profile/rspack.dev)
- [X](https://x.com/rspack_dev)

© 2026 Rstack contributors · [MIT License](https://github.com/rstackjs/rstack-cli/blob/main/LICENSE)

