Skip to content

Commit 5da91b2

Browse files
authored
Merge pull request #10737 from marmelab/doc-cra-npm-create-args
[Doc] Document how to pass extra options to create-react-admin when using npm create
2 parents bf7a4d7 + 2240597 commit 5da91b2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docs/CreateReactAdmin.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,27 @@ cd your-admin-name
2424
npm run dev
2525
```
2626

27-
**Tip**: You can replace `npx` with `npm`, `yarn`, or `bun`.
27+
**Tip**: You can replace `npx` with `npm`, `yarn` or `bun`:
28+
29+
```sh
30+
# Using npx
31+
npx create-react-admin@latest your-admin-name
32+
# Using npm
33+
npm create react-admin@latest your-admin-name
34+
# Using yarn
35+
yarn create react-admin@latest your-admin-name
36+
# Using bun
37+
bun create react-admin@latest your-admin-name
38+
```
39+
40+
**Tip**: If you need to pass extra options, depending on the command you choose you may need to add `--` before the arguments:
41+
42+
```sh
43+
# `npx` doesn't require the `--` before the arguments
44+
npx create-react-admin@latest your-admin-name --interactive
45+
# `npm create` does require the `--` before the arguments
46+
npm create react-admin@latest your-admin-name -- --interactive
47+
```
2848

2949
## Options
3050

0 commit comments

Comments
 (0)