Knife is a ChefDK command line tool to access the Chef server. We use it to upload our cookbooks, environment files, and data bags to the Chef server, and query the server for information on cookbooks and nodes.
Get the list of cookbooks used by a node with version information
knife node show <node-name> -a cookbooks