Search

Menu

Get Spwn on your computer

On this computer

macOS or Linux. Paste it in a terminal:

curl -fsSL https://spwn.sh/install.sh | bash

It installs two commands, spwn-agents and spwn-machines (short: agents, machines). Then spwn auth, spwn init, spwn agent neo. Docker must be running.

Send it to another computer

A phone can’t run Spwn. Send the command to the computer that will.

Email it to meOpens your mail app with the command. You type the address.

macOS or Linux · Docker running · no Spwn accountGetting started

Docs

Machines

Machines commands

Every command of the Machines app, from the alpha’s reference.

Commands are written with the binary’s name, station. The installer also links it as spwn-machines and adds the alias machines to your shell: the three run the same commands.

Listed from Machines’ own reference at c6fc54b1d. Each command is told in full there, with the rules every command keeps and the exit codes. Read the whole reference

Why it works this way: Machines, the concept, and Declared, never improvised.

Machines

On a machine

  • station overview, in the reference

    This machine at a glance: what needs you first, then each section

    station overview [--all] [--json]

  • station activity, in the reference

    What a machine is doing now: CPU, memory, disk, network, thermal, battery, the busiest processes

    station activity [--all-machines] [--json [--history]]

  • station apps, in the reference

    The catalogue’s apps on this machine, agent skills included; one app’s detail

    station apps [<app>] [--all] [--json] # the apps for this machine, by attention; one app's detail

  • station apps install, in the reference

    Install apps here, in dependency order, then the settings each one brings

    station apps install <app...>

  • station apps update, in the reference

    Update apps; bare, every one with an update available

    station apps update [<app...> | --manager <manager>... | --all-machines]

  • station apps remove, in the reference

    Remove apps from here, through the method that installed them; their data stays

    station apps remove <app...> [--yes]

  • station apps move, in the reference

    Switch an installed app to another of its managers: installed by that one, then the old copy uninstalled

    station apps move <app> --to <manager>

  • station settings, in the reference

    What Machines sets on this machine: applied, changed since, off here

    station settings [--all] [--json] # Set by station: applied, changed since, not applied, off here

    station settings --all-machines [--all] [--json] # the matrix: one row per setting, one column per Mac and workspace

    station settings <setting> [--json] # one setting's detail

  • station settings diff, in the reference

    What Machines would write against what is on this machine

    station settings diff <setting> # what station would write against what is here

  • station settings apply, in the reference

    Apply settings here; bare, every one not applied or changed since; one with values asks them on a terminal

    station settings apply [<setting...>] [--yes] [--all-machines] # bare = every setting not applied or changed since that asks nothing

  • station settings off, in the reference

    Turn settings off here: Machines neither applies nor watches them; a change of yours is kept

    station settings off <setting...> [--yes] # off here: station neither applies nor watches it on this machine

  • station disk, in the reference

    What each app keeps on this machine: misplaced, can rebuild, your data, never touched

    station disk [--json] # the volume, then Misplaced, Can rebuild, Your data, Never touched, with sizes; nothing runs

  • station disk free, in the reference

    Empty what the named apps can rebuild, or every Can rebuild row, with each app’s own command; nothing is lost

    station disk free [<app...>] # empty what an app can rebuild with its own command; bare = every Can rebuild row

  • station disk erase, in the reference

    Erase an app’s data, back to factory; asks its name typed

    station disk erase <app> [--confirm=<app>] # erase an app's data, back to factory; its name typed

  • station disk move, in the reference

    Move a misplaced folder where its app expects it; nothing is lost

    station disk move <folder> # move a misplaced folder where its app expects it

  • station ports, in the reference

    What listens on your machines, who reaches it, and what your VMs share on Tailscale

    station ports [--all-machines] [--all] [--json] # every listening port in its class: Needs you, Public, Private, This machine only

  • station ports share, in the reference

    Reserve a VM’s port now and share it on Tailscale, its URL printed before anything listens; inside a VM, the port alone

    station ports share <vm> <port> [--to <audience>] [--json] # reserve the port now and share it, with local, private or public; inside a VM: station ports share <port>

  • station ports stop-sharing, in the reference

    Stop sharing a VM’s port: its reserved port is released, and it is not shared again until you share it; inside a VM, the port alone

    station ports stop-sharing <vm> <port> [--yes] # release it, and do not share it again until a share; inside a VM: <port>

  • station ports declare, in the reference

    Declare a port public: it is meant to be reached from outside Tailscale, by the route --via names (cloudflare-tunnel, tailscale-funnel, lan)

    station ports declare [<machine>] <port> --via <route> [--url <link>] # declare it public: cloudflare-tunnel, tailscale-funnel or lan

  • station ports undeclare, in the reference

    Take back a port’s declaration: it is red again while it listens where something outside Tailscale reaches it

    station ports undeclare [<machine>] <port> [--yes] # take the declaration back

  • station ports https, in the reference

    Turn HTTPS links on or off on a Mac: on, an HTTP server’s share gets an https:// link with a valid certificate; off, an http:// one

    station ports https on|off [--on <mac>] # HTTPS links on a Mac: https:// with a certificate, or http://

  • station accounts, in the reference

    Who is signed in on a machine, and what the vault granted it: names and scopes, never a token

    station accounts [--all-machines] [--json] # who is signed in on this machine, and how

  • station accounts login, in the reference

    Sign a program in on a machine: its code or link is printed, and you finish at its site

    station accounts login <program> [--on <machine>] # sign a program in: its code or link is printed, you finish at its site

  • station background, in the reference

    The background tasks of this machine: failing, orphans, Machines’, the apps’, unknown

    station background [--all] [--json] # every non-Apple launchd job: Failing, Orphans, then Machines, Known apps, Unknown folded

  • station background remove, in the reference

    Remove a background task of your own: boot it out and delete its plist; a root one is yours to remove

    station background remove <label> [--yes] # a task of your own: boot it out and delete its plist

  • station awake, in the reference

    Keep a Mac from sleeping: every Mac’s mode, a keep-awake for a while, or off

    station awake [--json] # every Mac, this one first: its mode, its guards, its reading

    station awake <for> [--lid] [--battery] # keep this Mac awake: 30m, 1h, 4h, until 18:00 (1 min to 24 h); held by the engine

  • station awake off, in the reference

    End the keep-awake now: the Mac sleeps normally again; Never sleeps stays

    station awake off # end the keep-awake now; Never sleeps stays

