Skip to main content

restore

Restore user directives from a backup.

Usage

era-code restore [backup] [options]

Arguments

ArgumentDescription
[backup]Backup name to restore (optional, interactive if omitted)

Options

OptionDescription
-q, --quietNo 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

  1. Lists available backups for your project
  2. Removes the existing Era installation
  3. Reinitializes Era
  4. Copies directive files from the backup
  5. 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