mirror of
https://github.com/abhagsain/ai-cli.git
synced 2024-10-26 19:30:04 +03:00
Get answers for CLI commands from GPT3 right from your terminal
.github | ||
.vscode | ||
bin | ||
src | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.mocharc.json | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
GPT3 Powered CLI
Get answers for CLI commands from GPT3 right from your terminal
Usage
$ ai ask "Check process running on port"
You'd need to enter your own OpenAI API key Here's how you can get one
- Go to https://openai.com/api/login
- Create an account or log into your existing account
- Go to https://beta.openai.com/account/api-keys or
- Run
ai auth
, enter your API KEY and you're good to go!
Auto generated documentation
Usage
$ npm install -g @abhagsain/ai-cli
$ ai COMMAND
running command...
$ ai (--version)
@abhagsain/ai-cli/1.1.2 darwin-x64 node-v14.18.3
$ ai --help [COMMAND]
USAGE
$ ai COMMAND
...
Commands
ai ask [question]
Ask question to GPT3 from your terminal
USAGE
$ ai ask [question]
ARGUMENTS
QUESTION Your question
DESCRIPTION
Ask question to GPT3 from your terminal
EXAMPLES
$ ai ask "Check running process on port 3000"
See code: dist/commands/ask.ts
ai auth
Update existing or add new OpenAI API Key
USAGE
$ ai auth
DESCRIPTION
Update existing or add new OpenAI API Key
EXAMPLES
$ ai auth (Follow the prompt)
See code: dist/commands/auth.ts
ai help [COMMAND]
Display help for ai.
USAGE
$ ai help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for ai.
See code: @oclif/plugin-help