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
station machines, in the referenceAll machines: every Mac, its VMs under it; one machine’s Overview
station machines [--json]# All machines: every Mac, its VMs under it, then Needs youstation machines <machine> [--json]# that machine's Overview, as station overview --on <machine>station machines add, in the referenceAdd another Mac by its Tailscale name, once its ssh and its station answer
station machines add <mac> [--user <login>] [--key <file>]station machines forget, in the referenceForget another Mac here: its ssh block goes, nothing changes on it
station machines forget <mac> [--yes]station machines create, in the referenceMake a workspace on this Mac, ephemeral or --persistent; or a server, always on, with --server
station machines create [<name>] [--persistent] [--image base-ubuntu | --from <machinefile>] [--for <purpose>] [--cpus <n>] [--memory <size>] [--disk <size>] [--network nat|bridged]station machines create <name> --server [--for <purpose>] [--cpus <n>] [--memory <size>] [--disk <size>] [--check <url|host:port>]station machines start, in the referenceStart a stopped VM, with its disk as it was left; a server is always on again
station machines start <vm>station machines stop, in the referenceStop a VM; it is kept, with its disk, until started or deleted
station machines stop <vm> [--yes | --confirm=<name>]station machines restart, in the referenceRestart a Mac with a FileVault-aware reboot, or a VM with a poweroff and a start
station machines restart <machine> [--yes | --confirm=<name>]station machines edit, in the referenceChange a VM’s CPUs, memory or disk, applied when it next starts; or a server’s health check
station machines edit <vm> [--cpus <n>] [--memory <size>] [--disk <size>] [--check <url|host:port> | --no-check]station machines ssh, in the referencePrint the ssh command that reaches a machine
station machines ssh <machine>station machines log, in the referencePrint the lines a VM’s runs wrote: its console, then its hypervisor’s own
station machines log <vm>station machines cleanup, in the referenceDelete the stopped ephemeral workspaces
station machines cleanup [<vm>...] [--yes]station machines delete, in the referenceDelete a workspace: its disk, its record, its reserved ports and its grants
station machines delete <vm> [--confirm=<name>]station machines unlock, in the referenceUnlock a Mac’s disk after a power cut: you type its password into macOS’s own prompt
station machines unlock <mac>station machines wake, in the referenceWake a Mac that sleeps: a Wake-on-LAN packet sent from this Mac
station machines wake <mac> [--tell]station machines remind, in the referenceTell me once a Mac that sleeps answers again, nothing sent to it
station machines remind <mac>station journal, in the referenceWhat was done on every Mac and its VMs, by day, kept thirty days
station journal [--json]# what was done on every Mac and its VMs, by daystation journal --on <mac> [--json]# that Mac and its VMs alone
On a machine
station overview, in the referenceThis machine at a glance: what needs you first, then each section
station overview [--all] [--json]station activity, in the referenceWhat a machine is doing now: CPU, memory, disk, network, thermal, battery, the busiest processes
station activity [--all-machines] [--json [--history]]station apps, in the referenceThe 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 detailstation apps install, in the referenceInstall apps here, in dependency order, then the settings each one brings
station apps install <app...>station apps update, in the referenceUpdate apps; bare, every one with an update available
station apps update [<app...> | --manager <manager>... | --all-machines]station apps remove, in the referenceRemove apps from here, through the method that installed them; their data stays
station apps remove <app...> [--yes]station apps move, in the referenceSwitch 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 referenceWhat Machines sets on this machine: applied, changed since, off here
station settings [--all] [--json]# Set by station: applied, changed since, not applied, off herestation settings --all-machines [--all] [--json]# the matrix: one row per setting, one column per Mac and workspacestation settings <setting> [--json]# one setting's detailstation settings diff, in the referenceWhat Machines would write against what is on this machine
station settings diff <setting># what station would write against what is herestation settings apply, in the referenceApply 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 nothingstation settings off, in the referenceTurn 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 machinestation disk, in the referenceWhat 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 runsstation disk free, in the referenceEmpty 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 rowstation disk erase, in the referenceErase 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 typedstation disk move, in the referenceMove a misplaced folder where its app expects it; nothing is lost
station disk move <folder># move a misplaced folder where its app expects itstation ports, in the referenceWhat 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 onlystation ports stop-sharing, in the referenceStop 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 referenceDeclare 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 lanstation ports undeclare, in the referenceTake 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 backstation ports https, in the referenceTurn 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 referenceWho 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 howstation accounts login, in the referenceSign 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 sitestation background, in the referenceThe 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 foldedstation background remove, in the referenceRemove 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 pliststation awake, in the referenceKeep 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 readingstation awake <for> [--lid] [--battery]# keep this Mac awake: 30m, 1h, 4h, until 18:00 (1 min to 24 h); held by the enginestation awake off, in the referenceEnd 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 referenceThe 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 Macstation images build, in the referenceBuild images; bare, every image that is missing or whose recipe changed
station images build [<machinefile...>] [--binary <linux station binary>]station images update, in the referenceFetch the newest released version of images; bare, of every image held here
station images update [<image...>]# the newest released versionstation images delete, in the referenceDelete one version of an image, or every version; the VMs made from it stay
station images delete <image>[@<version>] [--yes]station engine, in the referenceThis 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 whatstation engine stop, in the referenceStop 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 itstation engine start, in the referenceStart 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 referenceChoose the machine this terminal’s commands run on
station use <machine># every later command of this terminal runs there, as --on wouldstation use -# back to the machine used beforestation use# the machine this terminal uses, and since when
Machines itself
station init, in the referenceMake this machine known to station: its name, the ~/.zshrc block, the XDG folders
station init [--name <name>] [--machinefile <name|path>] [--yes]station plan, in the referenceWhat station apply would do here: what it asks of you, installs, sets and adopts
station plan [--machinefile <name|path>] [--phase image|boot|apply] [--diff] [--json]station apply, in the referenceCarry out the plan: install, set and adopt what the machine’s Machinefile lists
station apply [--machinefile <name|path>] [--phase image|boot|apply] [--remove] [--yes]station drift, in the referenceHow this machine differs from its Machinefile: each package present, absent, outdated, changed, not managed, extra
station drift [--machinefile <name|path>] [--json]station upgrade, in the referenceUpdate every app the machine’s Machinefile carries, the managers first, and write the lock anew
station upgrade [--machinefile <name>] [--json]station explain, in the referenceEach value of the machine’s Machinefile, and the origin it comes from
station explain [<key>] [--machinefile <name>]station --version, in the referencePrint station’s version and the commit it was built from
station --versionstation help, in the referenceThe help of station, or of one command
station help [command]