So I want to make a CLI using a python package for that but I also want to call the CLI with just a simple command like "myCli" from anywhere within my user account (or system wide flexible on that).
My current solution is the following but it seems very hacky:
in ~/scripts/
~/scripts me$ cat hiPython
python ~/scripts/hi.py
~/scripts me$ cat hi.py
print("im python")
In bash_profile (on a mac):
export PATH="/Users/me/scripts:$PATH"
This seems to work
~/Desktop me$ hiPython
im python
Is there a less brittle/dangerous way?