docs: updates to admin customization docs (#7493)
* updated admin docs * re-add navigation and parameters sections * update injection zones * update cli scripts docs * added list of injection zones * add details about widget props * restructure admin injection zones
This commit is contained in:
@@ -43,15 +43,12 @@ The function receives as a parameter an object having a `container` property, wh
|
||||
|
||||
## How to Run Custom CLI Script?
|
||||
|
||||
To run the custom CLI script, `build` your code then run the `exec` command:
|
||||
To run the custom CLI script, run the Medusa CLI's `exec` command:
|
||||
|
||||
```bash npm2yarn
|
||||
npm run build
|
||||
npx medusa exec ./dist/scripts/my-script.js
|
||||
npx medusa exec ./src/scripts/my-script.ts
|
||||
```
|
||||
|
||||
Notice that you pass the path to the file in the `dist` directory.
|
||||
|
||||
---
|
||||
|
||||
## Custom CLI Script Arguments
|
||||
@@ -73,6 +70,5 @@ export default async function myScript ({
|
||||
Then, pass the arguments in the `exec` command after the file path:
|
||||
|
||||
```bash npm2yarn
|
||||
npm run build
|
||||
npx medusa exec ./dist/scripts/my-script.js arg1 arg2
|
||||
```
|
||||
npx medusa exec ./src/scripts/my-script.ts arg1 arg2
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user