avc restore
Restores every file in the project to the state captured in the snapshot. Files not present in the snapshot are deleted.
avc restore snap-abc123avc restore snap-abc123 --jsonJSON output
Section titled “JSON output”{ "id": "snap-abc123", "restored_files": 12, "restored_size": 524288, "success": true, "message": "Successfully restored snapshot snap-abc123"}Safety
Section titled “Safety”Branch-aware behaviour
Section titled “Branch-aware behaviour”On a non-main branch, restore writes to the workspace directory (.avc/workspaces/<branch>/), not the real project root. The real project is untouched.
On main, restore writes to the project root directly.
See also
Section titled “See also”avc restore-file— restore one file instead of the whole snapshotavc diff-current— preview what a restore would change