notebook version get
Retrieve a specific notebook version.
Syntax
cpd-cli notebook version get \
--notebook-id=<notebook-guid> \
--profile=<cpd-profile-name> \
--version-id=<version-guid> \
[--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 get 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 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.
|
--version-id |
Specify the version
GUID.
|
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> version_id = <The notebook version identifier> - Get the path in the storage volume to the notebook version that you want to download.
-
cpd-cli notebook version get \ --jmes-query="entity.file_reference" \ --notebook-id=${notebook_id} \ --output=json \ --raw-output \ --version-id=${version_id}