1.0.2 • Published 1 year ago
shellgpt v1.0.2
shellgpt
Generate shell commands with natural language using OpenAI.
Usage
npx shellgpt
# or
npm i shellgpt -g
# then
shellgpt
Requirement
- Set your openai API key to env variable.
export OPENAI_API_KEY={your-key}
- For people in certain regions, it may be necessary to use a proxy to access OpenAI. In that case, you need to set the https_proxy environment variable as well.
export https_proxy={your-proxy-url}
Get your OpenAI API key
- Sign in to https://platform.openai.com/account/api-keys
- Click on the "Create new secret key" button.
- Your API key will be displayed on the screen. Copy it and keep it in a secure place.