xpm run-script [options...] [<command>] [-- <script args>]


  • run
  • rum


This runs an arbitrary command listed in the scripts object in package.json.

  "name": "h1b",
  "version": "1.0.0",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "xmake build -- all",
    "clean": "xmake build -- clean"
  "...": "..."

Options passed after the double dash separator are not processed but appended as is at the end of the command string.

Before creating new processes to run the comman, xpm run prepends xpacks/.bin:node_modules/.bin to the environment PATH.


Help (--help)

$ xpm run-script --help

xPack manager - run package specific script
Usage: xpm run-script [options...] [<command>] [-- <script args>]
  <command>             The command associated with the script (optional)
  <script args>...      Extra arguments for the script (optional, multiple)

Common options:
  --loglevel <level>    Set log level (silent|warn|info|verbose|debug|trace)
  -s|--silent           Disable all messages (--loglevel silent)
  -q|--quiet            Mostly quiet, warnings and errors (--loglevel warn)
  --informative         Informative (--loglevel info)
  -v|--verbose          Verbose (--loglevel verbose)
  -d|--debug            Debug messages (--loglevel debug)
  -dd|--trace           Trace messages (--loglevel trace, -d -d)
  --no-update-notifier  Skip check for a more recent version
  -C <folder>           Set current folder

xpm -h|--help           Quick help
xpm --version           Show version
xpm -i|--interactive    Enter interactive mode

npm xpm@0.5.0 '/Users/ilg/Library/npm/lib/node_modules/xpm'
Home page: <>
Bug reports: <>

Comments on the content of this page that might be useful for other readers are welcomed here. For question and general support, please use the project forums.