Skip to Content

run

Run scripts defined in package.json.

Alias: r

Usage

Terminal
ut run [OPTIONS] [SCRIPT] [ARGS...]

Examples

Terminal
# Run a script ut run build ut run dev ut r test # Pass arguments to script ut run test -- --watch ut run build -- --mode production # Run in specific workspace ut run build -w my-app # Run in all workspaces (topological order) ut run build --workspaces # Interactive mode (no script specified) ut run # → Prompts to select workspace and script

Shortcut

You can run scripts directly without run:

Terminal
ut build # same as: ut run build ut dev # same as: ut run dev ut test # same as: ut run test

Options

OptionDescription
-w, --workspace <name>Run in specific workspace
--workspacesRun in all workspaces with topological ordering

Workspace Execution Order

When using --workspaces, scripts are executed in topological order based on dependency relationships, ensuring dependencies are built before dependents.

Last updated on