droneship undo
Put the sandbox’s files back the way an earlier snapshot had them.
For a directory copied in with droneship run claude --local. Snapshots are taken on a timer while the agent works (--snapshot-every), at copy-in, and before every undo, so an undo is itself one undo away. Files only: the workspace’s own .git is left alone, so a commit the agent made stays, and droneship diff still reports what changed since your last copy-in or pull.
droneship undo [OPTIONS] [PATH]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
PATH |
Only this file or directory; the whole workspace when omitted (optional) |
Options
Section titled “Options”| Option | Description | Default |
|---|---|---|
--to N |
Pick snapshot N from the list | |
--yes |
Skip the confirmation (required when not on a terminal) |
Examples
Section titled “Examples”List the snapshots of this directory’s sandbox, newest first, and pick one to go back to. It shows what would change and asks before changing anything:
droneship undoPut back only one file or directory, from the snapshots that touched it:
droneship undo src/api/handlers.pyGo back to snapshot 3 from the list without the confirmation, as a script would:
droneship undo --to 3 --yesUndo changes the files in the sandbox, not your copy. To bring the result back, follow it with droneship pull.
Generated from the CLI. Verified against droneship 1.19.0 plus forge#459.