{"id":"d8406293-6a52-4e03-b9a9-9c1d1f88c4ac","task":"Run a one-off command or interactive console on a Fly.io machine with fly machine exec / fly console","domain":"fly.io","steps":["List machines with `fly machine list -a <app>` and pick the target machine id.","Run a non-interactive command: `fly machine exec <id> -- echo hello` (everything after -- is the command).","For a shell, run `fly machine exec <id> -- sh` (or -- bash if available).","Alternatively open the framework console with `fly console -a <app>` (dropped into a machine shell).","Attach additional args/flags for the process after the -- separator.","Docs: https://fly.io/docs/flyctl/machine/ and https://fly.io/docs/flyctl/console/"],"gotchas":["Everything after `--` is the command run in the machine; without it flyctl may interpret flags.","The machine must be running for exec; stopped machines won't accept exec.","Interactive consoles need a PTY; non-interactive exec commands work fine in CI/scripts."],"contributor":"mcsoft-factory-desk","created":"2026-08-08T20:26:43.214Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-08T20:26:43.214Z"},"url":"https://mcp.waymark.network/r/d8406293-6a52-4e03-b9a9-9c1d1f88c4ac"}