Quick run
You can even do it in one line:
uvx <package> <args...>
This will create a temporary virtual environment, install the package, run it. The environment is cached for a time, so reruns are fast.
If the command and package names differ, use --from:
uvx --from <package> <command> <args...>
pipx has the same features: pipx install and pipx run (--spec instead of --from). pipx is preinstalled on GitHub Actions, and there is an action to set up uv.
(I believe this name was inspired by npx from JavaScript, which does the same thing.)