npx -p typescript tsc --init

Category: Node.js & npm/yarn

npx -p typescript tsc --init

Run a specific package binary in a temporary environment using -p to specify the package

Uses -p to specify which npm package to pull in, then runs its binary. Here it runs TypeScript's compiler init without a global TypeScript install.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.