pipeline version get-template

Returns code (YAML template, Orchestration Flow JSON embedded in a string) that contains the specified pipeline version's description, parameters, and metadata. You must specify either project_id or space_id.

Syntax

cpd-cli pipeline version
get-template \
--version-id=<version-guid> \
[--format=<pipeline-format>] \
[--project-id=<project-id>] \
[--space-id=<space-identifier>] 

Options

Table 1: Command options
Option Description
--format The format of the code to retrieve.
Status
Optional.
Syntax
--format=<pipeline-format>
Default value
The default value is template. Allowable values are template, flow, all.
Input type
string
--project-id Specify an IBM Software Hub project instance.
Status
Optional.
Syntax
--project-id=<project-id>
Default value
No default.
Input type
string
Valid values
A valid project identifier.
--space-id Specify a space identifier.
Status
Optional.
Syntax
--space-id=<space-identifier>
Default value
No default.
Input type
string
--version-id Specify the version GUID.
Status
Required.
Syntax
--version-id=<version-guid>
Default value
No default.
Input type
string