Skip to content

Install the CLI

The CLI is the main local surface for setup and source access.

Terminal window
npm install -g @onequery/cli
Terminal window
npx @onequery/cli --help
Terminal window
onequery --version
onequery --help
Terminal window
onequery auth login
onequery auth whoami

The CLI stores the default auth session and config under ~/.onequery/. Set ONEQUERY_HOME when you need an isolated state directory for a test environment or agent runtime.

Named profiles keep separate state:

Terminal window
onequery --profile work auth login
ONEQUERY_PROFILE=work onequery auth whoami

Use profiles for separate production, staging, or customer environments.