Cloudbreak 2.4.0 and newer includes a neat feature which allows you to obtain CLI commands from the web UI. This feature can save you a lot of time if you are just getting started with the CLI.
Prerequisites
You must have an instance of Cloudbreak running.
You downloaded and configured Cloudbreak CLI. if you still need to do this, refer to Installing the CLI.
Obtain Cluster JSON from the UI
By far the most useful feature is being able to obtain cluster JSON file from the web UI. There are two easy ways to do this.
Option 1 (Does not require creating a cluster)
Navigate to the create cluster wizard and specify all required parameters. Once done, on the last page of the wizard there is an option to SHOW CLI COMMAND, which allows you to generate a JSON skeleton of your cluster:
You can click COPY the JSON, paste it to a text edit, and save it as template.json.
Next, you can copy the command listed in the web UI below the CLI skeleton to create a cluster from the template.json file:
Another way to obtain cluster JSON skeleton is by navigating to the details of a cluster that has already been created. Under ACTIONS, there is an option to SHOW CLI COMMAND, which allows you to generate a JSON skeleton of your cluster:
Obtain CLI Command Syntax from the UI
In addition to allowing you to obtain CLI JSON content from the web UI, Cloudbreak allows you to obtain some commands from the UI by using the SHOW CLI COMMAND option. For example:
When creating a credential, you can generate `cb credential create`
When creating a blueprint, you can generate `cb blueprint create`
When adding a recipe, you can generate `cb recipe create`