Schema introspection
Every command below with arguments supports two read-only flags for tooling and AI agents:--show-file-schema: print the JSON Schema for the full request object (the format--filenameaccepts).--show-argument-schema <flag-name>: print the JSON Schema for one argument’s value. Pass the kebab flag name without the leading--(e.g.project-id, not--project-id).
list
List charts
Retrieve all charts in a project.
Usage
--project-id; Project API key without --project-id (deprecated)
Options
Also supports
--show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.
create
Create a new chart
Create a chart in a project.
Usage
--project-id; Project API key without --project-id (deprecated)
Options
Also supports
--show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.
get
Get a chart
Retrieve a single chart by id.
Usage
--project-id; Project API key without --project-id (deprecated)
Options
Also supports
--show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.
update
Update a chart
Update a chart’s editable fields. Only fields included in the request body are modified.
Usage
--project-id; Project API key without --project-id (deprecated)
Options
Also supports
--show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.
delete
Delete a chart
Delete a chart from a project, removing it from the project’s dashboards.
Usage
--project-id; Project API key without --project-id (deprecated)
Options
Also supports
--show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.
query
Run a chart query
Aggregate the project’s events into one chart result. query.kind selects the result shape: time series, categorical, scalar, histogram, or table. Every query must include an event_type is <type> or event_type is not <type> filter; an event_type is session filter queries sessions instead of events. The scatter kind and a categorical split_by / split_ranking are accepted by the schema but not served yet, and answer 501.
Usage
Options
Also supports
--show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.