# tkt doc, gotcha, decision, suggest, review

The 29 commands of `tkt doc`, `tkt gotcha`, `tkt decision`, `tkt suggest` and `tkt review`, generated from the running code.

## tkt doc

### `tkt doc append <doc_id>`

\[W\] write

Append to the doc (or a section at any heading level)

`--text` `--file` `--section` `--new-block` `--table` `--after`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt doc delete <doc_id>`

\[W\] write

Delete a managed doc

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt doc edit <doc_id>`

\[W\] write

Change a doc's metadata (type, title, description, tags, appliesTo); the body stays

`--type` `--title` `--description` `--tag` `--add-tag` `--remove-tag` `--applies-path` `--applies-keyword` `--applies-group` `--no-applies-to` `--timestamp`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt doc get <doc_id>`

`GET /v1/docs/{doc_id}` · \[R\] read

Show a managed doc, or with --anchor the table rows / section a ref with that anchor delivers

`--anchor`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt doc list`

`GET /v1/docs` · \[R\] read

List all managed docs

`--refs`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt doc new <doc_id>`

\[W\] write

Create a managed doc (an existing one only with --force), with optional metadata

`--body` `--file` `--force` `--type` `--title` `--description` `--tag` `--applies-path` `--applies-keyword` `--applies-group` `--timestamp`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt doc refs <doc_id>`

`GET /v1/docs/{doc_id}/refs` · \[R\] read

List the tickets and groups that reference a doc, and how (contextRef, requiredReading, mention, inherited from a group:\<id\> or epic:\<id\>, or its appliesTo matches them: appliesTo:group:\<id\>, appliesTo:keyword:\<k\>, appliesTo:path:\<glob\>), with the sections they name

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt doc replace <doc_id>`

\[W\] write

Replace one exact, unique text in the doc (e.g. its status line)

`--old` `--new` `--new-file`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

## tkt doc section

### `tkt doc section append <doc_id> <heading>`

\[W\] write

Append to a section at any heading level (= `doc append --section`; created at the end only when the heading exists nowhere)

`--text` `--file` `--new-block`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt doc section set <doc_id> <heading>`

\[W\] write

Replace a section's content, up to the next heading of the same or a higher level (heading kept; created at the end only when the heading exists nowhere)

`--text` `--file`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

## tkt gotcha

### `tkt gotcha delete <gotcha_id>`

\[W\] write

Delete a managed gotcha

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt gotcha edit <gotcha_id>`

\[W\] write

Change a gotcha's body (--body / --file), severity or metadata; only the fields given change

`--body` `--file` `--severity` `--title` `--description` `--tag` `--add-tag` `--remove-tag` `--applies-path` `--applies-keyword` `--applies-group` `--no-applies-to` `--timestamp`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt gotcha get <gotcha_id>`

`GET /v1/gotchas/{gotcha_id}` · \[R\] read

Show a managed gotcha, or with --anchor the section / table rows a ref with that anchor delivers

`--anchor`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt gotcha list`

`GET /v1/gotchas` · \[R\] read

List all managed gotchas

`--refs`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt gotcha new <gotcha_id>`

\[W\] write

Create a managed gotcha (an existing one only with --force), with optional metadata

