shellgpt

1.0.2 • Public • Published

shellgpt

Generate shell commands with natural language using OpenAI.

shellgpt

Usage

npx shellgpt

# or
npm i shellgpt -g
# then
shellgpt

Requirement

  1. Set your openai API key to env variable.
export OPENAI_API_KEY={your-key}
  1. 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

  1. Sign in to https://platform.openai.com/account/api-keys
  2. Click on the "Create new secret key" button.
  3. Your API key will be displayed on the screen. Copy it and keep it in a secure place.

Readme

Keywords

none

Package Sidebar

Install

npm i shellgpt

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

22 kB

Total Files

9

Last publish

Collaborators

  • sunhengzhe