| name | cli-backup-sync |
| description | Backup and restore AIRoute data from the CLI. Trigger incremental snapshots, sync to cloud storage, manage backup schedules, and restore from archive files. |
Overview
Backup and restore AIRoute data from the CLI. Trigger incremental snapshots, sync to cloud storage, manage backup schedules, and restore from archive files.
Quick install
npm install -g AIRoute
AIRoute --version
Subcommands
backup
Example:
AIRoute backup
backup create
Flags:
--name <name>
--cloud
--encrypt
--key-file <path>
--exclude <pattern>
--retention <n>
Example:
AIRoute backup create
backup auto
Example:
AIRoute backup auto
backup enable
Flags:
--cron <expr>
--cloud
--encrypt
--retention <n>
Example:
AIRoute backup enable
backup disable
Example:
AIRoute backup disable
backup status
Flags:
--name <name>
--cloud
--encrypt
--key-file <path>
--exclude <pattern>
--retention <n>
Example:
AIRoute backup status
backup restore [backupId]
Flags:
Example:
AIRoute backup restore [backupId]
task
Example:
AIRoute task
cloud create
Flags:
--title <t>
--prompt <p>
--prompt-file <path>
--repo <url>
--branch <b>
--metadata <json>
Example:
AIRoute cloud create
cloud list
Flags:
Example:
AIRoute cloud list
cloud get <taskId>
Example:
AIRoute cloud get <taskId>
cloud status <taskId>
Example:
AIRoute cloud status <taskId>
cloud cancel <taskId>
Flags:
Example:
AIRoute cloud cancel <taskId>
cloud approve <taskId>
Example:
AIRoute cloud approve <taskId>
cloud message <taskId> <message>
Example:
AIRoute cloud message <taskId> <message>
cloud sources <taskId>
Example:
AIRoute cloud sources <taskId>
cloud cloud
Example:
AIRoute cloud cloud
cloud agents
Example:
AIRoute cloud agents
cloud auth
Flags:
--no-browser
--timeout <ms>
Example:
AIRoute cloud auth
sync
Example:
AIRoute sync
sync push
Flags:
--target <t>
--bundle <list>
--dry-run
Example:
AIRoute sync push
sync pull
Flags:
--source <s>
--merge
--replace
--dry-run
Example:
AIRoute sync pull
sync diff
Flags:
--source <s>
--target <t>
Example:
AIRoute sync diff
sync bundle <outPath>
Flags:
Example:
AIRoute sync bundle <outPath>
sync import <bundlePath>
Flags:
Example:
AIRoute sync import <bundlePath>
sync initialize
Flags:
Example:
AIRoute sync initialize
sync tokens
Example:
AIRoute sync tokens
sync list
Example:
AIRoute sync list
sync create
Flags:
--name <n>
--scope <s>
--ttl <duration>
Example:
AIRoute sync create
sync revoke <id>
Flags:
Example:
AIRoute sync revoke <id>
sync status
Example:
AIRoute sync status
sync resolve
Example:
AIRoute sync resolve