Cloudbreak CLI Reference
Also available as:
PDF

recipe create

Adds a new recipe from a file or from a URL.

Sub-commands

from-url Creates a recipe by downloading it from a URL location

from-file Creates a recipe by reading it from a local file

Required options

Options required for from-url sub-command:

--name <value> Name for the recipe

--execution-type <value> Type of execution [pre-ambari-start, pre-termination, post-ambari-start, post-cluster-install]

--url <value> URL location of the Ambari blueprint JSON file

Options required for from-file sub-command:

--name <value> Name for the recipe

--execution-type <value> Type of execution [pre-ambari-start, pre-termination, post-ambari-start, post-cluster-install]

--file <value> Location of the Ambari blueprint JSON file

Options

--description <value> Description for the recipe

--server <value> Cloudbreak server address [$CB_SERVER_ADDRESS]

--username <value> Cloudbreak user name (e-mail address) [$CB_USER_NAME]

--password <value> Cloudbreak password [$CB_PASSWORD]

--workspace <value> Name of the workspace holding the resource

--profile <value> Selects a config profile to use [$CB_PROFILE]

--auth-type <value> Authentication method to use. Values: oauth2, basic [$CB_AUTH_TYPE]

Examples

Adds a new recipe called “test1” from a URL:

cb recipe create from-url --name "test1" --execution-type post-ambari-start --url http://some-site.com/test.sh

Adds a new recipe called “test2” from a file:

cb recipe create from-url --name "test2" --execution-type post-ambari-start --file /Users/test/Documents/test.sh