Skip to main content

spacectl: Add --wait / exit-on-complete for stack tasks

In agent workflows, models often use spacectl stack task --tail, which doesn’t exit and stalls agents.

Add a --wait (or similar) mode that returns when the task completes (with success/failure exit code) and document it as the recommended option for automation/agents.

Example: spacectl stack task --id <stack> --wait "terraform import ..." exits when done; --tail remains for interactive streaming.

Status: ❌ Rejected2 comments

Log in to comment and vote

Comments2

  • Aleksandra Cieslak

    Team•

    Jul 29

    Hi, following up here after checking with engineering. Unfortunately, adding a --wait / exit-on-complete mode isn't something we can support technically. I'm closing this request, but if this becomes a bigger blocker for automation use cases, let us know.

  • Black Breeze

    •

    Feb 24

    Thanks for taking the time to write this up Justyna. I opened a ticket against the dev team to add this option. That said, if you want to flex your vibe coding muscle, this should be a 5 minute job for your Claude Code/Cursor installation. The repo is public after all -

    https://github.com/spacelift-io/spacectl Wanna give it a try?