restore
Restore user directives from a backup.
Usage
era-code restore [backup] [options]
Arguments
| Argument | Description |
|---|---|
[backup] | Backup name to restore (optional, interactive if omitted) |
Options
| Option | Description |
|---|---|
-q, --quiet | No output (for scripting) |
Examples
Interactive restore
era-code restore
Shows a list of available backups and prompts for selection.
Restore specific backup
era-code restore 2025-01-09T12-00-00
What It Does
- Lists available backups for your project
- Removes the existing Era installation
- Reinitializes Era
- Copies directive files from the backup
- Rebuilds the compiled directives
Backup Location
Backups are stored in:
~/.era/backups/{project-name}/
├── 2025-01-09T12-00-00/
├── 2025-01-08T15-30-00/
└── ...
See Also
- backup - Create a backup