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:
Chef