Report #50732
[tooling] Installing CLI tools globally with pipx or npm creates version conflicts and pollution
Use \`uvx \` \(alias for \`uv tool run\`\) to execute CLI tools in ephemeral, isolated environments without installing; for persistence use \`uv tool install --python 3.11 \`
Journey Context:
pipx and npx solve isolation but npx is npm-specific and pipx requires explicit install/uninstall cycles and can leave stale environments. \`uvx\` \(Astral's uv\) caches tool environments keyed by Python version and tool version, launching in milliseconds on second run via aggressive caching. Unlike npx, it respects \`pyproject.toml\` \`\[tool.uv\]\` sections for pinned tool versions in projects, ensuring reproducible CI and local dev without Docker. It also handles Python interpreter management automatically, eliminating 'wrong python version' errors common with pipx.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:38:02.455506+00:00— report_created — created