docs: shorten npx commands (#4652)
This commit is contained in:
@@ -1231,7 +1231,7 @@ Finally, to reflect the migration in the database, run the `build` and `migratio
|
||||
|
||||
```bash npm2yarn
|
||||
npm run build
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
You can learn more about migrations in [this guide](../development/entities/migrations/overview.mdx).
|
||||
@@ -2390,7 +2390,7 @@ You’ve now implemented everything necessary for the onboarding flow! You can t
|
||||
|
||||
```bash npm2yarn
|
||||
npm run build
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
If you open the admin at `localhost:7001` and log in, you’ll see the onboarding widget in the Products listing page. You can try using it and see your implementation in action!
|
||||
|
||||
@@ -101,7 +101,7 @@ If you disabled the `serve` option, you need to run the admin dashboard separate
|
||||
You can test the admin dashboard by running the following command in the directory of the Medusa backend:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
This starts the Medusa Backend and the admin dashboard. By default, the admin will be available on the URL `localhost:9000/app`. If you set the path option, then the admin will be available on `localhost:9000/<PATH>` with `<PATH>` being the value of the path option.
|
||||
@@ -144,7 +144,7 @@ Passwords in Medusa are hashed using the [scrypt-kdf](https://www.npmjs.com/pack
|
||||
To create a new admin user from the command line, run the following command in the directory holding your Medusa backend:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli user -e some@email.com -p some-password
|
||||
npx medusa user -e some@email.com -p some-password
|
||||
```
|
||||
|
||||
This will create a new user that you can use to log into your admin panel.
|
||||
|
||||
@@ -163,7 +163,7 @@ This will create an admin UI route at the path `/a/custom`, with its content bei
|
||||
To test your admin UI route, run the following command in the root directory of the Medusa backend project:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
This will build your admin and opens a window in your default browser to `localhost:7001`. After you log in, if you go to `localhost:7001/a/custom`, you’ll find the page you just created.
|
||||
|
||||
Reference in New Issue
Block a user