[[chef-dev]] Re: [[chef-dev]] knife - create cookbook - subcommand doesn't exist


Chronological Thread 
  • From: Daniel DeLeo < >
  • To: Kamil < >
  • Cc:
  • Subject: [[chef-dev]] Re: [[chef-dev]] knife - create cookbook - subcommand doesn't exist
  • Date: Fri, 18 Feb 2011 08:46:16 -0800

This command didn't exist in 0.8, you have to upgrade if you want it. Which I highly recommend ;)

-- 
Dan DeLeo

On Friday, February 18, 2011 at 8:14 AM, Kamil wrote:

Hi, I am developer, I want to make my life easier to prepare production envs
using Chef. This is my second post here.
Now I found an error in knife. So, walking through Chef Cookbook Quick Start
guide and I stopped at Create a new Cookbook called "quick_start". Guide says
that there is possibility to create new cookbook using knife command:
'knife cookbook create quick_start -o ./' but 'cookbook create' subcommand
doesn't exist. Knife's help doesn't list create as a subcommand:
Available are:
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 metadata from FILE (options)

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 site download COOKBOOK [VERSION] (options)
-f, --file FILE The filename to write to
Sub-Command: cookbook site list (options)
-w, --with-uri Show corresponding URIs

Sub-Command: cookbook site search QUERY (options)

Sub-Command: cookbook site show COOKBOOK [VERSION] (options)

Sub-Command: cookbook site vendor COOKBOOK [VERSION] (options)
-d, --dependencies Grab dependencies automatically

Sub-Command: cookbook test [COOKBOOKS...] (options)
-a, --all Test 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 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

Instead of this rake command can be used : 'rake new_cookbook COOKBOOK=demo'.
Anyway, after that I still have problems with upload command which is described
in another post:
http://help.opscode.com/discussions/problems/368-knife-upload-cookbook-from-local-repo-to-chef-server-webui-doesnt-work

Thank you.
regards, Kamil Kuliberda

btw.
I am using Ubuntu 10.10 on VMware, for server env and client env. Following are
version list of installed packages:

Package: chef-server
Version: 0.8.16-4

Package: chef-server-webui
Version: 0.8.16-4

Package: chef-server-api
Version: 0.8.16-4

Package: chef
Version: 0.8.16-4

Package: chef-solr
Version: 0.8.16-4

Package: libchef-ruby1.8
Version: 0.8.16-4




Archive powered by MHonArc 2.6.16.

§