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
|`npx create-tsrouter-app@latest my-app`| Create a new app |
14
+
|`npx create-tsrouter-app@latest my-app --template file-router`| Create a new file based app |
15
+
|`npx create-tsrouter-app@latest my-app --template typescript`| Create a new TypeScript app using the Code Router |
16
+
|`npx create-tsrouter-app@latest my-app --tailwind`| Add Tailwind CSS support |
17
+
|`npx create-tsrouter-app@latest my-app --framework solid`| Create a Solid app |
18
+
|`npx create-tsrouter-app@latest my-app --framework solid --template file-router`| Create a Solid app with file-router |
18
19
19
20
If you don't specify a project name, the CLI will walk you through an interactive setup process:
20
21
@@ -43,8 +44,9 @@ Available options:
43
44
44
45
-`--template <type>`: Choose between `file-router`, `typescript`, or `javascript`
45
46
-`--tailwind`: Enable Tailwind CSS
46
-
-`--package-manager`: Specify your preferred package manager (`npm`, `yarn`, `pnpm`, or `bun`)
47
+
-`--package-manager`: Specify your preferred package manager (`npm`, `yarn`, `pnpm`, `bun`, or `deno`)
47
48
-`--no-git`: Do not initialize a git repository
49
+
-`--add-ons`: Enable add-on selection or specify add-ons to install
48
50
49
51
When using flags, the CLI will display which options were provided and only prompt for the remaining choices.
50
52
@@ -88,10 +90,40 @@ Enable Tailwind CSS either through the interactive CLI or by adding the `--tailw
88
90
89
91
### Package Manager
90
92
91
-
Choose your preferred package manager (`npm`, `bun`, `yarn`, or `pnpm`) either through the interactive CLI or using the `--package-manager` flag.
93
+
Choose your preferred package manager (`npm`, `bun`, `yarn`, `pnpm`, or `deno`) either through the interactive CLI or using the `--package-manager` flag.
92
94
93
95
Extensive documentation on using the TanStack Router, migrating to a File Base Routing approach, as well as integrating [@tanstack/react-query](https://tanstack.com/query/latest) and [@tanstack/store](https://tanstack.com/store/latest) can be found in the generated `README.md` for your project.
94
96
97
+
## Add-ons (experimental)
98
+
99
+
You can enable add-on selection:
100
+
101
+
```bash
102
+
npx create-tsrouter-app@latest --add-ons
103
+
```
104
+
105
+
This will prompt you to select the add-ons you want to enable during application creation.
106
+
107
+
You can enable specific add-ons directly by adding a comma separated list of add-on names to the `--add-ons` flag. For example:
0 commit comments