Get the Power of AI in your terminal
Get started harnessing the power of AI in your terminal today
There is a lot of hype over the Github Copilot CLI, which is a product currently in Beta, where you have to sign up for the waitlist before getting access. The tldr of this tool is that you can bring the power of chatgpt right into your terminal, without the need to switch apps and context switch. What if I told you there was something you could use right now, and probably for a fraction of the price(based on current copilot pricing).
The best bit is that there is an open-source alternative, all you need to get going is an Open AI Key.
The project is called Please CLI and can be found here:
Please CLI on Github
Instructions can be found on the GitHub page, but all you need is to install it based on instructions for your operating system and add the Open AI Key and you should be good to go.
Once setup, you can start your prompt in your terminal with the phrase please and just ask your question in natural language.
Some example usages that I find handy when I can't remember how to use specific tools. A great feature is the ability to check the command before executing it.
A few examples I have used
$ ๎ฐ please resolve all git conflicts by accepting incoming
๐ก Command:
git checkout --theirs -- $(git ls-files -u | awk '{print $4}')
โ What should I do? [use arrow keys or initials to navigate]
[I] Invoke [C] Copy to clipboard [Q] Ask a question [A] Abort
$ please print tree in mac with depth of 2
๐ก Command: tree -L 2
โ What should I do? [use arrow keys or initials to navigate]
[I] Invoke [C] Copy to clipboard [Q] Ask a question [A] Abort Executing ...
Executing ...
.
โโโ README.md
โโโ other
โ โโโ instructions.cast
โโโ please.sh
โโโ resources
โโโ demo.gif
$ ๎ฐ please add all files in this directory recursively to the .gitignore
๐ก Command:
find . -type f -exec echo "{}" \; >> .gitignore
โ What should I do? [use arrow keys or initials to navigate]
[I] Invoke [C] Copy to clipboard [Q] Ask a question [A] Abort
I hope you found this useful!