Skip to content

Commit 9d43f2d

Browse files
authored
Merge pull request #10752 from marmelab/doc/remove-bad-indication-for-"yarn_create_react-admin_latest"
[Doc] Remove bad indication for "yarn create react-admin@latest"
2 parents 3555a87 + 092a984 commit 9d43f2d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/CreateReactAdmin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ npx create-react-admin@latest your-admin-name
3232
# Using npm
3333
npm create react-admin@latest your-admin-name
3434
# Using yarn
35-
yarn create react-admin@latest your-admin-name
35+
yarn create react-admin your-admin-name
3636
# Using bun
3737
bun create react-admin@latest your-admin-name
3838
```

docs/Tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ React-admin is built on React. To start, we'll use [create-react-admin](./Create
2828
```sh
2929
npm create react-admin@latest test-admin
3030
# or
31-
yarn create react-admin@latest test-admin
31+
yarn create react-admin test-admin
3232
```
3333

3434
When prompted, choose **JSON Server** as the data provider, then **None** as the auth provider. Do not add any resources for now and press **Enter**. Next, choose either `npm` or `yarn` and press **Enter**. Once everything is installed, run the following commands:

packages/create-react-admin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ npm create react-admin@latest my-app
99
# or
1010
npx create react-admin@latest my-app
1111
# or
12-
yarn create react-admin@latest my-app
12+
yarn create react-admin my-app
1313
# or
1414
bun create react-admin@latest my-app
1515
```

packages/create-react-admin/src/cli.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ const cli = meow(
8888
Examples
8989
$ npx create-react-admin@latest my-admin
9090
$ npx create-react-admin@latest my-admin --data-provider json-server --auth-provider local-auth-provider --resource posts --resource comments --install npm
91-
$ yarn create react-admin@latest my-admin
92-
$ yarn create react-admin@latest my-admin --data-provider json-server --auth-provider local-auth-provider --resource posts --resource comments --install npm
91+
$ yarn create react-admin my-admin
92+
$ yarn create react-admin my-admin --data-provider json-server --auth-provider local-auth-provider --resource posts --resource comments --install npm
9393
$ bun create react-admin@latest my-admin
9494
$ bun create react-admin@latest my-admin --data-provider json-server --auth-provider local-auth-provider --resource posts --resource comments --install npm
9595
`,

0 commit comments

Comments
 (0)