docs: shorten npx commands (#4652)
This commit is contained in:
@@ -17,23 +17,23 @@ npm run build
|
||||
3\. Run migrations:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
4\. Create an admin user:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli user -e user@test.com -p supersecret
|
||||
npx medusa user -e user@test.com -p supersecret
|
||||
```
|
||||
|
||||
5\. Optionally seed the database:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli seed -f ./data/seed.json
|
||||
npx medusa seed -f ./data/seed.json
|
||||
```
|
||||
|
||||
6\. Start project:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
@@ -4,5 +4,5 @@ To resolve this issue, make sure you change into the `backend` directory of the
|
||||
|
||||
```bash npm2yarn
|
||||
cd backend
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
@@ -7,7 +7,7 @@ If you run into errors after updating Medusa and its dependencies, it's highly r
|
||||
If there's no upgrade guide for your version, make sure that you ran the `migrations` command in the root directory of your Medusa backend:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
This ensures your backend has the latest database structure required. Then, try running your Medusa backend again and check whether the same error occurs.
|
||||
|
||||
@@ -12,7 +12,7 @@ password: supersecret
|
||||
Alternatively, you can create your own users using the Medusa CLI tool:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli user -e some@email.com -p somepassword
|
||||
npx medusa user -e some@email.com -p somepassword
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user