From Dev.to
OpenAI CLI: Install It and Call the OpenAI API From Your Terminal
The OpenAI CLI is OpenAI's official command-line tool for the OpenAI REST API. You install one openai binary, set OPENAI_API_KEY, and call the API from your terminal or a shell script: openai response...