CLI reference · Commands
talos checkpoint
The file checkpoints TALOS takes before it changes files: list, show, undo, redo.
Reference for TALOS CLI 0.6.18
Before a turn changes files, TALOS saves what it will touch, outside your repository and outside Git. /undo in the interactive screen uses the same checkpoints.
| Operation | What it does |
|---|---|
list | Lists the checkpoints of the project, newest first. |
show | Shows a checkpoint: operation, state, files covered and files excluded. |
undo | Restores the files as they were before a checkpoint; without an id, the latest. |
redo | Applies again the changes an undo removed; without an id, the latest. |
prune | Deletes old checkpoints, keeping the newest ones of each project, and the saved file contents no checkpoint uses any more; says what was kept and how much space was freed. |
Lists the checkpoints of the project, newest first.
talos checkpoint listShows a checkpoint: operation, state, files covered and files excluded.
talos checkpoint show <id>Arguments
id- The id
talos checkpoint listshows.
Restores the files as they were before a checkpoint; without an id, the latest.
talos checkpoint undo [id]Arguments
idoptional- Checkpoint id.
- Refused while a session is running.
Exit codes and errors1
| Code | Exit | Meaning |
|---|---|---|
CHECKPOINT_ACTIVE_RUN_CONFLICT | 70 | TALOS could not finish this action. Try again; if it happens again, keep the log for a report. |
Applies again the changes an undo removed; without an id, the latest.
talos checkpoint redo [id]Arguments
idoptional- Checkpoint id.
- Refused while a session is running.
Exit codes and errors1
| Code | Exit | Meaning |
|---|---|---|
CHECKPOINT_ACTIVE_RUN_CONFLICT | 70 | TALOS could not finish this action. Try again; if it happens again, keep the log for a report. |
Deletes old checkpoints, keeping the newest ones of each project, and the saved file contents no checkpoint uses any more; says what was kept and how much space was freed.
talos checkpoint prune [--keep <count>] [--days <days>] [--dry-run]Options
-
--keep <value> - How many checkpoints to keep for each project, at least 1. Default 20.
-
--days <value> - Also delete the kept ones older than this many days.
-
--dry-run - Say what would be deleted, and delete nothing.
- It covers the checkpoints of every project, not only the current one. A checkpoint still open, or one being restored, is always kept.