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.
Status
Required.
Syntax
--from-source=<json-template>
Default value
No default.
Valid values
A valid JSON template file location and name.
--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.
Status
Required.
Syntax
--generate-template-from=<get-command-response-file>
Default value
No default.
Valid values
A valid JSON file location and name.
--help Display command help.
Status
Optional.
Syntax
--help
Default value
No default.
Valid values
Not applicable.
--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.
Status
Required.
Syntax
--profile=<profile-name>
Default value
No default.
Valid values

The name of the profile that you created.

--verbose Logs include more detailed messages.
Status
Optional.
Syntax
--verbose
Default value
No default.
Valid values
Not applicable.

Examples

You can use the create command to create service instances only if the service supports it. For more information, see the following topics.