mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 22:32:12 +03:00
368 lines
3.8 KiB
Markdown
368 lines
3.8 KiB
Markdown
---
|
|
name: cli-backup-sync
|
|
description: Backup and restore OmniRoute data from the CLI. Trigger incremental snapshots, sync to cloud storage, manage backup schedules, and restore from archive files.
|
|
---
|
|
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
|
|
|
|
## Overview
|
|
|
|
Backup and restore OmniRoute data from the CLI. Trigger incremental snapshots, sync to cloud storage, manage backup schedules, and restore from archive files.
|
|
|
|
## Quick install
|
|
|
|
```bash
|
|
npm install -g omniroute # or: npx omniroute
|
|
omniroute --version
|
|
```
|
|
|
|
## Subcommands
|
|
|
|
### `backup`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute backup
|
|
```
|
|
|
|
### `backup create`
|
|
|
|
**Flags:**
|
|
|
|
- `--name <name>`
|
|
- `--cloud`
|
|
- `--encrypt`
|
|
- `--key-file <path>`
|
|
- `--exclude <pattern>`
|
|
- `--retention <n>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute backup create
|
|
```
|
|
|
|
### `backup auto`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute backup auto
|
|
```
|
|
|
|
### `backup enable`
|
|
|
|
**Flags:**
|
|
|
|
- `--cron <expr>`
|
|
- `--cloud`
|
|
- `--encrypt`
|
|
- `--retention <n>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute backup enable
|
|
```
|
|
|
|
### `backup disable`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute backup disable
|
|
```
|
|
|
|
### `backup status`
|
|
|
|
**Flags:**
|
|
|
|
- `--name <name>`
|
|
- `--cloud`
|
|
- `--encrypt`
|
|
- `--key-file <path>`
|
|
- `--exclude <pattern>`
|
|
- `--retention <n>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute backup status
|
|
```
|
|
|
|
### `backup restore [backupId]`
|
|
|
|
**Flags:**
|
|
|
|
- `--list`
|
|
- `--yes`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute backup restore [backupId]
|
|
```
|
|
|
|
### `task`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute task
|
|
```
|
|
|
|
### `cloud create`
|
|
|
|
**Flags:**
|
|
|
|
- `--title <t>`
|
|
- `--prompt <p>`
|
|
- `--prompt-file <path>`
|
|
- `--repo <url>`
|
|
- `--branch <b>`
|
|
- `--metadata <json>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud create
|
|
```
|
|
|
|
### `cloud list`
|
|
|
|
**Flags:**
|
|
|
|
- `--status <s>`
|
|
- `--limit <n>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud list
|
|
```
|
|
|
|
### `cloud get <taskId>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud get <taskId>
|
|
```
|
|
|
|
### `cloud status <taskId>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud status <taskId>
|
|
```
|
|
|
|
### `cloud cancel <taskId>`
|
|
|
|
**Flags:**
|
|
|
|
- `--yes`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud cancel <taskId>
|
|
```
|
|
|
|
### `cloud approve <taskId>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud approve <taskId>
|
|
```
|
|
|
|
### `cloud message <taskId> <message>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud message <taskId> <message>
|
|
```
|
|
|
|
### `cloud sources <taskId>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud sources <taskId>
|
|
```
|
|
|
|
### `cloud cloud`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud cloud
|
|
```
|
|
|
|
### `cloud agents`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud agents
|
|
```
|
|
|
|
### `cloud auth`
|
|
|
|
**Flags:**
|
|
|
|
- `--no-browser`
|
|
- `--timeout <ms>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute cloud auth
|
|
```
|
|
|
|
### `sync`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync
|
|
```
|
|
|
|
### `sync push`
|
|
|
|
**Flags:**
|
|
|
|
- `--target <t>`
|
|
- `--bundle <list>`
|
|
- `--dry-run`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync push
|
|
```
|
|
|
|
### `sync pull`
|
|
|
|
**Flags:**
|
|
|
|
- `--source <s>`
|
|
- `--merge`
|
|
- `--replace`
|
|
- `--dry-run`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync pull
|
|
```
|
|
|
|
### `sync diff`
|
|
|
|
**Flags:**
|
|
|
|
- `--source <s>`
|
|
- `--target <t>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync diff
|
|
```
|
|
|
|
### `sync bundle <outPath>`
|
|
|
|
**Flags:**
|
|
|
|
- `--include <list>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync bundle <outPath>
|
|
```
|
|
|
|
### `sync import <bundlePath>`
|
|
|
|
**Flags:**
|
|
|
|
- `--dry-run`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync import <bundlePath>
|
|
```
|
|
|
|
### `sync initialize`
|
|
|
|
**Flags:**
|
|
|
|
- `--from-cloud`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync initialize
|
|
```
|
|
|
|
### `sync tokens`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync tokens
|
|
```
|
|
|
|
### `sync list`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync list
|
|
```
|
|
|
|
### `sync create`
|
|
|
|
**Flags:**
|
|
|
|
- `--name <n>`
|
|
- `--scope <s>`
|
|
- `--ttl <duration>`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync create
|
|
```
|
|
|
|
### `sync revoke <id>`
|
|
|
|
**Flags:**
|
|
|
|
- `--yes`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync revoke <id>
|
|
```
|
|
|
|
### `sync status`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync status
|
|
```
|
|
|
|
### `sync resolve`
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
omniroute sync resolve
|
|
```
|