CurlGPT is a command-line tool that brings the power of OpenAI's ChatGPT to your favorite terminal. It allows you to type the prompt and the command line will output the proper command.
Make sure you have Node.js installed on your system.
Run the following command to install CurlGPT globally:
npm install -g curlgptCreate an OpenAI's API Key if you have not already created it.
Set your OpenAI API key using the --set-apiKey option:
curlgpt --set-apiKey <your-api-key>Test the CurlGPT by giving a prompt:
curlgpt how to run a postgres container in localThe tool will return appropriate response based on the provided prompt.
Explore additional options and commands using the built-in help:
curlgpt --helpContributions are welcome! If you find a bug, have a feature request, or want to contribute code, please open an issue or submit a pull request to the GitHub repository.
Fork the repository from Github
Clone the forked repository
git clone https://github.com/<your-username>/CurlGPT.gitOpen the clone repository in your favorite code editor
Install the dependencies by running the following command
yarnTest the tool by running the following command to print the CurlGPT version
yarn start -vNote: you will require CurlGPT's API Key to test the prompt in local
CurlGPT is open-source software released under the MIT License.