Mass migrate cpanel accounts to virtualmin

I am able to migrate small accounts 1 by one to virtualmin by first making individual backup and then using the migration form.

Is there a method to “mass migrate” in the shell instead of using the form?

Is there a method to migrating multiple cpanel accounts at a time?

The virtualmin command has a migrate-domain subcommand for this purpose. https://www.virtualmin.com/migrate_domain/

Edit: just noticed the site migration screwed up the URL for all the API docs. That URL will change whenever I figure out how to move it back to where it’s supposed to be, but it’ll be searchable again by then and the virtualmin command has help built in.