Skip to Content
Docsutooutx Alias

utx Alias

utx is a convenient alias for ut execute, similar to how npx relates to npm.

Usage

Terminal
utx <COMMAND> [ARGS...]

Why utx?

  • Shorter than ut execute or ut x
  • Familiar pattern for npx users
  • Quick one-off package execution

Examples

Terminal
# Create a new React app utx create-react-app my-app # Initialize TypeScript utx tsc --init # Format code with Prettier utx prettier --write . # Run ESLint utx eslint --fix src/ # Fun with cowsay utx cowsay "Hello from utx!" # Create Vite project utx create-vite my-app --template react-ts

Comparison

npxutx
npx create-react-app my-apputx create-react-app my-app
npx tsc --initutx tsc --init
npx prettier --write .utx prettier --write .

How It Works

  1. Checks local node_modules/.bin first
  2. If not found, downloads from npm registry
  3. Caches for future use
  4. Executes with provided arguments

Custom Commands

You can configure custom utx commands in your config:

Terminal
ut config set hi.cmd "utx cowsay hi"

Then run:

Terminal
ut hi # Executes: utx cowsay hi
Last updated on