Skip to content
Supaterm
Esc
navigateopen⌘Jpreview
On this page

CLI quickstart

Control Supaterm spaces, tab groups, panes, settings, and coding-agent workflows with sp.

sp is the command-line interface bundled with Supaterm. Every pane gets the matching binary on PATH and receives enough context to target its owning app, tab, and pane.

Inspect Supaterm

sp ls
sp diagnostic
sp instance ls

sp ls prints one compact live snapshot with typed s:, g:, t:, and p: refs. Add --json for a flat item list with canonical UUIDs, parent IDs, cwd, and coding-agent state.

Resolve a group icon from the current directory or another directory:

sp group icon
sp group icon ~/code/workspace --json

This command reads local icon declarations first, then common icon paths. It needs no running Supaterm app.

Create terminal surfaces

space_id="$(sp space new --json Work | jq -r '.target.spaceID')"
sp group new Development --in "$space_id" --color blue
tab="$(sp tab new --json --in "$space_id" --focus --cwd ~/code/project --script 'git status')"
sp tab move "$(printf '%s' "$tab" | jq -r '.tabID')" --group Development
pane_id="$(printf '%s' "$tab" | jq -r '.paneID')"
sp pane split --in "$pane_id" right -- npm test

Inside Supaterm, unscoped commands use the caller pane’s original context. Changing UI focus does not change that context, so chained commands should retain IDs and pass explicit targets. These examples use jq to extract typed IDs from JSON output.

When only the new pane UUID is needed, avoid JSON parsing:

pane_id="$(sp pane split --plain --in "$pane_id" right)"

--script starts the account login shell, enters visible text, and returns to that same shell when the script ends. This keeps the tab alive for the commands that use its IDs. Arguments after -- instead launch a process directly with exact arguments and the caller’s PATH, skip shell startup, and close the tab or pane when the process exits.

Control a pane

sp pane send --newline 'echo hello'
sp pane capture --scope scrollback --lines 100
sp pane health
sp pane wait-ready --timeout 5

Discover the version-matched guide

sp skills list
sp skills get core
sp skills get core --full

The bundled guide is authoritative for the installed version. --full includes the complete space, tab, pane, agent, selector, and diagnostic references.

Output modes

Most commands support:

  • --json for structured output
  • --plain for stable unstyled text
  • --quiet to suppress successful output
  • --no-color to keep human-readable output unstyled

Use exit status, not output text, to decide whether a command succeeded.

Continue with targeting and automation recipes.

Last updated on September 1, 2026