UTM icon indicating copy to clipboard operation
UTM copied to clipboard

scripting: add export command

Open naveenrajm7 opened this issue 1 year ago • 0 comments

Fixes #6553

  • Exposed VM export via Apple Scripting and CLI
  • Turned on sandbox for unsigned utmctl binary to be consistent with unsigned UTM. So we can test the same data across unsigned products.

Example:

Usage in AppleScript

tell application "/Users/***/UTM.app"
  set vm to virtual machine named "ubuntu"
  set output to POSIX file "/Users/***/ubuntuExport.utm"
  export vm to output
end tell

Usage in cli (path must be writable by utmctl)

utmctl export ubuntu --path /Users/***/ubuntuExport.utm

naveenrajm7 avatar Oct 04 '24 07:10 naveenrajm7