Skip to content

Commit f94a940

Browse files
committed
docs: replace deprecated create-tsrouter-app and create-start-app with new CLI commands
1 parent d6af3a2 commit f94a940

File tree

8 files changed

+14
-20
lines changed

8 files changed

+14
-20
lines changed

docs/router/how-to/integrate-shadcn-ui.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This guide covers setting up Shadcn/ui with TanStack Router, including solutions
2727
**Option 1: New project with TanStack Router template**
2828

2929
```bash
30-
npx create-tsrouter-app@latest my-app --template file-router --tailwind --add-ons shadcn
30+
npx @tanstack/cli create my-app --add-ons shadcn
3131
```
3232

3333
**Option 2: Add to existing TanStack Router project**

docs/router/how-to/setup-ssr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: How to Set Up Server-Side Rendering (SSR)
1010
## Quick Start with TanStack Start
1111

1212
```bash
13-
npx create-tsrouter-app@latest my-app --template start
13+
npx @tanstack/cli create my-app
1414
cd my-app
1515
npm run dev
1616
```

docs/router/quick-start.md

Lines changed: 7 additions & 7 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: npx @tanstack/cli create
13+
solid: npx @tanstack/cli create --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://tanstack.com/cli/latest/docs/quick-start).
2929
3030
## Routing Options
3131

@@ -37,8 +37,8 @@ The file-based approach is the recommended option for most projects. It automati
3737

3838
<!-- ::start:tabs variant="package-manager" mode="local-install" -->
3939

40-
react: create-tsrouter-app@latest my-app --template file-router
41-
solid: create-tsrouter-app@latest my-app --framework solid --template file-router
40+
react: npx @tanstack/cli create my-app
41+
solid: npx @tanstack/cli create my-app --framework solid
4242

4343
<!-- ::end:tabs -->
4444

@@ -48,8 +48,8 @@ If you prefer to define routes programmatically, you can use the code-based rout
4848

4949
<!-- ::start:tabs variant="package-manager" mode="local-install" -->
5050

51-
react: create-tsrouter-app@latest my-app
52-
solid: create-tsrouter-app@latest my-app --framework solid
51+
react: npx @tanstack/cli create my-app
52+
solid: npx @tanstack/cli create my-app --framework solid
5353

5454
<!-- ::end:tabs -->
5555

docs/start/framework/react/tutorial/fetching-external-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The complete code for this tutorial is available on [GitHub](https://github.com/
2929
First, let's create a new TanStack Start project:
3030

3131
```bash
32-
pnpx create-start-app movie-discovery
32+
pnpx @tanstack/cli create movie-discovery
3333
cd movie-discovery
3434
```
3535

examples/react/i18n-paraglide/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<link rel="icon" href="/favicon.ico" />
77
<meta name="theme-color" content="#000000" />
8-
<meta
9-
name="description"
10-
content="Web site created using create-tsrouter-app"
11-
/>
8+
<meta name="description" content="Web site created using TanStack CLI" />
129
<link rel="apple-touch-icon" href="/logo192.png" />
1310
<link rel="manifest" href="/manifest.json" />
1411
<title>Create TanStack App - i18n-paraglide</title>

examples/react/start-bun/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ npx gitpick TanStack/router/tree/main/examples/react/start-bun start-bun
2626
This project was created with TanStack Start:
2727

2828
```bash
29-
bunx create-start-app@latest
29+
bunx @tanstack/cli create
3030
```
3131

3232
Install dependencies:

examples/solid/i18n-paraglide/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<link rel="icon" href="/favicon.ico" />
77
<meta name="theme-color" content="#000000" />
8-
<meta
9-
name="description"
10-
content="Web site created using create-tsrouter-app"
11-
/>
8+
<meta name="description" content="Web site created using TanStack CLI" />
129
<link rel="apple-touch-icon" href="/logo192.png" />
1310
<link rel="manifest" href="/manifest.json" />
1411
<title>Create TanStack App - i18n-paraglide</title>

examples/solid/start-bun/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ An optimized production server for TanStack Start applications using Bun, implem
1515
This project was created with TanStack Start:
1616

1717
```bash
18-
bunx create-start-app@latest
18+
bunx @tanstack/cli create
1919
```
2020

2121
Install dependencies:

0 commit comments

Comments
 (0)