repo:restore
Restore a verified backup archive into an empty directory.
Reference for flywheel repo:restore.
Restore a verified backup archive into an empty directory, recreating a local repository. The target directory must be empty. This is a local-only operation: no credentials, no network, nothing published. If the directory's parent is a symbolic link, such as /tmp on macOS, the command refuses with repository_target_parent_symlink and creates nothing; run it again with the real path it suggests.
Command Group
Local Repository
Summary
Restore a verified backup archive into an empty directory.
Usage
flywheel repo:restore [FLAGS] <archive> <empty_directory>Arguments
| Argument | Required | Choices | Description |
|---|---|---|---|
<archive> | Yes | Verified Flywheel backup archive. | |
<empty_directory> | Yes | Absent or empty restore target. |
Required flags
None.
Optional flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--format | FORMAT | json, tsv, csv, table | Output format for command results. | |
--env | PROFILE | Use a configured CLI profile for this invocation. | ||
--out | PATH | Write output to a file path, or use - for stdout. | ||
--open | Open browser-bound URLs when supported. | |||
--no-retry | Disable transient-error retries. | |||
--retry-max | N | Maximum transient-error retry attempts. | ||
--wait | Block on async operations until a terminal state is reached. | |||
--wait-timeout | SECONDS | 600 | Seconds to wait for --wait before timing out. Defaults to 600. | |
--allow-self | Allow mutating the currently active credential. | |||
--timeout | SECONDS | Set the per-request timeout budget in seconds. | ||
--idempotency-key | KEY | Reuse an Idempotency-Key so ambiguous write failures can be retried with the same key. | ||
--force | Force safety-gated operations where supported. | |||
--yes | Skip confirmation prompts for destructive operations. | |||
--debug | Print structured request debugging with secrets masked. | |||
--verbose | Print verbose progress for long-running operations. | |||
-h, --help | Show this help. |
Examples
Restore a verified backup archive into an empty directory.
flywheel repo:restore <archive> <empty_directory> --format=jsonrepo:recover-departed
Clone the repository that now holds a departed node and replay the selected source checkout's unpublished commits there. If interrupted, check the source checkout with repo:status: if its departure rebase is still paused, delete the destination checkout and run recovery again, and never reuse or push it; if the rebase is finished, keep the destination checkout, which holds the recovered work.
repo:revert
Create a new local inverse commit for a target's supported reversible changes; node/edge latest-value fields are skipped, while a target containing an edge removal cannot be reverted because its prior content bytes are unavailable.