Install the CLI
The CLI is the main local surface for setup and source access.
Install Options
Section titled “Install Options”npm install -g @onequery/clibrew install wordbricks/tap/onequerybun add -g @onequery/clicurl -fsSL https://onequery.dev/install.sh | shRun Without Installing Globally
Section titled “Run Without Installing Globally”npx @onequery/cli --helpVerify
Section titled “Verify”onequery --versiononequery --helponequery auth loginonequery auth whoamiCLI State
Section titled “CLI State”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:
onequery --profile work auth loginONEQUERY_PROFILE=work onequery auth whoamiUse profiles for separate production, staging, or customer environments.