Skip to main content
On this page

Kater CLI Present and share chart

kater chart list

Lists the saved charts that read one query, in the order they show under it.

Each chart comes with its title, its spec, its SQL and its revision. It changes nothing.

Examples

Terminal window
# List the saved charts that read spend_by_platform
kater chart list --request-file spend_by_platform.json
# Keep the list in a file, to read the revisions with jq
kater chart list --request-file spend_by_platform.json --json > spend_by_platform_charts.json

Arguments

ArgumentDescription
<path>Optional. In place of --request-file: the workspace, the query file or the chart file the request names.

Options

OptionDescription
--request-file <file>The query, as JSON, such as spend_by_platform.json. Give - to read it from standard input. See The request.

It also takes the global options --json, --kater-root, --scope and --help.

The request

FieldWhat it holds
sourceThe query: its name, and the full path of its workspace under namespace.
inputsOptional. The query’s parameter values in parameters, and the optional filters to turn on in filters.
spend_by_platform.json
{"source": {"name": "spend_by_platform", "namespace": {"path": "connections/snowflake_prod_connection/workspaces/ad_reporting"}}}

For spend_by_platform, the list has two charts: spend_by_platform, a bar chart, and spend_mix, a pie chart. Each chart in charts has the fields that kater chart read shows.

See also