Skip to content

Commit e27d5d8

Browse files
committed
docs: use @tanstack/cli to create tanstack/router app
1 parent d7445e0 commit e27d5d8

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

docs/router/quick-start.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ The fastest way to get started with TanStack Router is to scaffold a new project
99

1010
<!-- ::start:tabs variant="package-managers" mode="local-install" -->
1111

12-
react: create-tsrouter-app@latest
13-
solid: create-tsrouter-app@latest --framework solid
12+
react: @tanstack/cli create --router-only
13+
solid: @tanstack/cli create --router-only --framework solid
1414

1515
<!-- ::end:tabs -->
1616

@@ -25,7 +25,7 @@ The CLI will guide you through a short series of prompts to customize your setup
2525
Once complete, a new project will be generated with TanStack Router installed and ready to use.
2626

2727
> [!TIP]
28-
> For full details on available options and templates, visit the [`create-tsrouter-app` documentation](https://github.com/TanStack/create-tsrouter-app/tree/main/cli/create-tsrouter-app).
28+
> For full details on available options and templates, visit the [`@tanstack/cli` documentation](https://github.com/TanStack/cli).
2929
3030
## Routing Options
3131

@@ -35,21 +35,14 @@ TanStack Router supports both file-based and code-based route configurations. Yo
3535

3636
The file-based approach is the recommended option for most projects. It automatically creates routes based on your file structure, giving you the best mix of performance, simplicity, and developer experience.
3737

38-
<!-- ::start:tabs variant="package-manager" mode="local-install" -->
3938

40-
react: create-tsrouter-app@latest my-app --template file-router
41-
solid: create-tsrouter-app@latest my-app --framework solid --template file-router
4239

4340
<!-- ::end:tabs -->
4441

4542
### Code-Based Route Configuration
4643

4744
If you prefer to define routes programmatically, you can use the code-based route configuration. This approach gives you full control over routing logic.
4845

49-
<!-- ::start:tabs variant="package-manager" mode="local-install" -->
50-
51-
react: create-tsrouter-app@latest my-app
52-
solid: create-tsrouter-app@latest my-app --framework solid
5346

5447
<!-- ::end:tabs -->
5548

0 commit comments

Comments
 (0)