m1guelpf / plz-cli

Copilot for your terminal
MIT License
1.58k stars 78 forks source link

add installation instruction for windows #27

Open VPradoB opened 1 year ago

VPradoB commented 1 year ago

nice to have the instructions to install it on powershell too

juliandavidnunesfranco commented 1 year ago

Es bueno tener las instrucciones para instalarlo en PowerShell también

ya la pudiste instalar?

VPradoB commented 1 year ago

no

CM-CA commented 1 year ago

Probably one of the best ways to install it (currently) on W10 and W11 is by enabling WSL (Windows Subsystem Linux ). Then install a subsystem (go to MS Store and search Ubuntu, Debian...). Once it is installed, you can install Homebrew (it was easier for me to install plz-cli because of a problem with dependencies). When you have Homebrew installed, you need to change the PATH location: export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"

export PATH="$PATH:$BREW_HOME

Then run sudo apt update & & sudo apt upgrade -y brew install plz-cli

Next step export your API key to your path: export OPENAI_API_KEY='sk-XXXXXXXX'

And finally execute: plz help me hacking nasa or whatever you want...