What to call the new command?
vhost new (like a /resource/new page)
vhost add?
vhost generate (like rails g)
vhost create
You would give it a name and any other options needed by the template (perhaps a port), and it would generate a config file for this new virtual host and stick it in your config/dev. (Or should it append the server { } block to existing server.conf if there is one? Maybe that could be an option too.)
By default, this command will generate from templates shipped with this tool. But in the future, we can allow users to use their own custom templates. Probably add a -t/--template option that lets you point to a file or dir containing multiple files.
In the even later future, you should be able to have a ~/.vhostrc file that configures it to use your own custom template without having to specify it on the command line each time.