Skip to main content
Reference
Exactly one input is required. The envelope must include lowercase request_type (read or write) and query. Query bundles are not supported. Local queries post to the auth-disabled local /v2/query; --host, --port, and read-only --warm are local options. With no target, the CLI uses local dev or the sole linked instance; ambiguous projects must specify an instance or an explicit tenant:<id> / cluster:<id>. Cloud queries use the WorkOS session:
  • read uses the backend read-query RPC and requires database.query.read.
  • write uses the backend write-query RPC and requires database.query.write.
  • The backend rejects an operation/envelope mismatch before gateway dispatch.
  • No database key, custom auth header, or direct gateway URL is accepted.
  • A mutation is never retried after dispatch, timeout, or ambiguous transport failure.
Cloud query bodies, parameters, results, operational gateway authorization, and credentials are not logged by the broker.