Skip to Content
DocsutooCommandsexecute

execute

Run a command from a local or remote npm package.

Alias: x

See also: utx Alias

Usage

Terminal
ut execute [OPTIONS] <COMMAND> [ARGS...] utx <COMMAND> [ARGS...]

Examples

Terminal
# Execute a package command ut execute create-react-app my-app ut x vite create my-app # Using utx alias (recommended) utx create-react-app my-app utx cowsay "Hello World" utx tsc --init # With arguments utx prettier --write . utx eslint --fix src/

Options

OptionDescription
--registry <url>Override npm registry
--cache-dir <path>Specify cache directory

How It Works

  1. Checks if the command exists in local node_modules/.bin
  2. If not found, downloads the package from registry
  3. Executes the package binary with provided arguments
Last updated on