Skip to content

Tasks: CLI pause command #1263

Closed
coder/coder
#22012

Description

@mafredri

Repo: coder/coder

Scope: Add coder tasks pause command.

Changes:

  • Add pause subcommand to task command group in cli/task.go
  • Call pause endpoint, wait for build completion (consistent with coder stop)
  • Show build progress via cliui.WorkspaceBuild()
  • Final message: "The {task} task has been paused."

Files:

  • cli/task.go
  • cli/task_test.go

Acceptance criteria:

  • coder tasks pause my-task pauses the task
  • Build progress displayed during pause
  • Success message on completion
  • Error handling for invalid states (already paused, etc.)
  • Help text documents the command

Dependencies:

References:

Activity

  1. added theissue type on Jan 15, 2026
  2. added a commit that references this issue on Feb 9, 2026
    de4d5f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions