How to create a Python CLI that's globally available in your system in 5 easy steps. 1. Install uv 2. Init project with `uv init --app --package mycli` 3. Write code 4. Install with `uv tool install . -e` 5. Use `mycli` anywhere in your computer
5
17
238
15K
189
For a slightly more verbose tutorial with a bit of hand-holding, take a look at this: mathspp.com/blog/using-uv-…
@mathsppblog Just yesterday I was wondering how. The "4." is a gem.
@mathsppblog Does this create a virtual environment? Is there an easy way to activate it from anywhere in your computer? 🤔
@mathsppblog I think you can actually omit --app as well