CLI Reference
Complete reference for Superset command-line interface, including commands and flags.
The CLI is currently in Beta — commands and flags are still evolving. Make sure you're on the latest version of the CLI if you run into issues.
Synopsis
superset <command> [subcommand] [options]Run superset --help for the top-level command list, or
superset <command> --help for any group.
Global options
These flags are accepted by every command:
| Flag | Env | Description |
|---|---|---|
--json | Print the data payload as formatted JSON. | |
--quiet | One ID per line for arrays; the ID for single objects; JSON fallback otherwise. | |
--api-key <key> | SUPERSET_API_KEY | Use an API key instead of stored OAuth login. |
--help, -h | Show help for the current command. | |
--version, -v | Print superset v<version> and exit. |
Commands
auth
Authentication and session inspection.
superset auth login
Authenticate via browser OAuth and store a session token at
~/.superset/config.json.
Single-org accounts are selected automatically. With multiple orgs and a
TTY, the CLI prompts; with multiple orgs and no TTY, you must pass
--organization or the command exits 1 listing the available slugs.
superset auth login
superset auth login --organization acmeTo sign in with an API key — useful for CI or any environment where the
OAuth browser flow isn't an option — pass --api-key. The CLI validates
the key, stores it at ~/.superset/config.json, and clears any prior
OAuth session.
superset auth login --api-key sk_live_…
superset auth login --api-key sk_live_… --organization acmeReturns
The newly authenticated user and active organization.
◇ Authorized!
│ Satya Patel (you@example.com)
│ Organization: Acme
└ Logged in successfully.--json
{
userId: string;
organizationId: string;
organizationName: string;
}Options
| Flag | Description |
|---|---|
--organization <idOrSlug> | Selects the active organization without prompting. Required for non-TTY logins when you belong to multiple orgs. |
--api-key <key> | Store a Superset API key (`sk_live_…`) at `~/.superset/config.json` instead of running the OAuth flow. |
superset auth logout
Clear stored credentials — both an OAuth session and a stored API key. Does not call the API and does not clear the active organization (your preferred org persists across re-logins).
superset auth logoutReturns
A confirmation message.
Logged out.--json
{ message: "Logged out." }superset auth whoami
Show the current user, active organization, and auth source.
superset auth whoamiReturns
The current user and organization context.
Signed in as Satya Patel (you@example.com)
Organization: Acme
Auth: Session (expires in 32 min)--json
{
userId: string;
email: string;
name: string;
organizationId: string;
organizationName: string;
authSource: "override" | "config" | "oauth";
}start
Start the local host server — the daemon the CLI and desktop app both talk to when targeting this machine.
superset start
If a manifest exists and the PID is alive, returns the existing
instance's details. Otherwise spawns the host server binary, polls
/trpc/health.check for up to 10 seconds, and writes the manifest.
Binds to 127.0.0.1 only.
superset start --daemonReturns
The running host server.
--json
{
pid: number;
port: number;
organizationId: string;
}Options
| Flag | Description |
|---|---|
--daemon | Run detached. |
--port <n> | Specific port. Default: a free loopback port. |
stop
Stop the local host server.
superset stop
Sends SIGTERM, waits up to 10 seconds, sends SIGKILL if still alive. The manifest is removed in all cases — including when SIGTERM itself throws.
superset stopReturns
The stopped host server, if one was running.
--json
// No manifest
{ running: false }
// Manifest existed
{ pid: number; organizationId: string }status
Inspect the local host server.
superset status
healthy reflects a live health.check request (2-second timeout).
superset statusReturns
The host server state. Three shapes depending on what's running.
--json
// No manifest
{ running: false; organizationId: string }
// Manifest exists but PID is dead
{
running: false;
stale: true;
pid: number;
organizationId: string;
}
// Running
{
running: true;
healthy: boolean;
pid: number;
port: number;
endpoint: string;
organizationId: string;
uptimeSec: number;
}update
Update the Superset CLI and host server binary.
superset update
Downloads the matching superset-<platform>.tar.gz from GitHub Releases
and atomically replaces the install root. Only available in built
binaries; running from bun run dev errors out.
superset update # upgrade to the latest release
superset update --check # show current → target without installing
superset update --version 0.1.2 # install a specific version (up or down)Returns
The current and target version, plus whether anything changed.
Updated 0.1.4 → 0.1.5 (/Users/you/.local/share/superset)--json
// --check
{
current: string;
target: string;
upToDate: boolean;
pinned: boolean;
}
// install
{
current: string;
target: string;
updated: boolean;
installRoot?: string;
}Options
| Flag | Description |
|---|---|
--check | Only check for updates; don't install. |
--force | Re-install even if already on that version. |
--version <version> | Install a specific version (e.g. `0.1.2`) instead of the rolling latest. Accepts upgrade or downgrade. |
organization (alias: org)
Manage which organization the CLI targets.
superset organization list
List organizations available to the current auth context. Marks the active one.
Human mode: table with NAME, SLUG, ACTIVE.
--quiet: organization IDs.
superset organization switch <idOrSlug>
Set the active organization in ~/.superset/config.json.
superset organization switch acme
superset org switch org_…Arguments
| Name | Description |
|---|---|
<idOrSlug>required | Organization ID or slug. |
superset organization members list
List members in the active organization.
superset organization members list
superset org members list -s satyaOptions
| Flag | Description |
|---|---|
--search <query>, -s | Search by name or email. |
--limit <n> | Default 50. |
Human mode: table with NAME, EMAIL, ROLE, ID.
--quiet: member IDs.
projects
A project is a repository registered with your organization. It carries a cloud record (one per repo, shared across the org) and one or more host-side checkouts. Workspaces branch off a host's checkout.
superset projects list
List projects in the active organization. Org-wide; not host-scoped.
Human mode: table with NAME, SLUG, REPO, ID.
--quiet: project IDs.
superset projects create
Create a fresh project on a host. Two modes:
- Clone — pass
--clone <url>and--parent-dir. The host clones the repo into<parent-dir>/<derived-name>/. - Import — pass
--import <path>to register a repo that already exists on disk.
Either way, a new cloud project record is created and the host's main workspace is ensured.
create always creates a new cloud project, even if your org already has
one for the same Git URL. Use projects setup
when adopting an existing project on a fresh machine.
superset projects create --name "my-app" --local --clone https://github.com/org/my-app.git --parent-dir ~/code
superset projects create --name "my-app" --local --import ~/code/my-appOptions
| Flag | Description |
|---|---|
--name <name>required | Display name for the project. |
--host <id> | Target host machineId. Mutually exclusive with `--local`; one is required. |
--local | Target this machine. Mutually exclusive with `--host`; one is required. |
--clone <url> | Clone from a Git URL. Mutually exclusive with `--import`. |
--parent-dir <path> | Parent directory the cloned repo lands in. Required with `--clone`. |
--import <path> | Existing repo path on the target host. Mutually exclusive with `--clone`. |
superset projects setup <id>
Adopt an existing project onto a host without creating a duplicate cloud
record. Counterpart to create for the
"new machine, repo already in the org" case.
Find the project ID via projects list.
Idempotent: re-running against a project that's already set up at the same
path is a no-op that returns the existing mainWorkspaceId.
# Pick an ID from `superset projects list`, then clone it onto this machine
superset projects setup 47c31b04-… --local --parent-dir ~/code
# Or register an existing local checkout
superset projects setup 47c31b04-… --local --import ~/code/my-appArguments
| Name | Description |
|---|---|
<id>required | Project UUID to adopt. |
Options
| Flag | Description |
|---|---|
--host <id> | Target host machineId. Mutually exclusive with `--local`; one is required. |
--local | Target this machine. Mutually exclusive with `--host`; one is required. |
--parent-dir <path> | Parent directory to clone the project's repo into (clone mode). The URL comes from the cloud project, so no `--clone <url>` is needed. |
--import <path> | Existing repo path on the target host (import mode). |
--allow-relocate | Permit re-importing at a different path if the project is already set up here. `--import` only. |
hosts
Discover hosts registered to the active organization. To control the
host server running on this machine, use start,
stop, and status.
superset hosts list
List hosts registered to the active organization. Host registration
happens via superset start on each machine — there is no
separate registration command.
superset hosts listHuman mode: table with ID, NAME, ONLINE.
--quiet: host IDs.
workspaces (alias: ws)
Workspaces are branch-scoped working copies on a host.
Routing: when --host resolves to the local machine, the CLI calls
the host server directly over loopback HTTP — no cloud roundtrip, works
offline. Otherwise it routes through the cloud API and the relay.
If the resolved host is the local machine but the host server isn't
responding, the CLI errors out and points you at superset start rather
than silently falling through to the cloud.
superset workspaces list
List workspaces accessible to the active organization. With neither
--host nor --local, the list is organization-wide.
Options
| Flag | Description |
|---|---|
--host <id> | Filter to a specific host machineId. |
--local | Filter to this machine. |
Human mode: table with NAME, BRANCH, PROJECT, HOST.
--quiet: workspace IDs.
superset workspaces create
Create a workspace on the target host. Specify exactly one of --branch
or --pr. If you pass --agent, you must also pass --prompt.
superset workspaces create \
--project prj_… \
--name "fix-login-bug" \
--branch fix/login-bug \
--local
superset workspaces create \
--project prj_… \
--name "review-pr-123" \
--pr 123 \
--localOptions
| Flag | Description |
|---|---|
--project <projectId>required | Project ID. |
--name <name>required | Workspace name. |
--branch <branch> | Workspace branch. Required unless `--pr` is set. |
--pr <number> | Pull request number. Derives the branch via `gh pr checkout`. |
--base-branch <branch> | Branch to fork from when `--branch` does not exist. Defaults to the project default branch. |
--host <id> | Target host machineId. Mutually exclusive with `--local`; one is required. |
--local | Target this machine. Mutually exclusive with `--host`; one is required. |
--agent <preset|uuid|superset> | Agent to spawn after creation. |
--prompt <text> | Initial prompt. Required when `--agent` is set. |
--attachment <path> | Local file to upload for the spawned agent. Repeatable. |
superset workspaces delete <id...>
Delete one or more workspaces on the target host.
superset workspaces delete ws_a ws_b ws_cArguments
| Name | Description |
|---|---|
<id...>required | Workspace IDs to delete. |
Options
| Flag | Description |
|---|---|
--host <id> | Skip cloud lookup and target this host directly. |
--local | Skip cloud lookup and target this machine. |
superset workspaces update <id>
Update a workspace.
superset workspaces update ws_… --name "better-name"Arguments
| Name | Description |
|---|---|
<id>required | Workspace UUID. |
Options
| Flag | Description |
|---|---|
--name <name> | New workspace name. |
superset workspaces open <id>
Open a workspace in the Superset desktop app.
superset workspaces open ws_…
superset workspaces open ws_… --printArguments
| Name | Description |
|---|---|
<id>required | Workspace ID. |
Options
| Flag | Description |
|---|---|
--print | Print the deep link instead of opening the desktop app. |
agents
Agents are terminal-agent rows configured on a host (the same rows shown in
Settings → Agents on that machine). Each row stores a command, args,
prompt-transport mode, and environment used to launch the agent in a fresh
terminal session inside a workspace.
superset agents list
List agents configured on a host. First call on a fresh host seeds the bundled defaults.
superset agents list --local
superset agents list --host host_…Options
| Flag | Description |
|---|---|
--host <id> | Target host machineId. |
--local | Target this machine. Mutually exclusive with --host; exactly one is required. |
Human mode: table with LABEL, PRESET, COMMAND, ID.
--quiet: agent instance IDs.
superset agents run
Launch an agent inside an existing workspace. Resolves the host that owns the workspace and starts the named preset (or HostAgentConfig instance) in a fresh terminal session on that host.
superset agents run --workspace ws_… --agent claude --prompt "Audit the login flow"
superset agents run --workspace ws_… --agent codex --prompt "Review this diff" --attachment ./trace.logOptions
| Flag | Description |
|---|---|
--workspace <id>required | Workspace UUID to run the agent in. |
--agent <preset|uuid|superset>required | Agent preset id (e.g. `claude`, `codex`), HostAgentConfig instance UUID, or `superset`. |
--prompt <text>required | Prompt sent to the agent. |
--attachment-id <uuid> | Pre-uploaded attachment UUID; pass repeatedly for multiple attachments. |
--attachment <path> | Local file path to upload as an attachment. Repeatable. |
tasks (alias: t)
Tasks are units of work in your organization's task tracker.
superset tasks list
List tasks in the active organization.
superset tasks list --assignee-me
superset t list -s "auth" --jsonOptions
| Flag | Description |
|---|---|
--status <id> | Filter by status ID. |
--priority <urgent|high|medium|low|none> | Filter by priority. |
--assignee <userId> | Filter by assignee user ID. |
--assignee-me, -m | Tasks assigned to the current user. |
--creator-me | Tasks created by the current user. |
--search <query>, -s | Substring search on title. |
--limit <n> | Default 50. |
--offset <n> | Default 0. |
Human mode: table with SLUG, TITLE, PRIORITY, ASSIGNEE.
--quiet: task IDs.
superset tasks get <idOrSlug>
Get a task by ID or slug.
superset tasks get tsk_…
superset tasks get fix-login-bugArguments
| Name | Description |
|---|---|
<idOrSlug>required | Task ID or slug. |
superset tasks create
Create a task.
superset tasks create --title "Audit auth flow" --priority highOptions
| Flag | Description |
|---|---|
--title <title>required | Task title. |
--description <text> | Task description. |
--priority <urgent|high|medium|low|none> | Priority. |
--assignee <userId> | Assignee user ID. |
--status-id <id> | Initial status ID. |
--estimate <n> | Story-point estimate. |
--due-date <iso8601> | Due date. |
--labels <a,b,c> | Comma-separated labels. |
superset tasks update <idOrSlug>
Update a task. Same fields as create, all optional.
superset tasks update fix-login-bug --priority urgentArguments
| Name | Description |
|---|---|
<idOrSlug>required | Task ID or slug. |
Options
| Flag | Description |
|---|---|
--title <title> | New title. |
--description <text> | New description. |
--priority <urgent|high|medium|low|none> | New priority. |
--assignee <userId> | New assignee. |
--status-id <id> | New status ID. |
--pr-url <url> | Linked pull request URL. |
--estimate <n> | Story-point estimate. |
--due-date <iso8601> | Due date. |
--labels <a,b,c> | Replace labels with a comma-separated list. |
superset tasks delete <idOrSlug...>
Delete one or more tasks.
superset tasks delete tsk_a tsk_bArguments
| Name | Description |
|---|---|
<idOrSlug...>required | Task IDs or slugs to delete. |
superset tasks statuses list
List task statuses in the active organization. Use the returned IDs with
tasks list --status, tasks create --status-id, or
tasks update --status-id.
superset tasks statuses listHuman mode: table with NAME, TYPE, POS, ID.
--quiet: status IDs.
automations (alias: auto)
Scheduled agent runs. Schedules use RFC 5545 RRULE bodies, e.g.
FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;BYHOUR=9;BYMINUTE=0.
superset automations list
List automations in the active organization.
Human mode: table with ID, NAME, AGENT, SCHEDULE, ENABLED, NEXT RUN.
--quiet: automation IDs.
superset automations get <id>
Get an automation's metadata. The prompt body is omitted — use
automations prompt get to read it.
Use automations logs for run history.
Arguments
| Name | Description |
|---|---|
<id>required | Automation ID. |
superset automations create
Create an automation. Provide --prompt or --prompt-file; if both are
present, the inline --prompt value is used. At least one of --project
or --workspace must be provided.
superset automations create \
--name "Weekday triage" \
--project prj_… \
--workspace ws_… \
--rrule "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;BYHOUR=9;BYMINUTE=0" \
--prompt-file ./prompts/triage.mdOptions
| Flag | Description |
|---|---|
--name <name>required | Automation name. |
--prompt <text> | Inline prompt. |
--prompt-file <path> | Read prompt from file, verbatim. |
--rrule <rrule>required | RFC 5545 RRULE schedule. |
--timezone <iana> | Default: host TZ, then UTC. |
--dtstart <iso8601> | Default: now. |
--workspace <workspaceId> | Reuse an existing workspace. |
--project <projectId> | Project ID for new-workspace-per-run mode. |
--host <hostId> | Default: owner's online host. |
--agent <agent> | Host agent presetId, instance UUID, or 'superset' for built-in chat. Default: claude. |
superset automations update <id>
Update an automation's metadata (name, schedule, agent, host). All flags
optional. Omitting a flag preserves the existing value — undefined means
"no change", not "clear". Use automations prompt get
or automations prompt set to read or
replace the prompt body.
Arguments
| Name | Description |
|---|---|
<id>required | Automation ID. |
Options
| Flag | Description |
|---|---|
--name <name> | New name. |
--rrule <rrule> | New schedule. |
--timezone <iana> | New timezone. |
--dtstart <iso8601> | New start time. |
--host <hostId> | New target host. |
--project <projectId> | New v2 project ID. |
--workspace <workspaceId> | New v2 workspace ID. |
--agent <agent> | New host agent presetId, instance UUID, or 'superset'. |
--mcp-scope <a,b,c> | Comma-separated MCP scope strings. |
--enabled / --no-enabled | Calls automation.setEnabled first. |
superset automations prompt get <id>
Print an automation's prompt body to stdout. The output is the raw prompt
with no trailing newline added, so prompt get and prompt set round-trip
byte-exactly.
# Read to a file
superset automations prompt get aut_… > prompt.md
# Verify a push landed
superset automations prompt get aut_… | diff - ./prompt.mdArguments
| Name | Description |
|---|---|
<id>required | Automation ID. |
superset automations prompt set <id>
Replace an automation's prompt body. The new prompt fully overwrites the old one.
# Write from file
superset automations prompt set aut_… --from-file ./prompt.md
# Write from stdin
cat ./prompt.md | superset automations prompt set aut_… --from-file -Arguments
| Name | Description |
|---|---|
<id>required | Automation ID. |
Options
| Flag | Description |
|---|---|
--from-file <path>required | Read the new prompt from a file. Use `-` for stdin. |
superset automations delete <id>
Delete an automation.
superset automations delete aut_…Arguments
| Name | Description |
|---|---|
<id>required | Automation ID. |
superset automations pause <id>
Pause an automation (sets enabled: false).
superset automations pause aut_…Arguments
| Name | Description |
|---|---|
<id>required | Automation ID. |
superset automations resume <id>
Resume an automation (sets enabled: true). The API recomputes
nextRunAt on resume.
superset automations resume aut_…Arguments
| Name | Description |
|---|---|
<id>required | Automation ID. |
superset automations run <id>
Dispatch an automation immediately. Does not wait for completion.
superset automations run aut_…Arguments
| Name | Description |
|---|---|
<id>required | Automation ID. |
superset automations logs <id>
List recent runs for an automation.
superset automations logs aut_…Arguments
| Name | Description |
|---|---|
<id>required | Automation ID. |
Options
| Flag | Description |
|---|---|
--limit <n> | Default 20, max 100. |
Human mode: table with RUN ID, STATUS, SCHEDULED, DISPATCHED, HOST.
--quiet: run IDs.
Output modes
JSON mode (--json): raw payloads. Lists print arrays, get/create/update
print objects, delete prints summary objects. No { "data": ... } wrapper.
Empty results print null.
Quiet mode (--quiet): IDs only. Arrays of objects with an id field
print one ID per line; single objects print their id; everything else
falls back to JSON.
When CLAUDE_CODE, CLAUDECODE, CLAUDE_CODE_ENTRYPOINT, CODEX_CLI,
GEMINI_CLI, SUPERSET_AGENT, or CI is set to a non-empty value, output
defaults to JSON unless --quiet is provided.