Skip to main content
Run a measures-and-dimensions query against your event stream. Wraps POST /api/query — see the API reference.

Usage

Required flags

Optional flags

Shared flags

All query commands (query, query-attribution, query-cohort) support these:

Examples

Filters

--filter takes a canonical Filter JSON object. The shape is a recursive { and | or | not } group tree with leaves of the form { field, op, value }:
Field ids are namespaced (orders.*, channel.*, attribution.*, emq.*) and each one is only valid in certain contexts. Run upstack filters --detail to list every field with its operators and applicable contexts before constructing a filter.

Save a query for reuse

See upstack saved for the full reference.