knife-diff(1)

knife-diff1

The man page for the knife diff subcommand. the knife diff subcommand is used to compare the differences between files and directories on the chef server and in the chef-repo. for example, to compare files on the chef server prior to an uploading or downloading files using the knife download and knife upload subcommands, or to ensure that certain files in multiple production environments are the same. this subcommand is similar to the git diff command that can be used to diff what is in the chef-repo with what is synced to a git repository. syntax this subcommand has the following syntax: options this subcommand has the following options: knife.rb file settings in addition to the default settings in a knife.rb file, there are other subcommand-specific settings that can be added. when a subcommand is run, knife will use: a value passed via the command line will override a value in the knife.rb file; a value in a knife.rb file will override a default value. the following knife diff settings can be added to the knife.rb file: examples to compare the base.json role to a webserver.json role, enter: to compare the differences between the local chef-repo and the files that are on the chef server, enter: to diff a node named node-lb and then only return files that have been added, deleted, modified, or changed, enter: to return something like:

Releases

3 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9–10

Author

Chef

From chef 13.8.7-4 in Debian 10 (Buster). Parsed by carta from the page's man source.