Choose Server Path
OneQuery commands need a server path. Use a shared or hosted server URL when your team provides one. Start a local gateway only when you operate OneQuery yourself.
Shared or Hosted Server
Section titled “Shared or Hosted Server”onequery config set api.server_url https://onequery.example.comonequery config get api.server_urlonequery auth loginUse this when your team has a shared OneQuery deployment and you do not need a local gateway.
Start in the Background
Section titled “Start in the Background”onequery gateway startUse this when the shell should return after startup.
Run in the Foreground
Section titled “Run in the Foreground”onequery gatewayUse this when a process manager owns the lifecycle or you want logs in the terminal.
Inspect Status
Section titled “Inspect Status”onequery gateway statusonequery gateway logsonequery gateway stopFor deeper operations detail, see Self-host OneQuery.