@tanstack/cli
Version:
TanStack CLI
39 lines (28 loc) • 1.61 kB
Markdown
# Create Flag Compatibility Matrix
Targets `@tanstack/cli` v0.70.0.
## Compatibility
| Flag | Works with normal create | Works with `--router-only` | Notes |
|---|---|---|---|
| `--framework` | yes | yes | Framework is still honored in both modes. |
| `--toolchain` | yes | yes | Toolchain selection remains available. |
| `--add-ons` | yes | no | Ignored in router-only mode. |
| `--deployment` | yes | no | Ignored in router-only mode. |
| `--template` / `--starter` | yes | no | Ignored in router-only mode. |
| `--template-id` | yes | no | Ignored in router-only mode. |
| `--blank` | yes | yes | Omits starter UI, examples, Tailwind, devtools, and test tooling unless an explicit integration requires them. Cannot be combined with a template, `--examples`, or `--tailwind`. |
| `--tailwind` / `--no-tailwind` | deprecated/ignored | deprecated/ignored | Standard scaffolds enable Tailwind; use `--blank` for the supported minimal preset. |
Source: `packages/cli/src/command-line.ts:337`
## Recommended command construction order
1. Choose mode (`--router-only` or full scaffold).
2. If full scaffold, resolve add-ons and deployment first.
3. Add framework and toolchain.
4. Pass explicit add-on ids and use `-y` only after flags are final.
## Safe presets
```bash
# Full scaffold preset
npx @tanstack/cli create app --framework react --add-ons tanstack-query --deployment netlify -y
# Minimal Start preset
npx @tanstack/cli create app --blank --framework react --deployment cloudflare -y
# Router-only preset
npx @tanstack/cli create app --router-only --framework react --toolchain biome -y
```