A Mac's images and engine

  • station images, in the reference

    The VM images of every Mac, with their versions and the VMs made from each

    station images [--json] # every Mac's, one row per version per Mac

  • station images build, in the reference

    Build images; bare, every image that is missing or whose recipe changed

    station images build [<machinefile...>] [--binary <linux station binary>]

  • station images update, in the reference

    Fetch the newest released version of images; bare, of every image held here

    station images update [<image...>] # the newest released version

  • station images delete, in the reference

    Delete one version of an image, or every version; the VMs made from it stay

    station images delete <image>[@<version>] [--yes]

  • station engine, in the reference

    This Mac’s engine: it runs the VMs, Awake and the sharing, and serves the other Macs

    station engine [--json] # running, its version, up, the VMs it runs, Awake; or stopped, since when and by what

  • station engine stop, in the reference

    Stop everything on this Mac: its VMs (every disk kept), Awake, the sharing, then the engine

    station engine stop [--yes] # Stop everything on this Mac: every running workspace stopped, its disk kept; Awake and the sharing end; then the engine, unless a server runs: it is skipped, and the engine keeps running for it

  • station engine start, in the reference

    Start this Mac’s engine again; the VMs it stopped stay stopped

    station engine start # the engine installed when it is not, restarted when it runs another version, bootstrapped again; the VMs it stopped stay stopped

This terminal

  • station use, in the reference

    Choose the machine this terminal’s commands run on

    station use <machine> # every later command of this terminal runs there, as --on would

    station use - # back to the machine used before

    station use # the machine this terminal uses, and since when

Machines itself