DocsGPT-cli is a command-line interface (CLI) tool that allows you to interact with DocsGPT. It enables you to ask questions, configure settings, and manage DocsGPT API keys directly from your terminal.
You can install DocsGPT-cli in three ways:
Download the latest binary. You can run it as is or use the install
command to add the binary to your system's PATH
:
./docsgpt-cli
./docsgpt-cli install
If you want to make adjustments or compile the binary yourself, clone the repository and compile it:
git clone https://github.com/arc53/docsgpt-cli.git
cd docsgpt-cli
make build
After compiling, follow the same steps as for the binary:
If you prefer using Homebrew, you can install DocsGPT-cli with the following commands:
brew tap arc53/docsgpt-cli
brew install docsgpt-cli
Once installed, you can start using docsgpt-cli
by running the following commands:
docsgpt-cli [flags]
docsgpt-cli [command]
ask
— Ask a question to DocsGPThelp
— Help about any commandinstall
— Install docsgpt-cli to your system'sPATH
keys
— Manage DocsGPT API keys (add, set default, delete)settings
— Configure the settings for docsgpt-cli
-h, --help
— Help for docsgpt-cli-v, --version
— Version for docsgpt-cli
You can use docsgpt-cli [command] --help
to get more information about each command.
Here’s the updated section with the paragraph about the prompt:
We recommend changing the default DocsGPT prompt to make your interactions more efficient. By using a more concise prompt, you can get faster and more focused responses. For example, you can set the prompt to:
You are a embedded cli assistant docsgpt. You help users from terminal. Keep your answers very short. Just answer with a command if applicable.
We as members, contributors, and leaders, pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. Please refer to the CODE_OF_CONDUCT.md file for more information about contributing.