@midlyr/sst-puppeteer-cli
v0.3.0
Published
CLI for driving sst dev — TUI-parity control (per-pane restart, deploy waits, log tail) over a long-running session, plus a passthrough for one-shot SST subcommands.
Downloads
276
Readme
@midlyr/sst-puppeteer-cli
A command-line for driving sst dev with TUI-parity control — per-pane restart, deploy waits, log tail — over a long-running session, plus a passthrough for any one-shot SST subcommand.
Concepts
- Session — one running
sst devprocess for a given(projectDir, stage). Created bystart, identified by asessionId. The whole multiplexer, the event stream, the log directory — all scoped to one session. - Command — one pane inside a session, declared under
dev.commandinsst.config.ts(e.g.api,web,worker). Acted on bystart-command/stop-command/restart-command/read-command-logs.
Sessions are stored on disk at ~/.sst-puppeteer/sessions/<sessionId>/ and survive CLI invocations. Calling start for an already-running (projectDir, stage) is idempotent — it returns the existing sessionId with reused: true.
Install
npm install -g @midlyr/sst-puppeteer-cli
sst-puppeteer --helpRequires Node.js ≥22.
Usage
sst-puppeteer start /path/to/app --stage dev # blocks until ready
sst-puppeteer list # active sessions
sst-puppeteer list-commands --session <id> # panes in this session
sst-puppeteer read-command-logs --session <id> --command-name api
sst-puppeteer restart-command --session <id> --command-name api
sst-puppeteer wait-for-next-ready --session <id> # after an edit triggers redeploy
sst-puppeteer stop --session <id> # tear down the session
sst-puppeteer run-sst --project /path/to/app -- deploy --stage prodOutput is JSON by default (use --pretty for human-readable). Sessions resolve by --session <id> or by (--project, --stage).
Exit codes
| Code | Meaning |
| ---- | ------------------- |
| 0 | ok |
| 1 | runtime error |
| 2 | usage error |
| 3 | no matching session |
| 4 | session unhealthy |
Repo: https://github.com/midlyrAI/sst-puppeteer
Disclaimer: Independent community project. Not affiliated with Anomaly Innovations (sst.dev) or Google (Puppeteer). Both names used nominatively.
License: MIT
