Skip to content

CLI Reference

vp run

Run tasks defined in vite.config.ts or package.json scripts.

bash
vp run [options] [task] [additional-args]

If task is omitted, an interactive selector is shown:

Select a task (↑/↓, Enter to run, Esc to clear):

  › build: vp build
    lint: vp lint

Task Argument

The [task] argument can be:

  • build — runs the build task in the current package
  • @my/app#build — runs the build task in a specific package

Options

FlagShortDescription
--recursive-rRun in all workspace packages, in topological order
--transitive-tRun in the current package and its transitive dependencies
--workspace-root-wRun in the workspace root package
--filter <pattern>-FSelect packages by name, directory, or glob (repeatable)
--cacheEnable caching for all tasks and scripts
--no-cacheDisable caching entirely
--ignore-depends-onSkip explicit dependsOn dependencies
--verbose-vShow detailed execution summary
--last-detailsDisplay the summary from the last run

Additional Arguments

Arguments after the task name are passed through to the task command:

bash
vp run test --reporter verbose

Filter Patterns

PatternDescription
@my/appExact package name
@my/*Glob matching
./packages/appBy directory
{./packages/app}By directory (braced form)
@my/app...Package and its dependencies
...@my/corePackage and its dependents
@my/app^...Dependencies only (exclude package itself)
...^@my/coreDependents only (exclude package itself)
!@my/utilsExclude a package

Multiple --filter flags are combined as a union. Exclusion filters (!) are applied after all inclusions.

vp cache clean

Delete all cached task results:

bash
vp cache clean

Tasks will run fresh on the next invocation.