environment software-specification list
List all software specifications.
Syntax
cpd-cli environment software-specification list \
--profile=<cpd-profile-name> \
[--context=<catalog-project-or-space-id>] \
[--cpd-config=<cpd-config-location>] \
[--cpd-scope=<cpd-scope>] \
[--include-packages=<comma-separated-list-of-package-names>] \
[--jmes-query=<jmespath-query>] \
[--name=<software-specification-name>] \
[--output=json|yaml|table] \
[--output-file=<output-file-location>] \
[--project-id=<project-id>] \
[--quiet] \
[--raw-output=true|false] \
[--space-id=<space-identifier>] \
[--verbose]
Arguments
The environment software-specification list 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.
|
--cpd-scope |
The IBM Software Hub space,
project, or catalog scope. For example,
cpd://default-context/spaces/7bccdda4-9752-4f37-868e-891de6c48135.
|
|
|
Display command
help.
|
--include-packages |
Specify a comma-separated list of
package names. The list refers to the packages that a software specification should contain. When a
list is specified, each of the software specifications in the returned list contain all the packages
that are specified in the query.
|
--jmes-query |
Provide a JMESPath query to
customize the output.
|
--name |
Specify the
software specification name.
|
--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.
|
--project-id |
Specify an
IBM Software Hub project instance to create the software specification
in.
|
--quiet |
Suppress verbose
messages.
|
--raw-output |
When set to true, single values
are not surrounded by quotation marks in
JSON output
mode.
|
--space-id |
Specify a space
identifier.
|
--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.
- Define the environment variables.
- Replace the following properties with your
data.
export JMES_QUERY="resources[0].metadata.asset_id" export SPACE_ID=<The deployment space identifier> - List software specifications.
-
cpd-cli environment software-specification list \ --jmes-query=${JMES_QUERY} \ --name=<software-specification-name> \ --output=json \ --raw-output \ --space-id=${SPACE_ID}