mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
devvm export [FILE] saves this folder's VM's agents' history (the same paths and login excludes as rm's export) to FILE, relative to the current folder, or to a new <vm>-<date>-<time>.tar.gz in the exports folder. A stopped VM is started for it. It needs a finished VM made for this folder. The export is now written to a temporary file beside its target (mode 600) and renamed into place once complete, for rm's export too: a failed export leaves no file and an existing FILE as it was. Messages: history_not_exported (logged) and export_failed (reason) for devvm export; rm's is now rm_export_failed. Tests: TestExport (default folder, a new folder for FILE, a failed export keeping FILE); testdata/script/export.txtar (no VM, usage, a stopped VM started, the script, a relative FILE, a failure keeping FILE and the VM); e2e's project section exports a stopped agent VM's history to a file, without its logins. Docs: coding-agents.md#history, commands.md, the CLI reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>