Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created May 18, 2010 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/404984 to your computer and use it in GitHub Desktop.
Save mrchrisadams/404984 to your computer and use it in GitHub Desktop.
Sub-Command: cookbook bulk delete REGEX (options)
Sub-Command: cookbook delete COOKBOOK (options)
Sub-Command: cookbook download COOKBOOK (options)
-f, --file FILE The filename to write to
Sub-Command: cookbook list (options)
-w, --with-uri Show corresponding URIs
Sub-Command: cookbook metadata COOKBOOK (options)
-a, --all Generate metadata for all cookbooks, rather than just a single cookbook
-o, --cookbook-path PATH:PATH A colon-separated path to look for cookbooks in
Sub-Command: cookbook show COOKBOOK [PART] [FILENAME] (options)
-f, --fqdn FQDN The FQDN of the host to see the file for
-p, --platform PLATFORM The platform to see the file for
-V, --platform-version VERSION The platform version to see the file for
Sub-Command: cookbook upload [COOKBOOKS...] (options)
-a, --all Upload all cookbooks, rather than just a single cookbook
-o, --cookbook-path PATH:PATH A colon-separated path to look for cookbooks in
chrisadams@edam[~/Code/chef-cookbook-test/cookbooks]
[14:18]:knife cookbook upload opennms
INFO: ** opennms **
INFO: Looking in these folders /Users/chrisadams/Code/chef-repo/cookbooks/opennms/Users/chrisadams/Code/chef-repo/site-cookbooks/opennms
INFO: Nothing to copy from /Users/chrisadams/Code/chef-repo/cookbooks/opennms
INFO: Looking in these folders /Users/chrisadams/Code/chef-repo/cookbooks/opennms/Users/chrisadams/Code/chef-repo/site-cookbooks/opennms
INFO: Nothing to copy from /Users/chrisadams/Code/chef-repo/site-cookbooks/opennms
FATAL: Could not find cookbook opennms!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment