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.
|
||||
|
||||
@@ -111,7 +111,7 @@ npm run seed
|
||||
|
||||
This directory holds the transpiled Medusa backend customizations. This directory may not be available when you first install the Medusa backend. It’ll be available when you run the `build` command or start your Medusa backend with the `dev` command.
|
||||
|
||||
The files under this directory are the files that are used in your Medusa backend. So, when you make any changes under `src`, make sure the changes are transpiled into the `dist` directory. If you’re using the `dev` or `@medusajs/medusa-cli develop` commands, this is handled automatically whenever changes occur under the `src` directory.
|
||||
The files under this directory are the files that are used in your Medusa backend. So, when you make any changes under `src`, make sure the changes are transpiled into the `dist` directory. If you’re using the `dev` or `medusa develop` commands, this is handled automatically whenever changes occur under the `src` directory.
|
||||
|
||||
### node_modules
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ Make sure your PostgreSQL server is running before you run the Medusa backend.
|
||||
|
||||
```bash noReport
|
||||
cd my-medusa-store
|
||||
medusa develop # or npx @medusajs/medusa-cli develop
|
||||
medusa develop # or npx medusa develop
|
||||
```
|
||||
|
||||
After these three steps and in only a couple of minutes, you now have a complete commerce engine running locally. You can test it out by sending a request using a tool like Postman or through the command line:
|
||||
@@ -121,7 +121,7 @@ For better testing, you can add demo data to your Medusa backend by running the
|
||||
|
||||
```bash
|
||||
medusa seed --seed-file=data/seed.json
|
||||
# or npx @medusajs/medusa-cli seed --seed-file=data/seed.json
|
||||
# or npx medusa seed --seed-file=data/seed.json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -279,7 +279,7 @@ npm run build
|
||||
This section covers how to test and use your batch job strategy. Make sure to start your backend first:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
You must also use an authenticated user to send batch job requests. You can refer to the [authentication guide in the API reference](/api/admin/#section/Authentication) for more details.
|
||||
|
||||
+1
-1
@@ -253,7 +253,7 @@ You can also add any necessary options to the module. The options added in the e
|
||||
Then, to test the module, run the Medusa backend which also runs your module:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ This registers the in-memory cache module as the main cache service to use. You
|
||||
To test the module, run the following command to start the Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
The backend should then start with no errors, indicating that the module was installed successfully.
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ Other available options include:
|
||||
To test the module, run the following command to start the Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
If the module was installed successfully, you should see the following message in the logs:
|
||||
|
||||
@@ -360,7 +360,7 @@ The `productService` has a `count` method that returns a Promise. This Promi
|
||||
|
||||
## Building Files
|
||||
|
||||
Custom endpoints must be transpiled and moved to the `dist` directory before you can start consuming them. When you run your backend using either the `medusa develop` or `npx @medusajs/medusa-cli develop` commands, it watches the files under `src` for any changes, then triggers the `build` command and restarts the server.
|
||||
Custom endpoints must be transpiled and moved to the `dist` directory before you can start consuming them. When you run your backend using either the `medusa develop` or `npx medusa develop` commands, it watches the files under `src` for any changes, then triggers the `build` command and restarts the server.
|
||||
|
||||
The build isn't triggered though when the backend first starts running. So, make sure to run the `build` command before starting the backend:
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ npm run build
|
||||
Then, run your backend with the following command:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
If you try accessing the endpoints you added the middleware to, you should see your implementation working as expected.
|
||||
|
||||
@@ -77,7 +77,7 @@ To test out your extended validator, build and start your Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npm run build
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Then, send a request to the endpoint you extended passing it your custom fields. To test out the example in this guide, send an [authenticated request](/api/admin#section/Authentication) to the [Create Product endpoint](https://docs.medusajs.com/api/admin#tag/Products/operation/PostProducts) and pass it the `custom_field` body parameter. The request should execute with no errors.
|
||||
|
||||
@@ -123,7 +123,7 @@ npm run build
|
||||
Then, run the `migration` command:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
You should see that your migration have executed.
|
||||
|
||||
@@ -109,7 +109,7 @@ npm run build
|
||||
Then, run the following command to migrate your changes to the database:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
You should see that your migration was executed, which means your changes were reflected in the database schema.
|
||||
|
||||
@@ -125,7 +125,7 @@ npm run build
|
||||
Then, run the following command to start your backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
You should see your custom implementation working as expected.
|
||||
|
||||
@@ -90,7 +90,7 @@ npm run build
|
||||
The last step is to run the migration with the command detailed earlier
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
If you check your database now you should see that the change defined by the migration has been applied successfully.
|
||||
|
||||
@@ -32,7 +32,7 @@ Migrations are used to apply changes to the database schema. However, there are
|
||||
Using the Medusa CLI tool, you can run migrations with the following command:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
This will check for any migrations that contain changes to your database schema that aren't applied yet and run them on your backend.
|
||||
|
||||
@@ -248,7 +248,7 @@ You can also add any necessary options to the module.
|
||||
Then, to test the module, run the Medusa backend which also runs your module:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -58,7 +58,7 @@ This registers the local events module as the main events service to use. This m
|
||||
To test the module, run the following command to start the Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
If the module was installed successfully, you should see the following message in the logs:
|
||||
|
||||
@@ -85,7 +85,7 @@ Other available options include:
|
||||
To test the module, run the following command to start the Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
If the module was installed successfully, you should see the following message in the logs:
|
||||
|
||||
@@ -59,7 +59,7 @@ For example, if the value of the environment variable is set to `false`, but the
|
||||
As feature flags generally include adding new entities or making changes to entities in the database, you must run the migrations after enabling the feature flag:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
:::info
|
||||
|
||||
@@ -397,7 +397,7 @@ This section explains how to test out your implementation if the file service wa
|
||||
Run your backend to test it out:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Then, try uploading a file, for example, using the [Upload File endpoint](/api/admin#tag/Uploads/operation/PostUploads). The file should be uploaded based on the logic you’ve implemented.
|
||||
|
||||
@@ -80,7 +80,7 @@ This section explains how to test out the loader if it’s created in the Medusa
|
||||
Run the following command to start the Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Your loader script should run on the Medusa backend startup. If you logged a message in the console, similar to the example above, you should see it in the console.
|
||||
|
||||
@@ -293,7 +293,7 @@ The `resources` property can have one of the following values:
|
||||
Finally, to test your module, run the following command:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
This starts the Medusa backend and runs your module as part of it.
|
||||
|
||||
@@ -306,7 +306,7 @@ npm run build
|
||||
Next, start your Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Try now to place an order either using the [REST APIs](/api/store) or using the storefront.
|
||||
|
||||
@@ -146,7 +146,7 @@ npm run build
|
||||
Then, run the following command to start your Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
If the scheduled job was registered successfully, you should see a message similar to this logged on your Medusa backend:
|
||||
|
||||
@@ -403,7 +403,7 @@ This section explains how to test out your implementation if the search service
|
||||
Run your backend to test it out:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
You can then send a request to the [Search Products endpoint](/api/store#tag/Products/operation/PostProductsSearch) to see if your search service returns any results.
|
||||
|
||||
@@ -83,7 +83,7 @@ npm run build
|
||||
Then, start the backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
You should see the customizations you made in effect.
|
||||
|
||||
@@ -73,7 +73,7 @@ npm run build
|
||||
Run your backend to test it out:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
You can test now whether your strategy is working by performing the actions that run your strategy.
|
||||
|
||||
@@ -117,7 +117,7 @@ npm run build
|
||||
Run your backend to test it out:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Then, try out your strategy using the Complete Cart endpoint. You should see the logic you implemented used for completing the cart.
|
||||
|
||||
@@ -43,7 +43,7 @@ module.exports = {
|
||||
Run the following command to reflect schema changes into your database:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
### Step 4: Run Migration Script
|
||||
@@ -83,7 +83,7 @@ module.exports = {
|
||||
Run the following command to reflect schema changes into your database:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
### Step 4: Run Migration Script
|
||||
|
||||
@@ -122,7 +122,7 @@ npm run build
|
||||
Run your backend to test it out:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Then, try out your strategy using any of the [Products](/api/store/#tag/Product) or [Carts](/api/store/#tag/Cart) endpoints which include retrieving product variants and line items respectively. You should then see the prices in the response based on your implemented strategy.
|
||||
|
||||
@@ -202,7 +202,7 @@ npm run build
|
||||
Run your backend to test it out:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Before you can test out your tax provider, you must enable it in a region. You can do that either using the [Medusa Admin dashboard](../../../user-guide/taxes/manage.md#change-tax-provider) or using the [Update Region admin endpoint](../admin/manage-tax-settings.mdx#change-tax-provider-of-a-region).
|
||||
|
||||
@@ -120,7 +120,7 @@ npm run build
|
||||
Run your backend to test it out:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
To test it out, you can simulate a checkout flow and check the calculated taxes to see if it matches the logic you implemented in the `calculate` method.
|
||||
|
||||
@@ -130,7 +130,7 @@ const plugins = [
|
||||
Run your backend with the following command:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Then, try triggering one of the [mentioned events earlier in this document](#events-that-the-segment-plugin-tracks). For example, you can place an order either using the [REST APIs](https://docs.medusajs.com/api/store) or using the [Next.js Starter Template](../../starters/nextjs-medusa-starter.mdx).
|
||||
|
||||
@@ -251,7 +251,7 @@ export const query = graphql`
|
||||
To test this out, run your Medusa backend by running this command in its directory:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Then run the Gatsby storefront by running this command in its directory:
|
||||
|
||||
@@ -164,7 +164,7 @@ npm run seed
|
||||
To start the backend run the following command:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
If you seeded the database with demo data, you should see that events related to the products are triggered.
|
||||
|
||||
@@ -175,7 +175,7 @@ npm run develop
|
||||
Then, in the directory of your Medusa backend, run the following command to start the Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Once you start your Medusa backend, if you ran the `--seed` command when you created your Medusa backend, you’ll see that `product.created` events have been triggered along with similar events. This will update Strapi with the products you seeded.
|
||||
|
||||
@@ -178,7 +178,7 @@ Make sure to define `S3_CUSTOM_AGENT` in your environment variables first.
|
||||
Run your Medusa backend with the following command:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Then, you can either test the plugin using the [REST APIs](/api/store) or using the [Medusa Admin](../../admin/quickstart.mdx).
|
||||
|
||||
@@ -137,7 +137,7 @@ If you have multiple storage plugins configured, the last plugin declared in the
|
||||
Run your Medusa backend with the following command:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
Then, you can either test the plugin using the [REST APIs](/api/store) or using the [Medusa Admin](../../admin/quickstart.mdx).
|
||||
|
||||
@@ -3962,7 +3962,7 @@ You can also optionally pass the option `localization` if you want to support di
|
||||
Run your backend now:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
To test it out, perform an action that would trigger one of the emails being sent. For example, you can use your Medusa storefront to create an order. An email from your SendGrid account will be sent to the customer email.
|
||||
|
||||
@@ -194,7 +194,7 @@ const plugins = [
|
||||
Run your Medusa backend with the following command:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
The quickest way to test that the integration is working is by sending a `POST` request to `/store/products/search`. This endpoint accepts a `q` body parameter of the query to search for and returns in the result the products that match this query.
|
||||
|
||||
@@ -161,7 +161,7 @@ Make sure your MeiliSearch instance is running. If you’re unsure how to run it
|
||||
Then, run the Medusa backend:
|
||||
|
||||
```bash npm2yarn
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
|
||||
The quickest way to test that the integration is working is by sending a `POST` request to `/store/products/search`. This endpoint accepts a `q` body parameter of the query to search for and returns in the result the products that match this query.
|
||||
|
||||
@@ -130,7 +130,7 @@ To associate these entities with the `Store` entity, you need to extend and cust
|
||||
|
||||
```bash npm2yarn
|
||||
npm run build
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
You can extend other entities in a similar manner to associate them with a store.
|
||||
@@ -241,7 +241,7 @@ You can also extend services if you need to customize a functionality implemente
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
</details>
|
||||
|
||||
@@ -288,7 +288,7 @@ To listen to events, you need to create Subscribers that subscribe a handler met
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
npx @medusajs/medusa-cli develop
|
||||
npx medusa develop
|
||||
```
|
||||
</details>
|
||||
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -33,5 +33,5 @@ To avoid unexpected issues with dependencies, it is also recommended to update a
|
||||
After updating your Medusa server and before running it, run the following command to run the latest migrations:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
@@ -75,7 +75,7 @@ To avoid unexpected issues with dependencies, it is also recommended to update a
|
||||
After updating your Medusa server and before running it, run the following command to run the latest migrations:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
### Change PriceSelectionStrategy method
|
||||
|
||||
@@ -33,5 +33,5 @@ To avoid unexpected issues with dependencies, it is also recommended to update a
|
||||
After updating your Medusa server and before running it, run the following command to run the latest migrations:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
@@ -19,5 +19,5 @@ Without running the migrations, you might have trouble accessing and using the M
|
||||
After updating your backend, run migrations with the following command:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
@@ -21,7 +21,7 @@ In addition, after introducing the Claim Order feature, this version of Medusa i
|
||||
Run the following command to run migrations:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
### Change Used Methods
|
||||
|
||||
@@ -23,7 +23,7 @@ In addition, this version features some fixes to gift cards that requires runnin
|
||||
In the directory of your Medusa backend, run the following command after updating the backend:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
### Run Migration Script
|
||||
|
||||
@@ -33,5 +33,5 @@ It's also recommended to update any other Medusa plugins or packages you have in
|
||||
After updating your Medusa server and before running it, run the following command to run the latest migrations:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
@@ -21,7 +21,7 @@ Version 1.7.3 of Medusa keeps the feature flags for these two features, but they
|
||||
After updating your Medusa backend and before running it, run the following command to run the latest migration:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
### Run Migration Script for Sales Channels
|
||||
|
||||
@@ -35,5 +35,5 @@ It's also recommended to update any other Medusa plugins or packages you have in
|
||||
After updating your Medusa backend and before running it, run the following command to run the latest migrations:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
@@ -85,5 +85,5 @@ Make sure to replace `your-redis-url` with the connection URL to your Redis inst
|
||||
Finally, you should run migrations to ensure your database is up to date with our schema changes:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
@@ -33,5 +33,5 @@ It's also recommended to update any other Medusa plugins or packages you have in
|
||||
After updating your Medusa backend and before running it, run the following command to run the latest migrations:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
@@ -45,5 +45,5 @@ It's also recommended to update any other Medusa plugins or packages you have in
|
||||
After updating your Medusa backend and before running it, run the following command to run the latest migrations:
|
||||
|
||||
```bash
|
||||
npx @medusajs/medusa-cli migrations run
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user