I was delighted to see there is a cli to virtualmin:
But when I tried it on my Joyent account, I ran into some problems, see this post:
-- The virtualmin binary is there: /usr/local/sbin/virtualmin
-- It works for help requests like: virtualmin help list-domains
-- But it doesn't work for: virtualmin list-domains
So mainly I'm wondering should it work on Joyent, and if so, what am I doing wrong!