Skip to content

Commit 7be2832

Browse files
committed
Add CLI chapter
1 parent 135f234 commit 7be2832

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

docs/CreateReactAdmin.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
layout: default
3+
title: "The create-react-admin CLI"
4+
---
5+
6+
# `create-react-admin`
7+
8+
This CLI generates a new react-admin application using [Vite](https://vitejs.dev/). Use it by running the following command:
9+
10+
```sh
11+
npx create react-admin@latest your-admin-name
12+
# or
13+
yarn create react-admin your-admin-name
14+
```
15+
16+
It will then ask you to choose:
17+
- a data provider
18+
- a auth provider
19+
- the names of the resources to add
20+
- the package manager to use to install the dependencies

docs/navigation.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<li {% if page.path == 'Tutorial.md' %} class="active" {% endif %}><a class="nav-link" href="./Tutorial.html">Tutorial</a></li>
33
<li {% if page.path == 'Features.md' %} class="active" {% endif %}><a class="nav-link" href="./Features.html">Features</a></li>
44
<li><a class="nav-link external" href="https://github.com/marmelab/react-admin/releases" target="_blank">What's new?</a></li>
5+
<li {% if page.path == 'CreateReactAdmin.md' %} class="active" {% endif %}><a class="nav-link" href="./CreateReactAdmin.html">Create React Admin</a></li>
56
<li {% if page.path == 'CreateReactApp.md' %} class="active" {% endif %}><a class="nav-link" href="./CreateReactApp.html">Create React App</a></li>
67
<li {% if page.path == 'Vite.md' %} class="active" {% endif %}><a class="nav-link" href="./Vite.html">Vite</a></li>
78
<li {% if page.path == 'NextJs.md' %} class="active" {% endif %}><a class="nav-link" href="./NextJs.html">Next.js</a></li>

0 commit comments

Comments
 (0)