--- sidebar_label: "exec" sidebar_position: 7 --- import { Table } from "docs-ui" export const metadata = { title: `exec Command - Medusa CLI Reference`, } # {metadata.title} Run a custom CLI script. Learn more about it in [this guide](!docs!/learn/fundamentals/custom-cli-scripts). ```bash npx medusa exec [file] [args...] ``` ## Arguments Argument Description Required `file` The path to the TypeScript or JavaScript file holding the function to execute. Yes `args` A list of arguments to pass to the function. These arguments are passed in the `args` property of the function's object parameter. No