service-instance
create
Create an IBM Software Hub service instance from a JSON request file.
Syntax
cpd-cli service-instance create \
--generate-template-from=<get-command-response-file> \
--from-source=<json-template> \
--profile=<profile-name> \
[--verbose]
Arguments
The create command has no
arguments.
Options
Table 1: Command options
| Option | Description |
|---|---|
--from-source |
Specify the JSON template file
location and name. The JSON template file is used to create the service instance.
|
--generate-template-from |
Specify a JSON file location and
name. The JSON file is used to generate a JSON template file from which the service instance is
created. The JSON file can store information about different contexts, where each context can refer
to a different environment.
|
--help |
Display command
help.
|
--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.
|
--verbose |
Logs include more detailed
messages.
|
Examples
You can use the create command to create
service instances only if the service supports it. For more information, see the following topics.
- Creating a service instance for Analytics Engine powered by Apache Spark with the cpd-cli service-instance create command
- Creating a service instance for watsonx Assistant with the cpd-cli service-instance create command
- Creating a service instance for Watson Discovery with the cpd-cli service-instance create command
- Creating a service instance for Watson Speech services with the cpd-cli service-instance create command