Preset Cli

by preset-io73d26746350dNo licenseListed Oct 8, 2026Updated Oct 8, 2026

Drive Preset's `sup` CLI (PyPI package `superset-sup`) for shell, scripting, CI/CD, and agent-driven Preset workflows. Use only for CLI workflows; Do not use for MCP-only work or for direct HTTP/SDK code paths.

Instructions onlyDevOps & Cloud
AI-generated overview

Guides safe read-only use of Preset's sup CLI for shell, scripting, CI/CD and agent workflows.

What it does
This skill provides instructions for driving Preset's sup command-line tool (PyPI package superset-sup) from shells, scripts, CI/CD pipelines and agents. It covers install and authentication, config precedence, workspace selection, output formats, command coverage, asset reads, saved queries and ad-hoc SQL routing. It emphasizes read-only operations, credential redaction, and routing mutating or non-SELECT SQL work to a separate mutations skill. It ships no scripts; it is a set of reference documents.
When to use it
Use it when you need to operate Preset through the sup CLI rather than MCP or direct HTTP/SDK calls. It fits automation and agent-driven read workflows such as metadata reads, asset listing, saved query reads and bounded single-statement SELECT queries. It is not intended for MCP-only work, direct API code paths, or push, sync, overwrite and force operations.
Requirements
Requires the sup CLI (PyPI package superset-sup) installed and authenticated, with credentials supplied via environment variables such as SUP_PRESET_API_TOKEN or SUP_PRESET_API_SECRET, or through sup config auth. Network access to Preset is needed. No scripts are included; the skill is instructions and reference documents only.

preset-cli

Use as the foundation for shell, scripting, CI/CD, and agent-driven Preset workflows through the sup CLI.

Always

  • CLI surface only; stay on MCP or direct API if that's what the user requested.
  • Default to --json for automation and agent consumption.
  • Keep SUP_PRESET_API_TOKEN / SUP_PRESET_API_SECRET out of command lines and shared output; use env vars or sup config auth, never paste secrets on the command line.
  • Route push, sync, overwrite, and --force to preset-cli-mutations.
  • Redact tokens and credential-bearing output in transcripts.

Decision Rules

  • Classify CLI vs MCP vs direct API intent before acting; if MCP or direct API was requested, defer to that plugin.
  • Run metadata reads and explicitly requested data-returning reads (e.g. sup sql, sup chart data) on familiar workspaces directly with bounded output; for sup sql, this direct path requires a pure single-statement SELECT. Load safety policy before mutations, SQL that is not a pure single-statement SELECT, untrusted-source SQL, unfamiliar workspaces, or broad outputs.
  • Choose output format based on the downstream consumer: --json for automation, --csv for files, default Rich for humans, --porcelain for shell pipelines.
  • If a command group is not named on this card, load command coverage before composing commands.
  • For mutating intent, stop and load preset-cli-mutations rather than continuing on this card. Non-SELECT SQL is confirmation-gated by the safety policy even when it is pasted by the user for a familiar workspace.

Workflow Order

  1. Establish install, auth, and workspace context.
  2. Choose output format.
  3. Classify risk (metadata read vs data-returning read vs mutation).
  4. Load the focused reference for the operation.
  5. Run only the safe / read command.
  6. Redact output before sharing.

Retrieve

  • Install, entry points, OAuth, env vars: references/install-and-auth.md [blocked]
  • Config precedence and source resolution: references/config-precedence.md [blocked]
  • Workspace selection and --workspace-id override: references/workspace-and-config.md [blocked]
  • Registered command coverage and routing: references/command-coverage.md [blocked]
  • Output formats and exit behavior: references/output-formats.md [blocked]
  • Asset read/export entity scope: references/assets-read.md [blocked]
  • Asset list filter matrix: references/asset-filter-matrix.md [blocked]
  • Ad-hoc SQL routing: references/sql-and-query.md [blocked]
  • SQL/data-returning read safety: references/sql-data-safety.md [blocked]
  • Saved query reads: references/saved-query-reads.md [blocked]
  • Detailed command examples: references/command-examples.md [blocked]
  • CLI vs API routing decision: references/cli-vs-api.md [blocked]
  • Approval gates and credential redaction: references/safety-policy.md [blocked]

Source and attribution

Source:preset-io/agent-skillsinplugins/preset-cli-skills/skills/preset-cliat commit73d2674

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal