pnpm dlx tsx script.ts

Category: Node.js & npm/yarn

pnpm dlx tsx script.ts

Run a package without adding it

Downloads tsx on the fly and runs script.ts, leaving package.json untouched. pnpm dlx is the pnpm equivalent of npx for one-off tools. For commands from the project's own dependencies, use pnpm exec instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.