`--body` `--file` `--severity` `--force` `--title` `--description` `--tag` `--applies-path` `--applies-keyword` `--applies-group` `--timestamp`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt gotcha refs <gotcha_id>`

`GET /v1/gotchas/{gotcha_id}/refs` · \[R\] read

List who references or inherits a gotcha: the groups that name it (requiredReading, contextRef), the tickets under them (group:\<id\>), an epic's children (epic:\<id\>), and the tickets that name it themselves (contextRef, mention) or that its appliesTo matches (appliesTo:group:\<id\>, appliesTo:keyword:\<k\>, appliesTo:path:\<glob\>)

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

## tkt gotcha section

### `tkt gotcha section append <gotcha_id> <heading>`

\[W\] write

Append after the section's last line, at any heading level (no blank line unless --new-block; created at the end only when the heading exists nowhere)

`--text/--body` `--file` `--new-block`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

### `tkt gotcha section set <gotcha_id> <heading>`

\[W\] write

Replace a section's content, up to the next heading of the same or a higher level (heading kept; created at the end only when the heading exists nowhere)

`--text/--body` `--file`

[Guide: Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs)

## tkt decision

### `tkt decision edit <decision_id>`

`PATCH /v1/decisions/{decision_id}` · \[W\] write

Change a decision's fields, status (validated transitions), relationships or body sections

`--title` `--status` `--superseded-by` `--affects` `--add-affects` `--remove-affects` `--inherit-affects` `--no-inherit-affects` `--until` `--clear-until` `--origin` `--no-link` `--decision` `--rationale` `--refines` `--extends` `--amends` `--supersedes` `--exception-to` `--based-on` `--clear` `--description`

[Guide: Decisions](/en/docs/concepts/decisions.md#context-decisions)

### `tkt decision get <decision_id>`

`GET /v1/decisions/{decision_id}` · \[R\] read

Show one decision: its fields and relationships both ways, then ## Decision and ## Rationale

[Guide: Decisions](/en/docs/concepts/decisions.md#context-decisions)

### `tkt decision list`

`GET /v1/decisions` · \[R\] read

List decisions in id order, optionally by status or affected doc

`--status` `--affects` `--md`

[Guide: Decisions](/en/docs/concepts/decisions.md#context-decisions)

### `tkt decision new <title>`

`POST /v1/decisions` · \[W\] write

Record a new decision; the store assigns its id (D\<n\>)

`--decision` `--rationale` `--status` `--date` `--affects` `--inherit-affects` `--no-inherit-affects` `--until` `--origin` `--no-link` `--provenance` `--refines` `--extends` `--amends` `--supersedes` `--exception-to` `--based-on` `--description`

[Guide: Decisions](/en/docs/concepts/decisions.md#context-decisions)

### `tkt decision refs <decision_id>`

`GET /v1/decisions/{decision_id}/refs` · \[R\] read

List the tickets, groups, milestones, docs and decisions that reference a decision, and how (contextRef, requiredReading, mention, a bare D\<n\>, or a relationship), and the tickets it points at itself (origin; affects:\<ref\> when their bundle carries a doc or gotcha it affects)

[Guide: Decisions](/en/docs/concepts/decisions.md#context-decisions)

### `tkt decision renumber <decision_id> [new_id]`

\[W\] write

Give a decision a new id; every reference follows

`--yes` `--dry-run`

[Guide: Decisions](/en/docs/concepts/decisions.md#context-decisions)

### `tkt decision resolve-conflict <path>`

\[L\] local

Split a decision file `git merge` left with conflict markers into two decisions

`--split` `--as` `--yes` `--dry-run`

[Guide: Git: merge drivers and after a merge](/en/docs/guides/team/git.md#maint-merge-damage)

## tkt suggest

### `tkt suggest dismiss [TICKET_ID] REF [ref]`

\[W\] write

Never show a suggestion again, until the suggested item changes (stored in reviews/)

`--group` `--undo`

[Guide: Hints, lint and suggestions](/en/docs/concepts/guard.md#context-suggest)

### `tkt suggest refs [ticket_id]`

\[R\] read

List ref suggestions

`--group` `--open/--include-closed` `--llm/--no-llm` `--llm-cmd` `--llm-provider` `--refresh`

[Guide: Hints, lint and suggestions](/en/docs/concepts/guard.md#context-suggest)

### `tkt suggest value [ticket_id]`

\[R\] read

Propose a business value (1\|2\|3\|5\|8) with a rationale (#117)

`--group` `--open/--include-closed` `--llm/--no-llm` `--llm-cmd` `--llm-provider` `--refresh`

[Guide: Tickets in bulk](/en/docs/guides/plan/import.md#plan-from-docs)

## tkt review

### `tkt review [ref]`

`GET /v1/reviews/{ref:path}` · \[R\] read

List the open reviews of an item and the ones it opened; resolve them (a dry run without --apply)

`--unanchored` `--older` `--ack` `--all` `--all-from` `--code` `--before` `--outcome` `--superseded-by` `--apply` `--undo`

[Guide: Reviews and impact](/en/docs/concepts/reviews.md#context-review)
