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