Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A CLI tool is a native binary that I can run directly via e.g. `/path/to/binary`. If I need to use `uv run ...` to execute something, then that thing isn't really a CLI tool, it's an interpreted script, which relies on an interpreter that needs to be available as a pre-requisite, and all of the numerous complications that follow from that...


Use this as your shebang line:

  #!/usr/bin/env -S uv run --script
https://treyhunner.com/2024/12/lazy-self-installing-python-s...

I don't think requiring all CLI tools to be "native binaries" makes sense. Plenty of popular CLI tools are not compiled binaries. The Python and Node.js ecosystems run on those.


You're describing scripts, which require interpreters like I guess uv or Node or Python. A CLI tool is a native binary.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: