Skip to content

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.

Terminal window
droneship undo [OPTIONS] [PATH]
Argument Description
PATH Only this file or directory; the whole workspace when omitted (optional)
Option Description Default
--to N Pick snapshot N from the list
--yes Skip the confirmation (required when not on a terminal)

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:

Terminal window
droneship undo

Put back only one file or directory, from the snapshots that touched it:

Terminal window
droneship undo src/api/handlers.py

Go back to snapshot 3 from the list without the confirmation, as a script would:

Terminal window
droneship undo --to 3 --yes

Undo 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.