You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 64ed089
Browse filesBrowse the repository at this point in the historyBrowse files
strausr
committed
fix: add headless mode validation and documentation
4.**AI Assistant**: generating custom rules for your tool of choice (Cursor, VS Code, etc.)
51
51
52
+
## ⚙️ Headless Mode
53
+
54
+
For CI/CD pipelines, scripts, or automated workflows, pass `--headless` along with all options as flags to skip the interactive prompts:
55
+
56
+
```bash
57
+
npx create-cloudinary-react -- --headless \
58
+
--cloudName your-cloud-name \
59
+
--projectName my-app
60
+
```
61
+
62
+
**All options:**
63
+
64
+
| Flag | Type | Default | Description |
65
+
|---|---|---|---|
66
+
|`--cloudName`| string |*(required)*| Your Cloudinary cloud name |
67
+
|`--projectName`| string |`my-cloudinary-app`| Output directory name |
68
+
|`--hasUploadPreset`| boolean |`false`| Set if you have an unsigned upload preset |
69
+
|`--uploadPreset`| string | — | Your unsigned upload preset name (required if `--hasUploadPreset`) |
70
+
|`--aiTools`| string (repeatable) |`cursor`| AI tools to configure: `cursor`, `copilot`, `claude`, `generic`|
71
+
|`--installDeps`| boolean |`true`| Install dependencies after scaffolding |
72
+
|`--startDev`| boolean |`false`| Start the dev server after install |
73
+
|`--packageManager`| string |*(auto-detected)*|`npm`, `pnpm`, `yarn`, or `bun`|
74
+
75
+
> **Note:** If a flag value starts with a dash, use `--flag=value` syntax (e.g. `--cloudName=-myvalue`). Shell variables should be quoted: `--cloudName "$CLOUD_NAME"`.
0 commit comments