knife-download1
The man page for the knife download subcommand. the knife download subcommand is used to download roles, cookbooks, environments, nodes, and data bags from the chef server to the current working directory. it can be used to back up data on the chef server, inspect the state of one or more files, or to extract out-of-process changes users may have made to files on the chef server, such as if a user made a change that bypassed version source control. this subcommand is often used in conjunction with knife diff, which can be used to see exactly what changes will be downloaded, and then knife upload, which does the opposite of knife download. syntax this subcommand has the following syntax: options this subcommand has the following options: examples to download the entire chef-repo from the chef server, browse to the top level of the chef-repo and enter: to download the cookbooks/ directory from the chef server, browse to the top level of the chef-repo and enter: or from anywhere in the chef-repo, enter: to download the environments/ directory from the chef server, browse to the top level of the chef-repo and enter: or from anywhere in the chef-repo, enter: to download an environment named "production" from the chef server, browse to the top level of the chef-repo and enter: or from the environments/ directory, enter: to download the roles/ directory from the chef server, browse to the top level of the chef-repo and enter: or from anywhere in the chef-repo, enter: to download all cookbooks that start with "apache" and belong to the "webserver" role, browse to the top level of the chef-repo and enter:
Releases
3 releases since Debian 8 (Jessie); the text changed 1 time.