Interactive CLI to install React Grab in your project.
Interactive CLI to install React Grab in your project.
``bash`
npx grab
Running without options starts the interactive wizard:
`bash`
npx grab
Pass options to skip prompts:
`bashAuto-detect everything and install without prompts
npx grab -y
Options
| Option | Alias | Description | Choices |
| ------------------- | ----- | --------------------------------------------- | ---------------------------- |
|
--framework | -f | Framework to configure | next, vite, webpack |
| --package-manager | -p | Package manager to use | npm, yarn, pnpm, bun |
| --router | -r | Next.js router type | app, pages |
| --yes | -y | Skip all confirmation prompts | - |
| --skip-install | - | Skip package installation (only modify files) | - |
| --help | -h | Show help | - |
| --version | -v | Show version | - |Examples
`bash
Interactive setup
npx grabQuick install with auto-detection
npx grab -yNext.js App Router
npx grab -f next -r app -yVite with pnpm
npx grab -f vite -p pnpm -yOnly modify files (skip npm install)
npx grab --skip-install -y
`Supported Frameworks
| Framework | File Modified |
| ---------------------- | --------------------------------- |
| Next.js (App Router) |
app/layout.tsx |
| Next.js (Pages Router) | pages/_document.tsx |
| Vite | index.html |
| Webpack | src/index.tsx or src/main.tsx` |If the CLI doesn't work for your setup, visit the docs:
https://react-grab.com/docs