Add an 'instances' command to the API (hat tip Pierre G.)