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.


Hi kallistec,

We are getting same issue. We are using ChefDK and tried multiple options like adding path to PATH environment variable, checked knife.rb. But nothing is working out in favor.
We even checked knife.rb. Paths C:\opscode\chefdk\embedded\bin and C:\opscode\chefdk\bin are updated in PATH environment variable. Though I am not sure if any gem is missing for the command as you mentioned in your previous reply.
Could you please suggest any work around to get the command running?


This thread is pretty old, maybe you could explain what you did, what you expected to happen, and what happened instead?

In any case if you are trying to run knife runs list, you first need to install the knife-reporting plugin, which is best done by installing chef-dk and then using chef gem install to install it.