Skip to content

Commit 0ce1223

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

File tree

9 files changed

+14
-20
lines changed

9 files changed

+14
-20
lines changed

docs/router/framework/react/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/framework/react/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/framework/react/quick-start.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The fastest way to get started with TanStack Router is to scaffold a new project
1010
[//]: # 'createAppCommand'
1111

1212
```sh
13-
npx create-tsrouter-app@latest
13+
npx @tanstack/cli create
1414
```
1515

1616
[//]: # 'createAppCommand'
@@ -35,7 +35,7 @@ npm run dev
3535
```
3636

3737
> [!TIP]
38-
> 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).
38+
> For full details on available options and templates, visit the [`@tanstack/cli` documentation](https://tanstack.com/cli/latest/docs/quick-start).
3939
4040
## Routing Options
4141

@@ -48,7 +48,7 @@ The file-based approach is the recommended option for most projects. It automati
4848
[//]: # 'createAppCommandFileBased'
4949

5050
```sh
51-
npx create-tsrouter-app@latest my-app --template file-router
51+
npx @tanstack/cli create my-app
5252
```
5353

5454
[//]: # 'createAppCommandFileBased'
@@ -60,7 +60,7 @@ If you prefer to define routes programmatically, you can use the code-based rout
6060
[//]: # 'createAppCommandCodeBased'
6161

6262
```sh
63-
npx create-tsrouter-app@latest my-app
63+
npx @tanstack/cli create my-app
6464
```
6565

6666
[//]: # 'createAppCommandCodeBased'

docs/router/framework/solid/quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replace: { 'React': 'Solid', 'react': 'solid' }
66
[//]: # 'createAppCommand'
77

88
```sh
9-
npx create-tsrouter-app@latest --framework solid
9+
npx @tanstack/cli create --framework solid
1010
```
1111

1212
[//]: # 'createAppCommand'
@@ -21,14 +21,14 @@ npx create-tsrouter-app@latest --framework solid
2121
[//]: # 'createAppCommandFileBased'
2222

2323
```sh
24-
npx create-tsrouter-app@latest my-app --framework solid --template file-router
24+
npx @tanstack/cli create my-app --framework solid
2525
```
2626

2727
[//]: # 'createAppCommandFileBased'
2828
[//]: # 'createAppCommandCodeBased'
2929

3030
```sh
31-
npx create-tsrouter-app@latest my-app --framework solid
31+
npx @tanstack/cli create my-app --framework solid
3232
```
3333

3434
[//]: # 'createAppCommandCodeBased'

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)