npm install
create an environment file and add you API key like this:
API_KEY=
To set up as a global command:
- Run
chmod -x cli.js
- Run
npm link
while in the project folder
Call claia "<your prompt>"
from any folder to call OpenAI.
You can write the OpenAI API response to a file using the -o <filename>
syntax.
CLAIA "make a python program that can ... " -o main.py