Preset Cli Mutations

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

State-changing Preset `sup` CLI workflows: chart/dashboard/dataset push, user push/invite, destructive flags, and cross-workspace sync. Use only for CLI mutation workflows. Do not use for MCP-only work. Do not use for direct HTTP/SDK mutations.

Instructions onlyDevOps & Cloud
AI-generated overview

Guides safe state-changing Preset sup CLI operations such as push, sync and user invite, with previews and typed confirmation.

What it does
This skill provides instructions for running state-changing Preset sup CLI workflows: single-workspace writes such as chart, dashboard and dataset push, user push and invite, and cross-workspace promotion via sync. It defines a workflow order that resolves source and target workspaces, validates configuration, previews or diffs changes, summarizes asset counts and rollback expectations, and requires typed confirmation containing the literal destructive flag string before execution. It also covers destructive flags, dry-run handling, sync templating and rollback risk, and credential redaction.
When to use it
Use it when an operator needs to perform or review mutating Preset CLI operations, including pushes with force or overwrite flags and cross-workspace sync. It is not intended for MCP-only work or for direct HTTP or SDK mutations. It also applies when previewing changes and confirming destructive actions before execution.
Requirements
Requires the Preset sup CLI (preset-cli) with authenticated access to the relevant workspaces, plus an interactive operator for typed confirmation. Instructions only; no scripts are shipped. Network access to Preset is implied by CLI use.

preset-cli-mutations

Use for state-changing CLI operations: single-workspace writes (push, --force, --overwrite) and cross-workspace promotion (sync).

Always

  • Use preset-cli first to establish auth, workspace, and output context.
  • CLI mutation surface only; route HTTP mutations to preset-api-skills.
  • Preview before execution: native --dry-run for sup sync run, sup user push, and sup user invite; pull-and-diff for sup chart push / sup dashboard push / sup dataset push (no native --dry-run).
  • Identify source AND target workspace explicitly before any cross-workspace operation.
  • Require explicit typed user confirmation that contains the literal --force / --overwrite flag string when applicable.
  • Redact tokens and credential-bearing output in transcripts.

Decision Rules

  • Distinguish single-workspace writes (sup chart/dashboard/dataset push) from cross-workspace sync (sup sync run).
  • Treat --force and --overwrite as destructive flags; never invoke without explicit per-flag confirmation.
  • For mutating command groups not named on this card, load command coverage and stop unless it explicitly marks the command as mutation-gated.
  • Do not let CI / automation context bypass the confirmation step; refuse if no interactive operator is available.
  • Route HTTP mutations to the API plugin; route MCP-driven workflows to the MCP plugin.

Workflow Order

  1. Resolve source and (if cross-workspace) target workspace.
  2. Validate configuration where the command supports it (e.g. sup sync validate) before previewing.
  3. Preview / diff to surface what will change.
  4. Summarize asset counts, target effects, rollback expectations, and any destructive flags.
  5. Ask for typed confirmation containing the literal destructive flag string.
  6. Stop before execution and wait for the typed confirmation.
  7. Execute only after confirmation.

Retrieve

  • Single-workspace writes (push, --overwrite, --force, dependency handling): references/write-operations.md [blocked]
  • Cross-workspace promotion (sync, source/target, Jinja2, --dry-run): references/cross-workspace-sync.md [blocked]
  • Sync templating, rollback, and multi-target risk: references/sync-templating-and-rollback.md [blocked]
  • Preview and dry-run handling: references/preview-and-dry-run.md [blocked]
  • Confirmation template and abort triggers: references/confirmation-template.md [blocked]
  • Confirmation overview and audit expectations: references/confirmation-and-dry-run.md [blocked]
  • Registered command coverage and uncovered mutation routing: load preset-cli and then references/command-coverage.md.
  • Approval gates, redaction, abort triggers: load preset-cli and then references/safety-policy.md.

Source and attribution

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

License: No license

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

Report or request removal