docs: shorten npx commands (#4652)

This commit is contained in:
Shahed Nasser
2023-08-01 10:50:19 +03:00
committed by GitHub
parent 26a606a1bb
commit 2e42141822
60 changed files with 69 additions and 69 deletions

View File

@@ -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
```

View File

@@ -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
```

View File

@@ -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.

View File

@@ -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
```
---