> ## Documentation Index
> Fetch the complete documentation index at: https://vespin.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Description

> vespin description

Print, write, and restore a task's description as Markdown. Every command also takes the global flags `--json`, `-q`, `-w`, and `--url`, described in [CLI](https://vespin.dev/docs/cli.md#scripts-and-coding-agents).

## vespin description show

Print a task's description as Markdown, now or at one revision

```sh theme={null}
vespin description show [flags] <task>
```

| Argument or flag | What it does |
| - | - |
| `task string` | The task, by its id, its number, or its key such as ACME-42 |
| `--revision, -r integer` | The revision's number, as vespin description history lists it, to print the description as it stood after it |

```sh theme={null}
# Print the description
vespin description show ACME-42

# Save it to edit
vespin description show ACME-42 | jq -r .body > description.md

# Print it as it stood after revision 3
vespin description show ACME-42 --revision 3
```

## vespin description edit

Replace a task's description with Markdown from a file or stdin

```sh theme={null}
vespin description edit [flags] <task>
```

| Argument or flag | What it does |
| - | - |
| `task string` | The task, by its id, its number, or its key such as ACME-42 |
| `--file, -F string` | The whole description, as Markdown, from a file or - for stdin |

```sh theme={null}
# Write the description from a file
vespin description edit ACME-42 -F description.md

# Edit it in a pipe
vespin description show ACME-42 | jq -r .body | sed 's/TODO/Done/' | vespin description edit ACME-42 -F -
```

An agent may write the description while you edit it. Its change is kept where it touches other lines. Where it touches the same lines, nothing is saved: run `vespin description show` and write it again.

## vespin description history

List a task's description history, the newest revisions first

```sh theme={null}
vespin description history [flags] <task>
```

| Argument or flag | What it does |
| - | - |
| `task string` | The task, by its id, its number, or its key such as ACME-42 |
| `--before integer` | Read the older revisions before this one: the earlier a page printed |

```sh theme={null}
# List the revisions
vespin description history ACME-42
```

## vespin description restore

Put one revision back as a task's description, kept as a new revision you can undo

```sh theme={null}
vespin description restore [flags] <task> <revision>
```

| Argument or flag | What it does |
| - | - |
| `task string` | The task, by its id, its number, or its key such as ACME-42 |
| `revision integer` | The revision's number, as vespin description history lists it |

```sh theme={null}
# Put revision 3 back
vespin description restore ACME-42 3
```

To comment on words of the description, see [`vespin comment add`](https://vespin.dev/docs/cli/tasks#vespin-comment-add).
