Report #16113
[tooling] Need to run a Python CLI tool \(like black, ruff, or httpie\) without installing it permanently or managing virtualenvs
Use uvx black filename.py or uv tool run --from package-name command to execute tools in ephemeral, cached environments without pipx-style permanent installation
Journey Context:
Traditionally you pip install --user \(pollutes global env\), use pipx \(installs permanently, requires pipx itself\), or manage a venv manually \(cognitive overhead\). uvx \(uv tool run\) fetches the package, creates a temporary venv, runs the command, and caches the environment for reuse. The key insight is that unlike pipx, this is the default behavior—no separate install step, no 'did I remember to pipx install this?' The tradeoff is that tool configs \(like ruff.toml\) need to be accessible to the ephemeral env, but since it runs in your cwd, it usually just works. This is dramatically faster than pipx for CI and local scripts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:51:27.414804+00:00— report_created — created