CLI Reference
The super binary is the primary way to interact with the daemon. Commands are grouped by category below; run super --help for inline help.
Edition legend (same convention as Config reference — Edition legend):
| Mark | Meaning |
|---|---|
| 💎 Subscription | Requires a valid [license].key and the matching licensed plugin (e.g. security for multi-user Access Tokens / RBAC, isolation for cgroup limits). OSS already has core auth (single admin secret) without plugins. |
| (no mark) | Available in OSS (with or without plugins). |
Global Flags:
| Flag | Type | Default | Description |
|---|---|---|---|
--server <URL> / -s | string | http://127.0.0.1:9002 | Override the server endpoint. Accepts an HTTP(S) URL or a Unix socket (unix:///path/to/superd.sock). Relative socket paths resolve under SUPER_ROOT; auto-discovery may prefer the socket (see below) |
--token <TOKEN> | string | — | Bearer for authenticated daemons (falls back to SUPER_TOKEN). Works with OSS core auth admin secret or licensed Access Tokens (sk-…; security plugin) |
--yes / -y | bool | false | Skip batch confirmation prompts. Also drives super import’s collision prompt (there, y keeps the chosen --on-collision behaviour — override additionally needs the flag or an interactive o answer, --yes alone never escalates) |
--dry-run | bool | false | Preview which programs a batch operation would affect, without executing. super import also honors it: prints the import plan and warnings, no daemon changes |
Endpoint selection (how super picks a daemon to talk to):
--server <URL>— highest priority; used for this command only.~/.super/cli.jsonserver_url— persisted bysuper login <secret> [--url <URL>]; all subsequent commands follow it.- Auto-discovery (only when neither of the above applies, i.e. no
--serverand no~/.super/cli.json): if$SUPER_ROOT/run/superd.sock(or./run/superd.sockwithoutSUPER_ROOT) exists and is a real socket file, the CLI usesunix://there; otherwise it falls back to the defaulthttp://127.0.0.1:9002.
When the daemon listens on both TCP and a Unix socket, an unconfigured CLI therefore prefers the Unix socket automatically. To force TCP, pass --server http://host:port or run super login <secret> http://host:port to persist it. Auto-discovery only recognizes the conventional run/superd.sock path — a custom socket path or a non-default TCP port still needs an explicit --server (or a persisted login).
Exit codes (what scripts and CI gates can rely on):
| Code | Meaning |
|---|---|
0 | Command succeeded. A declined batch-confirmation prompt (“Aborted.”) and a completed --dry-run also exit 0 — nothing was executed, but nothing failed |
1 | Operation failed: the daemon returned an HTTP error (401/403/404/5xx — the daemon’s error message is printed on stderr), the daemon was unreachable, or a --wait/--wait-healthy verification timed out (batch start/stop/restart, super reload --wait) |
2 | Usage error: unknown flag or missing argument (clap) |
Historical note: before 1.8.3 most commands printed Error: … on an HTTP failure but still exited 0, so shell || fallbacks and CI gates never fired. Since 1.8.3 a non-zero exit reliably means the requested operation did not happen.
Starting superd (daemon binary)
superd is separate from the super CLI. It reads $SUPER_ROOT/conf/super.toml and listens for API/CLI traffic.
| Mode | Command / config | When to use |
|---|---|---|
| Foreground (default) | superd or superd --foreground | systemd (Type=simple), Docker, debugging |
| Self-daemonize (Unix) | superd --daemon or [server] daemon = true | Bare metal without systemd; writes $SUPER_ROOT/run/superd.pid by default |
CLI overrides: --daemon / --foreground / --pidfile <PATH>. See Config reference and Installation — Start by hand. Program control (start / stop / shutdown) is unchanged either way.
Command index
Runtime & Monitoring
| Command | Alias | Description |
|---|---|---|
super list | ls | List all managed programs with status, CPU, RAM, uptime |
super info <name|id> | — | Detailed config / state for one program |
super events <name|id> | — | Persisted event history (filterable) + stats |
super logs <name|id> | log | Stream or read program logs |
super top | — | Full-screen real-time monitoring UI |
Lifecycle
| Command | Alias | Description |
|---|---|---|
super add <command> | — | Register a new program |
super update <name|id> | — | Change an existing program’s config |
super start <target> | — | Start a stopped process |
super stop <target> | — | Stop a running process |
super restart <target> | rs | Restart a process |
super signal <target> | — | Send a POSIX signal |
super remove <name|@group|id|all> | rm | Remove a program |
Config & Stack
| Command | Alias | Description |
|---|---|---|
super reload [--wait] | — | Reload super.toml, or SIGHUP a program |
super apply <file> | — | Apply a declarative stack (TOML default, JSON compatible) |
super import <format> <file> | — | Import a foreign process-manager config as a stack (supervisor) |
super export | — | Export current state as a stack (TOML default, --format json available) |
super check | — | Validate super.toml without a running daemon |
System & Daemon
| Command | Alias | Description |
|---|---|---|
super shutdown | — | Gracefully shut down the daemon and all children |
super doctor | — | One-shot diagnostics (config, daemon, license) |
super completions <shell> | completion | Print a shell completion script (bash, zsh, fish, elvish, powershell) |
Authentication
| Command | Alias | Description |
|---|---|---|
super login <secret> | — | Save Bearer credentials to ~/.super/cli.json (OSS core auth or licensed bootstrap / Access Token) |
super logout | — | Clear saved credentials |
super token list|create|revoke 💎 | — | Manage multi-user Access Tokens (security plugin) |
Runtime & Monitoring
list
List all managed programs and their status.
super listinfo
Show detailed JSON/Table information about a specific program. When the program has a provenance label (see import — Provenance), the table includes a Source: line such as Source: import:supervisor or Source: stack:app.toml.
super info <name|id>events
Show the persisted event history for a program — all lifecycle events are recorded (crashes, OOM kills, backoff retries, recoveries, exits, cron runs, system startup/shutdown), not just anomalies. Newest first. For storage, retention, and workflow guidance, see Event History.
super events <name|id> # all recorded events
super events <name|id> --limit 10 # last 10 events
super events <name|id> --type process_fatal # only fatal events
super events <name|id> --exit-code 1 # only runs that exited with code 1
super events <name|id> --q "oom" # free-text match on the message
super events <name|id> --from 1735689600 --to 1735776000 # time window (Unix seconds)
super events <name|id> --stats # retention statistics instead of the list| Flag | Type | Default | Description |
|---|---|---|---|
--limit N | int | all events | Show only the N most recent events |
--from TS | int | — | Inclusive start of the time window (Unix seconds) |
--to TS | int | — | Inclusive end of the time window (Unix seconds) |
--type NAME | string | — | Exact event type (e.g. process_fatal, cron_exit, health_restart) |
--exit-code N | int | — | Exact exit code |
--q TEXT | string | — | Free-text match on the event message |
--stats | flag | — | Show counts by event type and the retained time range |
Events are persisted by superd to a SQLite database (default data/events.db) — see Event History for storage, retention (events_keep_days), and the full event catalog. Every event carries a Unix timestamp (ts, seconds) and a millisecond-precision ts_ms; the table’s Time column renders it as local time. The signal column shows the terminating signal — 9 (SIGKILL) typically indicates a cgroup/kernel OOM kill under resource_limits. Backed by GET /api/v1/programs/{id}/events (plus GET /api/v1/events and GET /api/v1/events/stats).
logs
Read historical lines from disk and/or stream live output via WebSocket.
super logs <name|id> # live stream (WebSocket)
super logs <name|id> --tail 200 # last 200 lines from disk
super logs <name|id> --tail 50 --follow # tail then follow live| Flag | Type | Default | Description |
|---|---|---|---|
--tail N | int | — (live only) | Read last N lines from log files (GET /api/v1/programs/{id}/logs) |
--source | enum | both | Log stream: stdout or stderr only |
--follow | bool | false | After --tail, keep streaming via WebSocket |
top
Real-time monitoring interface (like htop). Polls /api/v1/programs every second and renders a full-screen table; navigate with arrow keys, quit with q.
super topLifecycle
Target syntax
Control commands take a single target, written PM2-style as a union:
super <start|stop|restart|remove> <name|@group|id|all><name>— exact program name (like PM2’sapp_name).@<group>— every program in that group (like PM2’snamespace).<id>— program UUID; unambiguous prefixes are accepted.all— every managed program (PM2’s'all').
Super has no json_conf target — declarative batches go through a stack file instead (super apply <file>, TOML default / JSON compatible). A target that matches several programs is rejected as ambiguous, with the candidates listed.
Batch targets are protected by three safety knobs (global flags, accepted on any control command):
| Flag | Type | Default | Description |
|---|---|---|---|
--yes / -y | bool | false | Skip the interactive confirmation prompt. Batch operations (@group / all) ask for confirmation before touching more than one program; --yes bypasses it for scripts |
--dry-run | bool | false | Show which programs the operation would affect (preview list) and exit without executing anything. super import accepts it the same way — plan + warnings only, nothing applied |
Without --yes, a batch operation on more than one program prints the affected program list and asks [y/N]; answering anything other than y/yes aborts. Single-target operations never prompt.
add
Register a new program without a config file.
super add <COMMAND> [ARGS...] [FLAGS]Flags:
| Flag | Type | Default | Description |
|---|---|---|---|
--name <NAME> / -n | string | binary name | Custom program name |
--autostart | bool | true | Start the program when the daemon starts |
--no-autostart | bool | false | Disable auto-start. Use this instead of --autostart false — --autostart is a flag and does not take a value, so the literal false would be parsed as the command |
--cwd <DIR> | string | daemon cwd | Working directory |
--env <KEY=VAL> / -e | string[] | — | Set environment variables (repeatable) |
--env-file <PATH> | path | — | Load environment variables from a file at spawn time |
--user <USER> | string | — | Run as a specific user (requires root) |
--group <GROUP> | string | — | Group name for organization (addressable as @<group>) |
--numprocs <N> | int | 1 | Spawn N process instances |
--process-name <TPL> | string | {name}-{num} | Process name template for multiple instances (e.g. worker-{num}) |
--autorestart <POLICY> | enum | unexpected | Auto-restart policy: unexpected, true, or false |
--exitcodes <N,N> | int[] | 0 | Comma-separated exit codes considered successful |
--startsecs <N> | int | 10 | Seconds before exit counts as stable start |
--stopsecs <N> | int | 10 | Seconds to wait after SIGTERM before SIGKILL (server shutdown_timeout when omitted) |
--cron <EXPR> | string | — | Cron expression for scheduled tasks (see Scheduled Tasks) |
--on-overlap <POLICY> | enum | skip | Cron overlap policy when the previous run is still active: skip / queue / kill |
--catchup <POLICY> | enum | skip | Policy for cron slots missed while the daemon was down: skip / latest / all |
--jitter <SECS> | int | 0 | Max random delay (seconds) before each cron trigger to spread load |
--max-concurrent <N> | int | 1 | Max overlapping cron runs allowed at once (1–64) |
--max-queued <N> | int | 100 | Cap on queued cron firings when at max_concurrent (0 means default) |
--cpu <CORES> 💎 | float | — | CPU quota in cores (e.g. 1.5; isolation plugin, Linux only) |
--memory <MB> 💎 | int | — | Memory hard limit in MB (isolation plugin, Linux only) |
--memory-warn-percent <PCT> 💎 | int | 80 | Pre-kill warning threshold as % of limit (0 off; isolation plugin, Linux only) |
--memory-warn-headroom <MB> 💎 | int | 0 | Warn within this many MB of the limit (0 off) |
--memory-high <MB> 💎 | int | 0 | Kernel soft limit in MB — throttles before OOM-kill (0 off, opt-in) |
update
Update configuration for an existing program.
super update <name|id> [FLAGS]Flags:
Every flag is optional — omitted flags keep the program’s current value.
| Flag | Type | Default | Description |
|---|---|---|---|
--command <CMD> | string | keep | New command to execute |
--args <ARG...> | string[] | keep | New command arguments |
--cwd <DIR> | string | keep | Working directory |
--user <USER> | string | keep | Run as a specific user |
--group <GROUP> | string | keep | Group name for organization |
--env <KEY=VAL> / -e | string[] | keep | Replace environment variables |
--env-file <PATH> | path | keep | Env file path ("" clears) |
--autostart | bool | keep | Auto-start on daemon start |
--retry-limit <N> | int | keep | Auto-restart retry limit |
--autorestart <POLICY> | enum | keep | Auto-restart policy: unexpected / true / false |
--exitcodes <N,N> | int[] | keep | Comma-separated successful exit codes |
--startsecs <N> | int | keep | Seconds before exit counts as stable start |
--stopsecs <N> | int | keep | Seconds to wait after SIGTERM before SIGKILL |
--no-health-check | bool | false | Remove the health check configuration |
--cron <EXPR> | string | keep | Cron expression for scheduled tasks |
--on-overlap <POLICY> | enum | keep | Overlap policy: skip / queue / kill |
--catchup <POLICY> | enum | keep | Catchup policy: skip / latest / all |
--jitter <SECS> | int | keep | Max random delay before each cron trigger |
--max-concurrent <N> | int | keep | Max overlapping cron runs allowed at once |
--max-queued <N> | int | keep | Cap on queued cron firings |
--artifact-url <URL> | string | keep | OTA download URL (triggers transactional update when checksum changes) |
--artifact-sha256 <HEX> | string | keep | Expected SHA256 digest of the downloaded bytes |
--artifact-destination <PATH> | path | keep | Absolute path where the binary lives (e.g. /usr/local/bin/my-app); required on first OTA setup, omit if unchanged |
--artifact-extract | bool | false | Unpack .tar.gz / .tgz / .tar / .zip before swap |
--artifact-restart-policy <POLICY> | string | immediate | immediate, manual, signal, or signal:<hup|int|term|quit|usr1|usr2>. signal* requires the program to already have an enabled health_check. |
--artifact-download-timeout <SECS> | int | 60 | Max seconds for this OTA HTTP download. 0 disables the overall transfer deadline (connect still times out at 10s). |
--artifact-verify-timeout <SECS> | int | 60 | Post-swap health window before auto-rollback. 0 disables. |
--cpu <CORES> 💎 | float | keep | CPU quota in cores (isolation plugin, Linux only) |
--memory <MB> 💎 | int | keep | Memory hard limit in MB (isolation plugin, Linux only) |
--memory-warn-percent <PCT> 💎 | int | keep | Pre-kill warning threshold as % of limit (0 off) |
--memory-warn-headroom <MB> 💎 | int | keep | Warn within this many MB of the limit (0 off) |
--memory-high <MB> 💎 | int | keep | Kernel soft limit in MB (0 off, opt-in) |
Full flow: Atomic OTA Updates. Artifact schema (same fields on API / stack / dashboard): Config reference — artifact. Scheduled-task and licensed (isolation plugin) flags behave as in super add; licensed flags warn if the plugin is not loaded.
start
Start a stopped process.
super start <name|@group|id|all> [--wait] [--wait-healthy] [--timeout N]| Flag | Type | Default | Description |
|---|---|---|---|
--wait | bool | false | Poll until the program(s) reach Running/Healthy |
--wait-healthy | bool | false | Poll until the program(s) reach Healthy (readiness check passed). Mutually exclusive with --wait |
--timeout N | int | 5 | Wait timeout in seconds |
--yes / -y | bool | false | Batch safety: skip confirmation (see above) |
--dry-run | bool | false | Batch safety: preview only (see above) |
stop
Stop a running process.
super stop <name|@group|id|all> [--wait] [--timeout N] [--force]| Flag | Type | Default | Description |
|---|---|---|---|
--wait | bool | false | Poll until the program(s) reach Stopped |
--timeout N | int | 5 | Wait timeout in seconds |
--force | bool | false | Skip graceful shutdown and SIGKILL immediately |
--yes / -y | bool | false | Batch safety: skip confirmation (see above) |
--dry-run | bool | false | Batch safety: preview only (see above) |
restart
Restart a process.
super restart <name|@group|id|all> [--wait] [--wait-healthy] [--timeout N]| Flag | Type | Default | Description |
|---|---|---|---|
--wait | bool | false | Poll until the program(s) reach Running/Healthy |
--wait-healthy | bool | false | Poll until the program(s) reach Healthy (readiness check passed). Mutually exclusive with --wait |
--timeout N | int | 5 | Wait timeout in seconds |
--yes / -y | bool | false | Batch safety: skip confirmation (see above) |
--dry-run | bool | false | Batch safety: preview only (see above) |
A multi-target restart (@group, all, or an ID list) is one coordinated two-phase cycle — all targets stop in reverse dependency order, Super waits for them to exit, then all targets start in dependency order (see Dependencies). A single-name restart keeps the simpler stop-then-start semantics on that one program.
signal
Send a specific POSIX signal.
super signal <name|@group|id|all> --sig <SIGNAL>| Flag | Type | Default | Description |
|---|---|---|---|
--sig <SIGNAL> | enum | hup | Signal to send: hup, int, term, kill, quit, usr1, usr2 |
remove (alias rm)
Remove a program configuration. It must be stopped first (see Process Operations).
super remove <name|@group|id|all>Config & Stack
reload
Reload system configuration from super.toml (logging, includes, event hooks), or send SIGHUP to a running program when a target is given.
super reload # reload super.toml (no program restart)
super reload --wait [--timeout N] # reload and wait for affected programs to become Healthy
super reload <name|@group|id|all> # SIGHUP to program(s) — e.g. nginx config reload| Flag | Type | Default | Description |
|---|---|---|---|
--wait | bool | false | Readiness-aware reload: after applying the new config, wait for every affected program to pass its health checks before reporting success. Prints the affected programs and exits non-zero if any is not ready in time |
--timeout N | int | 30 | Readiness wait timeout in seconds |
--yes / -y | bool | false | Batch safety on the SIGHUP target: skip confirmation (see above) |
--dry-run | bool | false | Batch safety on the SIGHUP target: preview only (see above) |
Note
[server].host, port, socket, socket_only and auth_secret are read once when the daemon starts (they build the listeners and the auth gate; the security plugin reads them itself at load). A reload cannot apply them — superd logs a restart required warning naming the changed keys, and the old values stay in effect until you restart superd.
apply
Apply a declarative stack configuration. Stack files are TOML by default (.toml or no extension); legacy JSON (.json) stacks keep working.
super apply <FILE> [--dry-run] [--force-prune]| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run | bool | false | Print the apply diff (keep/update · create · remove) and exit without calling the apply API |
--force-prune | bool | false | Skip the interactive prune gate when the file sets prune = true and programs would be removed. Use only in automation after reviewing --dry-run |
prune safety (irreversible): omitted / prune = false never deletes programs. If the file sets prune = true and any managed program is missing from the stack, the CLI prints a full apply diff first — keep/update, create, and every program that would be REMOVED (removal names are never truncated) — then requires you to type confirmed exactly to continue (y / yes / prune / global --yes are not accepted). The Dashboard Stack Editor uses the same diff + typed-confirmed gate. Automation must pass --force-prune after reviewing --dry-run. Prefer prune = false except for deliberate full-inventory GitOps applies. Stacks loaded via [include] on daemon start / super reload have no prompt — keep prune = false there and use super apply (or the Dashboard) for intentional prunes.
import
Convert a foreign process-manager config file into Super stack services: parse, map fields, print every warning, then apply through the same endpoint as super apply (create-or-update, never prunes). Supported formats: supervisor (INI with [program:*] sections, [include] files, [group:*], %(ENV_…)/%(here)s/%(program_name)s placeholders, numprocs/process_name templates).
super import supervisor /etc/supervisor/conf.d/app.conf --dry-run
super import supervisor /etc/supervisor/conf.d/app.conf --emit-toml app-stack.toml
# Name-collision handling — three ways to choose the mode:
super import supervisor /etc/supervisor/conf.d/app.conf --on-collision rename # flag (scripted)
super import supervisor /etc/supervisor/conf.d/app.conf --on-collision rename --collision-suffix staging # fixed suffix -> web-staging
super import supervisor /etc/supervisor/conf.d/app.conf # interactive prompt offers [y/r/o/N]
super import supervisor /etc/supervisor/conf.d/app.conf --yes --on-collision override # scripted override (update in place)
super import supervisor /etc/supervisor/conf.d/app.conf [--yes] [--no-start] [--remap-logs]| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run | bool | false | Print the import plan (warnings + what would be created/renamed/skipped) and exit. Works without a running daemon (skips the name-collision check) |
--emit-toml <path> | path | — | Write the converted stack as TOML instead of applying (- = stdout). Review it, then super apply |
--no-start | bool | false | Force autostart = false on everything imported so a daemon restart does not launch them; start deliberately with super start |
--on-collision <MODE> | skip | rename | override | skip | What to do when a program name already exists: skip keeps the existing program untouched; rename imports under a fresh name ({name}-{suffix}) so old and new run side by side (gray-release migration); override updates the existing program in place |
--collision-suffix <TEXT> | string | random 6-char hex | With --on-collision rename: fixed suffix instead of a random one (e.g. --collision-suffix staging → web-staging). Reproducible for scripts, but a fixed suffix collides with itself if the same import runs twice (random suffixes never do) |
--remap-logs | bool | false | Rewrite foreign absolute log paths to bare file names so they resolve under storage.log_dir (custom log paths must live there). Without it, foreign paths are kept and rejected by apply-side validation |
--yes / -y | bool | false | Skip the confirmation prompt (y keeps the chosen --on-collision behaviour; it never escalates to override) |
Collision modes in detail. skip (default) is idempotent — rerunning the same import only fills in missing programs. rename picks {name}-{6-char hex} (e.g. web-c41f9a), guarantees the target is unique against the daemon and the rest of the batch, and prints the old→new mapping in both the plan and the final report — use it to run the imported copy next to the live one, verify, then retire the old program manually. override feeds the collided services through the stack API’s create-or-update semantics so the existing program’s config is replaced; interactive runs must type override (or answer o at the prompt) — it is never triggered by --yes alone.
Three ways to choose a mode: the --on-collision flag, the interactive prompt ([y] skip / [r] rename / [o] override / [N] abort — shown whenever collisions exist and no explicit mode was given), or --dry-run + re-run with the chosen flag. The preview always shows the exact outcome before anything is applied:
Import plan:
+ web-worker: /usr/bin/python3 manage.py celery_worker … [autostart, x3, @webapp]
~ web: exists -> will import as web-c41f9a (renamed)
~ db: already exists — skipped (not overwritten)Safety: imports are always prune = false. Anything the converter could not map faithfully — stopsignal=QUIT, per-program log-rotation keys, [eventlistener:*], [fcgi-program:*] — is reported as a warning, never silently dropped. Full field mapping: Import tool.
Provenance: every program created or overridden by an import is stamped source = import:<format> (e.g. import:supervisor), visible via super info (line Source:) and the program detail API. Other write paths stamp similarly: super add → cli:add, super update → cli:update, super apply <file> → stack:<file>, and [include] stacks → include:<file>. This makes “where did this program come from?” answerable months later — for example when auditing what an import touched before retiring the old setup.
export
Export current state as a stack file. Defaults to TOML (the default stack format, round-trips cleanly with super apply / [include]); --format json keeps the legacy JSON shape for tooling that expects it.
super export [--format toml|json]| Flag | Type | Default | Description |
|---|---|---|---|
--format | toml | json | toml | Output format. toml produces the default stack format (inline/nested tables); json keeps the legacy shape for tooling that expects it. |
check
Validate super.toml without a running daemon: TOML syntax, bind/port, log/data paths, licensed-mode requirements, [include] stacks (TOML default, JSON compatible — same program-body checks as create), and rejected leftovers ([webhook], [[program]] tables that Super does not load). Include errors name the file and location: path:line:col: for TOML/JSON syntax, path: services[i] (name=…): field: for invalid services. Non-zero exit if any error is found. Use with super doctor when diagnosing license verification failures.
super check| Flag | Type | Default | Description |
|---|---|---|---|
--file <PATH> / -f | path | ./conf/super.toml (or /etc/super/super.toml) | Path to the config file to validate |
System & Daemon
shutdown
Gracefully shut down the Super daemon and all child processes (works for foreground and --daemon instances).
super shutdowndoctor
One-shot diagnostics: config check (super check output), daemon health, license status, the embedded root key id, and local [server].daemon / pidfile hints (systemd conflict, stale pidfile). See Troubleshooting license verification.
super doctorcompletions (alias completion)
Print a shell completion script for super to stdout. The script is generated from the same argument definition as super --help, so subcommands, aliases (ls, rs, rm, log), and flags stay in sync with the installed binary. No daemon or credentials are needed.
super completions <bash|zsh|fish|elvish|powershell>| Shell | One-time setup |
|---|---|
bash | super completions bash > ~/.local/share/bash-completion/completions/super (requires the bash-completion package; system-wide: /usr/share/bash-completion/completions/super) |
zsh | super completions zsh > "${fpath[1]}/_super" — or write to ~/.zfunc/_super and add fpath+=(~/.zfunc) to ~/.zshrc before compinit. System-wide: /usr/local/share/zsh/site-functions/_super (already in fpath on Debian/Ubuntu and Homebrew zsh) |
fish | super completions fish > ~/.config/fish/completions/super.fish |
elvish | super completions elvish >> ~/.config/elvish/rc.elv |
powershell | super completions powershell | Out-String | Invoke-Expression (or save it and dot-source it from $PROFILE) |
install.sh writes bash, zsh, and fish completions into $PREFIX/share on install (--no-completions skips this); they load automatically when that directory is on the shell’s completion path.
Note
Completions are static: program names, IDs, and groups are not fetched from the daemon while you type (that would put an API call on every Tab). Complete targets yourself — super restart <name|@group|all>.
Authentication
CLI auth talks to the same /api/v1/auth/* surface as the Dashboard. See Authentication.
OSS core auth (single admin secret)
When core auth is active (non-empty auth_secret in conf/super.toml), there is one admin Bearer secret — not an sk-… Access Token. That string is what you pass to login / --token (full detail: Can OSS use --token?):
SECRET='your-auth-secret' # same as auth_secret in toml
super login "$SECRET" # saves ~/.super/cli.json
super login "$SECRET" --url http://127.0.0.1:9002
super list # uses saved Bearer
super --token "$SECRET" list # one-shot: secret = Bearer
export SUPER_TOKEN="$SECRET"
super logoutDefault loopback OSS without auth_secret stays open — no login is needed for super list. Non-loopback binds require auth_secret or the daemon refuses to start.
Multi-user Access Tokens 💎 (security plugin)
💎 Subscription. Token CRUD (
super token …), roles, and day-to-daysk-…credentials require the licensedsecurityplugin.super login/--token/SUPER_TOKENstill work for the bootstrapauth_secretand for Access Tokens once the plugin is loaded.
# Bootstrap only (no Access Tokens yet), or after all tokens were revoked:
super login <auth_secret>
# Day-to-day: use a generated token
super login sk-...
super token list
super token create ci-bot --role operator
super token revoke <id>
super --token sk-... list
export SUPER_TOKEN=sk-...| Flag / form | Type | Default | Description |
|---|---|---|---|
super login <secret> --url <URL> | string | configured server | Server URL saved with the credentials; pins subsequent commands to that endpoint (OSS or licensed) |
super token create --role <ROLE> 💎 | enum | operator | Access token role: viewer, operator, or admin (security plugin) |
auth_secret stays usable by default under the plugin; Admins may explicitly disable it after creating an Admin Access Token. See Optional: disable auth_secret.
Alternative via curl (licensed token create):
# OSS core auth or licensed bootstrap:
curl -X POST http://127.0.0.1:9002/api/v1/auth/login \
-H "Authorization: Bearer <admin-or-auth_secret>"
# 💎 security plugin — create an Access Token:
curl -X POST http://127.0.0.1:9002/api/v1/auth/tokens \
-H "Authorization: Bearer <auth_secret>" \
-H "Content-Type: application/json" \
-d '{"name":"ci-bot","role":"operator"}'
curl -H "Authorization: Bearer sk-..." http://127.0.0.1:9002/api/v1/programsEnvironment variables
superd and the super CLI read a small set of public environment variables (SUPER_ROOT, SUPER_TOKEN, SUPER_LICENSE, SUPER_LICENSE_STRICT) that override or configure daemon behavior without touching super.toml. See Environment Variables.
Was this page helpful? Thanks for your feedback!
Still have questions? Open an issue or browse the source.