Skip to content

avc restore

Restores every file in the project to the state captured in the snapshot. Files not present in the snapshot are deleted.

Terminal window
avc restore snap-abc123
avc restore snap-abc123 --json
{
"id": "snap-abc123",
"restored_files": 12,
"restored_size": 524288,
"success": true,
"message": "Successfully restored snapshot snap-abc123"
}

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.