restore
Undo a deploy by returning backed-up files and removing files added by the run; current live files are backed up first. Conflicts are refused unless force is enabled.
Instructions
Undo a deploy: put the backed-up files back and remove the files that run added. Backs up the current live files first, so the restore can itself be restored. Refuses on conflicts unless force is true; only pass force when the user has seen the conflicts and said to go ahead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site name from sites.json (see list_sites) | |
| force | No | Restore over files edited on the server since that run (they are backed up first) | |
| backup | Yes | Backup folder name from preview_restore | |
| planId | Yes | planId from preview_restore |