Knife-reporting plugin question


Is knife-reporting plugin supposed to be installed on the workstation?
If so, I installed it as follows on my windows 7 machine:

C:\Ruby200\bin>gem install knife-reporting
Fetching: mixlib-cli-1.7.0.gem (100%)
Successfully installed mixlib-cli-1.7.0
Fetching: knife-reporting-0.5.0.gem (100%)
Successfully installed knife-reporting-0.5.0
Parsing documentation for mixlib-cli-1.7.0
Installing ri documentation for mixlib-cli-1.7.0
Parsing documentation for knife-reporting-0.5.0
Installing ri documentation for knife-reporting-0.5.0
Done installing documentation for mixlib-cli, knife-reporting (2 sec).
2 gems installed

Next, when I execute ‘knife runs list’ I get below error:

FATAL: Cannot find subcommand for: 'runs list’
Available subcommands: (for details, knife SUB-COMMAND --help)

Am I doing something wrong ?


Could be a couple of reasons for this.

One, if you’re using ChefDK, but also have a different ruby install, the gem install command could be installing the gem to a different ruby/gems installation. If that’s the problem, you can use chef gem install to install gems to the right ruby, or use chef shell-init to have chefdk “take over” your shell session, in which case you will be using the correct gem command.

Another reason could be that you used knife rehash to cache the knife commands (which improves knife’s performance). In that case, run knife rehash again.