notebook version create
Create a version for a specific notebook.
Syntax
cpd-cli notebook version create \
--notebook-id=<notebook-guid> \
--profile=<profile-name> \
[--context=<catalog-project-or-space-id>] \
[--cpd-config=<cpd-config-location>] \
[--jmes-query=<jmespath-query>] \
[--output=json|yaml|table] \
[--output-file=<output-file-location>] \
[--quiet] \
[--raw-output=true|false] \
[--verbose]
Arguments
The notebook version create command
has no arguments.
Options
Table 1: Command options
| Option | Description |
|---|---|
--context |
Specify the configuration context
name.
|
--cpd-config |
The IBM Software Hub
configuration location. For example,
$HOME/.cpd-cli/config.
|
|
|
Display command
help.
|
--jmes-query |
Provide a JMESPath query to
customize the output.
|
--notebook-id |
Specify the notebook
GUID.
|
--output |
Specify an output
format.
|
--output-file |
Specify a file path where all
output is redirected.
|
--profile |
The name of the profile that you
created to store information about an instance of IBM Software Hub and your credentials for the
instance.
|
--quiet |
Suppress verbose
messages.
|
--raw-output |
When set to true, single values
are not surrounded by quotation marks in
JSON output
mode.
|
--verbose |
Logs include more detailed
messages.
|
Examples
Note: The following examples use environment variables. Use a script to create
environment variables with the correct values for your environment. You can add the listed
environment variables to the installation variables script. For more information, see Setting up installation environment variables.
- Specify the environment variables in a script file.
-
notebook_id = <The notebook identifier> - Create a notebook version.
-
cpd-cli notebook version create \ --jmes-query="metadata.guid" \ --notebook-id=${notebook_id} \ --output=json \ --raw-output