@react-grab/cli 0.0.97 → 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -23
- package/dist/cli.cjs +17043 -1163
- package/dist/cli.js +17044 -1166
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -24,11 +24,11 @@ Pass options to skip prompts:
|
|
|
24
24
|
# Auto-detect everything and install without prompts
|
|
25
25
|
npx @react-grab/cli -y
|
|
26
26
|
|
|
27
|
-
# Specify framework
|
|
28
|
-
npx @react-grab/cli -f next -r app -
|
|
27
|
+
# Specify framework
|
|
28
|
+
npx @react-grab/cli -f next -r app -y
|
|
29
29
|
|
|
30
30
|
# Use specific package manager
|
|
31
|
-
npx @react-grab/cli -p pnpm -
|
|
31
|
+
npx @react-grab/cli -p pnpm -y
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Options
|
|
@@ -38,7 +38,6 @@ npx @react-grab/cli -p pnpm -a claude-code -y
|
|
|
38
38
|
| `--framework` | `-f` | Framework to configure | `next`, `vite`, `webpack` |
|
|
39
39
|
| `--package-manager` | `-p` | Package manager to use | `npm`, `yarn`, `pnpm`, `bun` |
|
|
40
40
|
| `--router` | `-r` | Next.js router type | `app`, `pages` |
|
|
41
|
-
| `--agent` | `-a` | Agent integration to add | `claude-code`, `cursor`, `opencode`, `codex`, `gemini`, `amp`, `none` |
|
|
42
41
|
| `--yes` | `-y` | Skip all confirmation prompts | - |
|
|
43
42
|
| `--skip-install` | - | Skip package installation (only modify files) | - |
|
|
44
43
|
| `--help` | `-h` | Show help | - |
|
|
@@ -53,17 +52,14 @@ npx @react-grab/cli
|
|
|
53
52
|
# Quick install with auto-detection
|
|
54
53
|
npx @react-grab/cli -y
|
|
55
54
|
|
|
56
|
-
# Next.js App Router
|
|
57
|
-
npx @react-grab/cli -f next -r app -
|
|
55
|
+
# Next.js App Router
|
|
56
|
+
npx @react-grab/cli -f next -r app -y
|
|
58
57
|
|
|
59
|
-
# Vite with
|
|
60
|
-
npx @react-grab/cli -f vite -p pnpm -
|
|
61
|
-
|
|
62
|
-
# Add agent to existing React Grab installation
|
|
63
|
-
npx @react-grab/cli -a opencode -y
|
|
58
|
+
# Vite with pnpm
|
|
59
|
+
npx @react-grab/cli -f vite -p pnpm -y
|
|
64
60
|
|
|
65
61
|
# Only modify files (skip npm install)
|
|
66
|
-
npx @react-grab/cli
|
|
62
|
+
npx @react-grab/cli --skip-install -y
|
|
67
63
|
```
|
|
68
64
|
|
|
69
65
|
## Supported Frameworks
|
|
@@ -75,17 +71,6 @@ npx @react-grab/cli -a cursor --skip-install -y
|
|
|
75
71
|
| Vite | `index.html` |
|
|
76
72
|
| Webpack | `src/index.tsx` or `src/main.tsx` |
|
|
77
73
|
|
|
78
|
-
## Agent Integrations
|
|
79
|
-
|
|
80
|
-
The CLI can optionally set up agent integrations for:
|
|
81
|
-
|
|
82
|
-
- **Claude Code** (`-a claude-code`) - Send selected elements to Claude Code
|
|
83
|
-
- **Cursor** (`-a cursor`) - Send selected elements to Cursor
|
|
84
|
-
- **OpenCode** (`-a opencode`) - Send selected elements to OpenCode
|
|
85
|
-
- **Codex** (`-a codex`) - Send selected elements to OpenAI Codex
|
|
86
|
-
- **Gemini** (`-a gemini`) - Send selected elements to Google Gemini CLI
|
|
87
|
-
- **Amp** (`-a amp`) - Send selected elements to Amp
|
|
88
|
-
|
|
89
74
|
## Manual Installation
|
|
90
75
|
|
|
91
76
|
If the CLI doesn't work for your setup, visit the docs:
|