Implement `coder task create` (alias `run`) to create and run a task. **Scope** - Usage: `coder task create <template-or-recipe> --name <str> [--input <text> | stdin] [--wait] [--wait-timeout <dur>] [--param k=v]...` - MVP `<template-or-recipe>`: `<template-uuid>` or `<template-name>[@version]`. Defer recipes (`<recipe-uuid>`, `:<recipe-name>`) to post-MVP. - Support `--input` (alias `--prompt`) from flag or stdin. - `--wait` blocks until status is `idle` or `completed` and streams logs while waiting. - If `--name` omitted, backend generates a name. - Calls `POST /tasks` (maps `input` to prompt parameter). - Include minimal SDK surface + tests. Depends on: #893, #898 References: #838
Activity
feat(cli): add exp task create command (#19492)
johnstcn commentedon Aug 26, 2025
@DanielleMaywood can we close this out?
DanielleMaywood commentedon Aug 26, 2025
@johnstcn I'm not sure as the feature set implemented in coder/coder#19492 doesn't completely match what is set out in the issue.
We only support
--inputand flagThis has not been implemented
DanielleMaywood commentedon Sep 1, 2025
A minimal implementation of this has been achieved, tracking the remainder in #956