notebook version create
Create a version for a specific notebook.
Syntax
cpd-cli notebook version create \
[--context=<catalog-project-or-space-id>] \
[--cpd-config=<cpd-config-location>] \
[--jmes-query=<jmespath-query>] \
--notebook-id=<notebook-guid> \
[--output=json|yaml|table] \
[--output-file=<output-file-location>] \
--profile=<cpd-profile-name> \
[--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 Cloud Pak for Data
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 Cloud Pak for Data 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