Search code examples
chef-infraknife

knife-vsphere plugin not working


Following adding 'knife-vsphere' to my cookbook's Gemfile:

gem 'knife-vsphere'

I try to use the following command:

knife vsphere vm list

And i get the following error: "FATAL: Cannot find sub command for: 'vsphere'"

Clearly knife isn't even aware that it's installed, but it is.

OS X 10.10.3 Chef 12.3.0 (in /opt/chefdk/bin) Ruby 2.2.2 via Rbenv

knife-vsphere: https://github.com/ezrapagel/knife-vsphere


Solution

  • Use

    chef gem install knife-vsphere
    

    to install it into ChefDK's ruby (docs).