2025-11-25 15:50:22 +02:00
<!-- DO NOT EDIT | GENERATED CONTENT -->
# task send
Send input to a task
## Usage
```console
coder task send [flags] <task> [<input> | --stdin]
```
## Description
```console
2026-03-07 01:36:03 +00:00
Send input to a task. If the task is paused, it will be automatically resumed before input is sent. If the task is initializing, it will wait for the task to become ready.
- Send direct input to a task:
2025-11-25 15:50:22 +02:00
$ coder task send task1 "Please also add unit tests"
2026-03-07 01:36:03 +00:00
- Send input from stdin to a task:
2025-11-25 15:50:22 +02:00
$ echo "Please also add unit tests" | coder task send task1 --stdin
```
## Options
### --stdin
| | |
|------|-------------------|
| Type | <code>bool</code> |
Reads the input from stdin.