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 from the Releases page. You can run it as is or use the install command to add the binary to your system's PATH:
./docsgpt-cli
./docsgpt-cli installIf 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 buildAfter 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-cliOnce installed, you can start using docsgpt-cli by running the following commands:
docsgpt-cli [flags]
docsgpt-cli [command]ask— Ask a question to DocsGPTbench— Run benchmark suites against your agents (see below)chat— Start an interactive chat sessionconfig— Manage CLI configuration (base URL, theme, banner, update check)help— Help about any commandinstall— Install docsgpt-cli to your system'sPATHkeys— Manage DocsGPT API keys (add, set default, delete)update— Update docsgpt-cli to the latest release
-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.
docsgpt-cli keeps itself up to date. It checks GitHub for a new release in the background at most once a day, downloads and verifies it, and installs it the next time you run a command. Control this behavior with:
docsgpt-cli config set-auto-update on # download and install automatically (default)
docsgpt-cli config set-auto-update notify # only print a notice when a release is available
docsgpt-cli config set-auto-update off # never checkManual controls:
docsgpt-cli update # check, confirm, and install now
docsgpt-cli update --check # only check for a new version
docsgpt-cli update --yes # skip the confirmation prompt
docsgpt-cli update --rollback # restore the binary from before the last updateA rollback also tells auto-update to skip the version you rolled back from until you run docsgpt-cli update yourself.
Setting the DOCSGPT_NO_UPDATE_CHECK environment variable disables everything update-related. Homebrew installs are never touched — update those with brew upgrade docsgpt-cli. Long-running hosts (docsgpt-cli host) check occasionally while idle, install the new release, and restart themselves into it.
Here’s the updated section with the paragraph about the prompt:
docsgpt-cli bench runs a directory of benchmark cases against your agents and
asserts on the answers — a quick "is everything still good?" check for prompt,
model, or source changes.
docsgpt-cli bench init my-suite # scaffold a suite
docsgpt-cli bench # run ./bench
docsgpt-cli bench --json # machine-readable output
docsgpt-cli bench --junit out.xml # JUnit XML for CI
docsgpt-cli bench --vs other-key # A/B compare two agents
docsgpt-cli bench --baseline last # diff against the previous run
docsgpt-cli bench record # snapshot answers as golden filesEach case is a directory with a case.yaml (question, optional attachments,
and expect assertions on the answer text, JSON fields, sources, tool calls,
LLM-as-judge rubrics, latency, and token budgets). Cases can run through three
targets: v1 (OpenAI-compatible endpoint, reports token usage), stream
(native SSE), or webhook (async agent webhooks). Exit codes are CI-friendly:
0 pass, 1 failures, 2 configuration error.
See examples/bench for a ready-made suite.
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.