pycli icon indicating copy to clipboard operation
pycli copied to clipboard

Access CLI From globally remote or local machine

Open mesadhan opened this issue 4 years ago • 6 comments

Discussion about CLI feature

  • If I wan to access it globally in my local machine then what should I do?
  • and if I want to publish my won CLI globally then what should I do

mesadhan avatar Sep 20 '19 10:09 mesadhan

You should definitely check out PyPi then https://packaging.python.org/tutorials/packaging-projects/

Jighdan avatar Jul 02 '20 16:07 Jighdan

@Jighdan Can you specify it in few steps for such CLI's? I just want to be able to use the app globally in my local computer without publishing.

tanmayc07 avatar Jul 07 '20 11:07 tanmayc07

@tanmayc07 So if you follow the file structure from this repo, just:

    $ cd YOUR-PROJECT
    $ pip install -e .

Once you do that you should be able to call your project from anywhere in the command line.

Jighdan avatar Jul 07 '20 11:07 Jighdan

Ohh thanks for the immediate reply @Jighdan 😁!!

tanmayc07 avatar Jul 07 '20 11:07 tanmayc07

@tanmayc07 Of course! Let me know how it goes :-)

Jighdan avatar Jul 07 '20 11:07 Jighdan

Worked perfectly! @Jighdan

tanmayc07 avatar Jul 07 '20 12:07 tanmayc07