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, including executed results when available.
Requires
boards:read scope on your API key.| Option | Type | Required | Description |
|---|---|---|---|
--board-id | string | ✅ | Board ID to list charts from |
--page | number | ❌ | Page number, 1-indexed |
--size | number | ❌ | Page size |
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.| Option | Type | Required | Description |
|---|---|---|---|
--board-id | string | ✅ | Board ID the chart belongs to |
--date-from | string | ✅ | Date variable value, YYYY-MM-DD |
--date-to | string | ✅ | Date variable value, YYYY-MM-DD |
formo charts create
Create a chart from typed flags or a raw JSON body.
Requires
boards:write scope on your API key.Options
| Option | Type | Required | Description |
|---|---|---|---|
--board-id | string | ✅ | Board ID to add the chart to |
--body | string | ❌ | Raw JSON chart body. Typed flags override matching keys. |
--title | string | ❌ | Chart title |
--description | string | ❌ | Optional chart description |
--chart-type | enum | ❌ | table, number, funnel, bar, line, area, pie, stacked, user_paths, or retention |
--query | string | ❌ | SQL query for SQL-backed charts |
--x-axis | string | ❌ | Column used as the x-axis |
--y-axis | string | ❌ | Comma-separated or JSON array of y-axis columns |
--group-by | string | ❌ | Column used to group or stack series |
--steps | string | ❌ | JSON array of funnel/user-path step objects |
--settings | string | ❌ | JSON object of chart settings |
--body or typed chart fields such as --title, --chart-type, and --query.
Examples
formo charts update <chartId>
Update an existing chart. You can pass partial typed fields; the CLI fetches the current chart and sends the full body required by the API.
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.