knife-diff(1) on Linux
The text ea982dd7b60e, as Debian 8 (Jessie) shipped it.
The man page for the knife diff subcommand. The knife diff subcommand is used to compare the differences between files and directories on the server and in the chef-repo. For example, to compare files on the 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 argument 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 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: