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 executeorut 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-tsComparison
| npx | utx |
|---|---|
npx create-react-app my-app | utx create-react-app my-app |
npx tsc --init | utx tsc --init |
npx prettier --write . | utx prettier --write . |
How It Works
- Checks local
node_modules/.binfirst - If not found, downloads from npm registry
- Caches for future use
- 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 hiLast updated on