formo charts command group manages charts within dashboard boards. Every chart command is scoped to a board with --board-id.
formo charts list
List charts for a board. Returns lightweight summaries by default; pass --results to execute each chart’s query and include full results.
Requires
boards:read scope on your API key.formo charts meta
List lightweight chart metadata for a board without query results.
Requires
boards:read scope on your API key.formo charts get <chartId>
Get a single chart by ID.
Requires
boards:read scope on your API key.formo charts query <chartId>
Execute a saved chart query after substituting {{date_from}} and {{date_to}}.
Requires
boards:read scope and a chart query that uses both date variables.formo charts create
Create a chart. A chart is a title and a spec: what it computes (spec.query) and how it is drawn (spec.view, a Vega-Lite subset). See Create Chart for the full spec.
Requires
boards:write scope on your API key. Needs CLI 2.0.0 or later.Options
Provide either
--body or chart fields such as --title, --spec, --sql and --view. Every column the view names must be in the SQL result.
Examples
formo charts update <chartId>
Update an existing chart. The CLI fetches the chart and sends the full body the API needs. --sql, --view and --settings change one part of the current spec and keep the rest.
Requires
boards:write scope on your API key.create are available.
formo charts move <chartId>
Move a chart to another board.
Requires
boards:write scope on your API key.formo charts duplicate <chartId>
Duplicate a chart within its board. The CLI returns the new chart ID.
Requires
boards:write scope on your API key.formo charts reorder
Reorder charts in a board.
Requires
boards:write scope on your API key.--chart-ids may be comma-separated text or a JSON array.
formo charts delete <chartId>
Delete a chart.
Requires
boards:write scope on your API key.