Manage Upstack dashboard views from the command line. Wraps theDocumentation Index
Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
Use this file to discover all available pages before exploring further.
/api/dashboard/views/* endpoints — see the API reference and the per-endpoint pages under the Dashboards group for full request/response shapes.
Subcommands
| Subcommand | Wraps |
|---|---|
list | GET /api/dashboard/views |
show <id> | GET /api/dashboard/views/{id} |
build | POST /api/dashboard/views/from-preset |
create --from-file | POST /api/dashboard/views |
update <id> | PATCH /api/dashboard/views/{id} |
copy <id> | POST /api/dashboard/views/{id}/copy |
delete <id> | DELETE /api/dashboard/views/{id} |
list
List dashboard views for the configured pixel.show
Fetch a single view with its full configuration as JSON.build
The high-level builder — pass a list of measures, get a finished dashboard with auto-laid-out sparkline tiles. The most common command for AI agents and quick “give me a dashboard with these KPIs” workflows.| Flag | Description | Default |
|---|---|---|
--chart-types <c1,c2,...> | One chart type per measure (positional pairing). | sparkline for all |
--type <t> | view, attribution_view, or pnl_view. | view |
--layout <l> | Auto-layout strategy. Only kpi-grid today. | kpi-grid |
--attribution-model <m> | first_click, last_click, or any_click. | first_click |
--attribution-window <days> | Attribution lookback. | 30 |
--granularity <g> | day|hour|week|month|... | day |
--date-start <YYYY-MM-DD> --date-end <YYYY-MM-DD> | Date range. | last 30 days |
--from-file <path> | JSON file with any of the above. CLI flags override. |
shortTitle from GET /api/measures (cached) before posting, so widget titles read nicely in the web app.
create
Advanced — create a view from a fullDashboardViewConfiguration body. Use build instead unless you have a specific configuration to load (e.g. exported from another pixel).
{ type, name, configuration, order? }.
update
Partial update — only fields you pass are changed.copy
Duplicate a view.delete
Delete a view. Prompts for confirmation;--yes skips the prompt.