feat(cli): add portable data backup and restore

This commit is contained in:
AaronZ345
2026-07-17 11:58:44 +08:00
parent 7d8751f04b
commit 67be468ff1
8 changed files with 555 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ from cli.commands.process import start, stop, restart, self_restart, update, sta
from cli.commands.context import context
from cli.commands.install import install_browser
from cli.commands.knowledge import knowledge
from cli.commands.backup import backup_command, restore_command
HELP_TEXT = """Usage: cow COMMAND [ARGS]...
@@ -24,6 +25,8 @@ Commands:
logs View CowAgent logs.
skill Manage CowAgent skills.
knowledge Manage knowledge base.
backup Back up config and agent workspace.
restore Restore a CowAgent backup.
install-browser Install browser tool (Playwright + Chromium).
Tip: Memory index management lives in chat — send /memory status or
@@ -74,6 +77,8 @@ main.add_command(status)
main.add_command(logs)
main.add_command(context)
main.add_command(knowledge)
main.add_command(backup_command)
main.add_command(restore_command)
main.add_command(install_browser)