# tkt doctor, reorg, index, store, config, export, git, worktree

A `tkt doctor`, `tkt reorg`, `tkt index`, `tkt store`, `tkt config`, `tkt export`, `tkt git` és `tkt worktree` 21 parancsa, a futó kódból generálva.

## tkt doctor

### `tkt doctor`

\[R\] read

Check the whole store's integrity; exit 0 clean · 1 info · 2 warning · 3 error · 4 could not run (no workspace)

`--strict` `--fix-index` `--fix-times`

[Útmutató: Doctor és index](/docs/guides/maintenance/doctor.md#maint-doctor)

## tkt reorg

### `tkt reorg COMMAND [ARGS]...`

\[R\] read

Migrate an old store: propose what brings it up to this tkt's rules, and apply the accepted proposals (all-or-nothing, with a backup)

`--group` `--since` `--only` `--plan` `--interactive/--no-interactive` `--yes` `--impact` `--accept-context-loss` `--worktree-dir`

[Útmutató: A store migrálása](/docs/guides/maintenance/reorg.md#maint-reorg)

### `tkt reorg apply <plan_file>`

\[W\] write

Apply a plan file all-or-nothing: every chosen option, or nothing at all

`--dry-run` `--no-backup` `--accept-context-loss` `--worktree-dir`

[Útmutató: A store migrálása](/docs/guides/maintenance/reorg.md#maint-reorg)

### `tkt reorg backups`

\[R\] read

List reorg backups, oldest first

[Útmutató: A store migrálása](/docs/guides/maintenance/reorg.md#maint-reorg)

### `tkt reorg dismiss <proposal_id>`

\[W\] write

Never propose this again (stored in reviews/\_store.yaml); the last migration proposal dismissed raises the store's data level

`--undo`

[Útmutató: A store migrálása](/docs/guides/maintenance/reorg.md#maint-reorg)

### `tkt reorg restore [name]`

\[W\] write

Put the store back to a reorg backup (every later change to tickets, groups, docs is lost)

`--yes`

[Útmutató: A store migrálása](/docs/guides/maintenance/reorg.md#maint-reorg)

## tkt index

### `tkt index rebuild`

`POST /v1/index:rebuild` · \[L\] local

Rebuild the SQLite index from scratch (full scan of Markdown store) and re-check every review: an edit outside tkt, a git merge or a new tkt version may have changed what an item builds on (`tkt review`)

`--quiet`

[Útmutató: Doctor és index](/docs/guides/maintenance/doctor.md#maint-index)

### `tkt index status`

`GET /v1/index/status` · \[L\] local

Show index health (row counts, db path)

[Útmutató: Doctor és index](/docs/guides/maintenance/doctor.md#maint-index)

## tkt store

### `tkt store init`

`POST /v1/projects/{project_id}/store` · \[L\] local

Create the project's store on the server and point this directory at it (`.aitodo.yaml`: store: server)

`--server` `--project` `--register` `--name` `--as` `--operator`

[Útmutató: Store a szerveren](/docs/guides/team/server-store.md#team-server-store)

### `tkt store move`

`POST /v1/projects/{project_id}/store:import` · \[L\] local

Move the store between this repo and the server; it lives in one place at a time (#153)

`--to` `--dir` `--force-claims` `--force-decompositions`

[Útmutató: Store költöztetése](/docs/guides/maintenance/store-move.md#maint-store-move)

## tkt config

### `tkt config get <key>`

`GET /v1/workspace/config` · \[L\] local

Print a key's value; a key not in the file prints its default with `(default)`

[Útmutató: Konfiguráció](/docs/reference/config.md#maint-config)

### `tkt config list`

`GET /v1/workspace/config` · \[L\] local

Every known key with its value and source (file / default)

[Útmutató: Konfiguráció](/docs/reference/config.md#maint-config)

### `tkt config set <key> <value>`

`PATCH /v1/workspace/config` · \[L\] local

Write a key; only its line in config.yaml changes

[Útmutató: Konfiguráció](/docs/reference/config.md#maint-config)

### `tkt config unset <key>`

`PATCH /v1/workspace/config` · \[L\] local

Remove a key from config.yaml, so its default applies again

[Útmutató: Konfiguráció](/docs/reference/config.md#maint-config)

## tkt export

### `tkt export`

\[L\] local

Export the store for other tools; the store itself is not changed

`--okf` `--describe` `--llm-cmd` `--llm-provider` `--refresh`

[Útmutató: Export OKF-be](/docs/guides/maintenance/export.md#maint-export)

## tkt git

### `tkt git install`

\[L\] local

Set up the merge drivers in the repo that holds the store, for every worktree at once

`--dry-run`

[Útmutató: Git: merge driverek és merge után](/docs/guides/team/git.md#team-git)

### `tkt git merge-counters <base> <ours> <theirs> <path>`

\[L\] local

The counters.json merge driver git runs: the per-key maximum, and the shared counter raised to it

### `tkt git merge-reviews <base> <ours> <theirs> <path>`

\[L\] local

The review-file merge driver git runs

### `tkt git uninstall`

\[L\] local

Remove exactly what `tkt git install` added for this store: its attributes block, its hook blocks, and the merge.aitodo-\* config once no store's block is left

`--dry-run`

[Útmutató: Git: merge driverek és merge után](/docs/guides/team/git.md#team-git)

## tkt worktree

### `tkt worktree done <ticket_id>`

\[L\] local

Give the ticket's claim back (from any worktree); --remove also removes its worktree once clean, else refuses (ERR\_WORKTREE\_REFUSED) and says why

`--remove` `--assignee` `--force`

[Útmutató: Párhuzamos munka](/docs/guides/team/worktrees.md#team-worktrees)

### `tkt worktree new <ticket_id> [slug]`

\[L\] local

Branch (worktreeBranch, default feat/{id}-{slug}) + worktree (worktreeDir, default ../{repo}-{id}) + the claim there, in one step; then the worktreeSetup script

`--base` `--assignee` `--no-setup`

[Útmutató: Párhuzamos munka](/docs/guides/team/worktrees.md#team-worktrees)
