コンテンツにスキップ
#0847
Terminal

Deploy from your wrist

The fix is merged. You're walking to lunch. You raise your wrist, tap a Shortcut named Deploy, and the watch makes an HTTP request.

It's a POST to the terminal's execute endpoint with ephemeral=true and a body of {"command": "./deploy.sh", "wait": true}. Ephemeral means the container spawns a throwaway shell with its own terminal ID, skips the desktop initialization a GUI session would need, runs the script, returns the output, and cleans up after itself. The watch shows the last line: deployed 2.4.1. Nothing is left running, nothing to close.

The token lives in the Shortcut. There is no SSH client for a watch and there doesn't need to be. There's an HTTP client, and that was always enough.

The wrist has no terminal; it has a POST, and the POST has a shell.