mirror of
https://github.com/abhagsain/ai-cli.git
synced 2024-09-17 13:37:36 +03:00
7.7 KiB
7.7 KiB
GPT3 Powered CLI
Get answers from GPT3 right from your terminal.
Usage
$ npm install -g @abhagsain/ai-cli
$ ai COMMAND
running command...
$ ai (--version)
@abhagsain/ai-cli/0.0.1-0 darwin-x64 node-v14.18.3
$ ai --help [COMMAND]
USAGE
$ ai COMMAND
...
Commands
ai ask [question]
ai auth
ai help [COMMAND]
ai plugins
ai plugins:install PLUGIN...
ai plugins:inspect PLUGIN...
ai plugins:install PLUGIN...
ai plugins:link PLUGIN
ai plugins:uninstall PLUGIN...
ai plugins:uninstall PLUGIN...
ai plugins:uninstall PLUGIN...
ai plugins update
ai ask [question]
Get answers from GPT3 right from your terminal
USAGE
$ ai ask [question]
ARGUMENTS
QUESTION Your question
DESCRIPTION
Get answers from GPT3 right from your terminal
EXAMPLES
$ ai ask "Check running process on port 3000"
See code: dist/commands/ask.ts
ai auth
Add existing or new OpenAI API Key
USAGE
$ ai auth
DESCRIPTION
Add existing or 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
ai plugins
List installed plugins.
USAGE
$ ai plugins [--core]
FLAGS
--core Show core plugins.
DESCRIPTION
List installed plugins.
EXAMPLES
$ ai plugins
See code: @oclif/plugin-plugins
ai plugins:install PLUGIN...
Installs a plugin into the CLI.
USAGE
$ ai plugins:install PLUGIN...
ARGUMENTS
PLUGIN Plugin to install.
FLAGS
-f, --force Run yarn install with force flag.
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Installs a plugin into the CLI.
Can be installed from npm or a git url.
Installation of a user-installed plugin will override a core plugin.
e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
the CLI without the need to patch and update the whole CLI.
ALIASES
$ ai plugins add
EXAMPLES
$ ai plugins:install myplugin
$ ai plugins:install https://github.com/someuser/someplugin
$ ai plugins:install someuser/someplugin
ai plugins:inspect PLUGIN...
Displays installation properties of a plugin.
USAGE
$ ai plugins:inspect PLUGIN...
ARGUMENTS
PLUGIN [default: .] Plugin to inspect.
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Displays installation properties of a plugin.
EXAMPLES
$ ai plugins:inspect myplugin
ai plugins:install PLUGIN...
Installs a plugin into the CLI.
USAGE
$ ai plugins:install PLUGIN...
ARGUMENTS
PLUGIN Plugin to install.
FLAGS
-f, --force Run yarn install with force flag.
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Installs a plugin into the CLI.
Can be installed from npm or a git url.
Installation of a user-installed plugin will override a core plugin.
e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
the CLI without the need to patch and update the whole CLI.
ALIASES
$ ai plugins add
EXAMPLES
$ ai plugins:install myplugin
$ ai plugins:install https://github.com/someuser/someplugin
$ ai plugins:install someuser/someplugin
ai plugins:link PLUGIN
Links a plugin into the CLI for development.
USAGE
$ ai plugins:link PLUGIN
ARGUMENTS
PATH [default: .] path to plugin
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Links a plugin into the CLI for development.
Installation of a linked plugin will override a user-installed or core plugin.
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
command will override the user-installed or core plugin implementation. This is useful for development work.
EXAMPLES
$ ai plugins:link myplugin
ai plugins:uninstall PLUGIN...
Removes a plugin from the CLI.
USAGE
$ ai plugins:uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ ai plugins unlink
$ ai plugins remove
ai plugins:uninstall PLUGIN...
Removes a plugin from the CLI.
USAGE
$ ai plugins:uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ ai plugins unlink
$ ai plugins remove
ai plugins:uninstall PLUGIN...
Removes a plugin from the CLI.
USAGE
$ ai plugins:uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ ai plugins unlink
$ ai plugins remove
ai plugins update
Update installed plugins.
USAGE
$ ai plugins update [-h] [-v]
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Update installed plugins.
ai ask [question]
Get answers from GPT3 right from your terminal
USAGE
$ ai ask [question]
ARGUMENTS
QUESTION Your question
DESCRIPTION
Get answers from GPT3 right from your terminal
EXAMPLES
$ ai ask "Check running process on port 3000"
See code: dist/commands/ask.ts
ai auth
Add existing or new OpenAI API Key
USAGE
$ ai auth
DESCRIPTION
Add existing or 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.