notebook version get
Important: IBM Cloud Pak® for Data
Version 4.7 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.7 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.
Retrieve a specific notebook version.
Syntax
cpd-cli notebook version get \
[--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-configuration-profile-name> \
[--quiet] \
[--raw-output=true|false] \
[--verbose] \
--version-id=<version-guid> \
Arguments
The notebook version get command
has no arguments.
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.
Valid formats include json, yaml, or text (the default
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
in
JSON output mode are not surrounded by quotes.
|
--verbose |
Logs include more detailed
messages.
|
--version-id |
Specify the version
GUID.
|
Table 1: Command options
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 install variables script. For more information, see Best practice: Setting up install 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}