Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLI
Assigneesstack72

Relationships

#1531 Add --server support to CLI commands missing it

Opened by stack72 · 8/5/2026· Shipped 8/5/2026

Problem

A full audit of all CLI leaf commands revealed 24 commands that should support --server but currently don't. The --server flag is added per-command via withRemoteOptions() in src/cli/remote_run.ts — it is not a global option, so each command must opt in explicitly.

Several of these were planned in Phase 2 (#662, #710) but never wired up.

Proposed Solution

Add withRemoteOptions() to the following 25 commands:

Access tokens (3)

  • swamp access token list — list tokens issued on a remote serve instance
  • swamp access token revoke — revoke a token on the remote server
  • swamp access token rotate — rotate a token on the remote server

Model (4)

  • swamp model cancel — cancel a running execution on the server
  • swamp model edit — edit a model definition stored on the server
  • swamp model type describe — describe types available on the server
  • swamp model type search — search types registered on the server

Workflow (5)

  • swamp workflow create — create a workflow definition on the server
  • swamp workflow delete — delete a workflow from the server
  • swamp workflow edit — edit a workflow definition on the server
  • swamp workflow validate — validate against server extensions & config
  • swamp workflow evaluate — evaluate workflow quality against server state

Vault (5)

  • swamp vault create — create a vault on the remote server
  • swamp vault edit — edit vault metadata on the server
  • swamp vault audit-trail — view access audit trail from the server
  • swamp vault read-secret — read a decrypted secret from the server vault
  • swamp vault type search — search vault types registered on the server

Worker tokens (3)

  • swamp worker token create — create a worker token on the server
  • swamp worker token list — list worker tokens issued by the server
  • swamp worker token revoke — revoke a worker token on the server

Data / Run housekeeping (3)

  • swamp data gc — garbage collect orphaned data on the server
  • swamp data prune — prune old data versions on the server
  • swamp run gc — purge old run records from server storage

Datastore (1)

  • swamp datastore namespace list — list namespaces on the remote datastore

Alternatives Considered

Making --server a global option was considered but rejected — many commands are inherently local (serve, init, update, config, source, auth login/logout, etc.) and a global flag would be misleading.

Commands confirmed as local-only (no action needed)

serve, init, repo init/upgrade, completions, help, update, config, auth login/logout, auth token create, access token mint, source *, telemetry stats, worker connect/daemon/exec dispatch, datastore compact/lock/unlock/migrate-index/namespace set/unset/migrate/sync/catalog pull/type search, extension push/promote/yank/deprecate/undeprecate/unyank/fmt/quality/version/source */trust *, issue *, quest, agent-setup, doctor install.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 4 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

8/5/2026, 9:25:19 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack728/5/2026, 6:05:51 PM

Sign in to post a ripple.