Restoring Projects
Bring archived projects back to life with a single command.
Restore a Project
Restore a project from your archive organization:
wb restore my-projectThis will:
- Clone the repository from the archive organization
- Optionally unarchive it on GitHub (make it writable again)
- Optionally remove it from the archive organization
Options
Custom Directory
Clone to a specific location:
wb restore my-project ./projects/my-projectUnarchive on GitHub
Remove the archived status, making the repo writable:
wb restore my-project --unarchiveRemove from Archive
Delete the repository from the archive org after restoring:
wb restore my-project --rmFull Restoration
Combine options for a complete restoration:
wb restore my-project --unarchive --rmThis restores the project, makes it writable, and cleans up the archive.
Skip Confirmation
wb restore my-project -yDry Run
wb restore my-project --dry-runArchive Organization
By default, projects are restored from markmals-archive. Specify a different organization:
wb restore my-project --org my-archive-orgAfter Restoring
Once restored, the project is ready to use:
cd my-project
mise install
mise run devThe .workbench.toml file preserves all project configuration, so Workbench commands work immediately.
Workflow Example
Complete Archive & Restore Cycle
# Archive a completed project
wb archive ./my-website -y
# ... months later ...
# Restore when needed again
wb restore my-website --unarchive --rm
# Back to development
cd my-website
mise run devTroubleshooting
Repository not found
Ensure the repository exists in the archive organization:
gh repo list markmals-archivePermission denied
Make sure GitHub CLI has permission to:
- Clone from the archive organization
- Delete repositories (if using
--rm) - Modify repository settings (if using
--unarchive)
Already exists locally
If the target directory already exists, Workbench will error:
Error: directory ./my-project already existsEither remove it or specify a different path:
wb restore my-project ./my-project-restored