npm run <script>

Run arbitrary package scripts


scriptScript to run from your package.json


-w, --workspace <workspace...>Enable running a command in the context of the configured workspaces of the current project
-ws, --workspacesEnable running a command in the context of all the configured workspaces
--if-presentNpm will not exit with an error code when run-script is invoked for a script that isn't defined in the scripts section of package.json
--ignore-scriptsIf true, npm does not run scripts specified in package.json files
--script-shell <script-shell>The shell to use for scripts run with the npm exec, npm run and npm init <pkg> commands
-- <args...>