pipeline get-template
Returns code as a YAML template or an Orchestration Flow JSON that contains the specified pipeline's description, parameters, and metadata. You must specify either project_id or space_id.
Syntax
cpd-cli pipeline get-template \
--pipeline-id=<pipeline-identifier> \
[--format=<pipeline-format>] \
[--project-id=<project-id>]\
[--space-id=<space-identifier>] \
[--version=<version>] \
[--volatile=<placeholder-text>]
Options
Table 1: Command options
| Option | Description |
|---|---|
--format |
The format of the code to
retrieve.
|
--pipeline-id |
Specify a pipeline
identifier.
|
--project-id |
Specify an IBM Software Hub
project instance.
|
--space-id |
Specify a space
identifier.
|
--version |
Display the cpdctl command version
information.
|
--volatile
|
Work-in-progress pipeline versions
can be updated, with this option set to true, multiple times before committed as a finished state.
When set to true, indicates that the version is a work-in-progress. If the --volatile option is used
while the default version is already volatile, it updates that version instead of creating a new
one. If the --volatile option is not used while a volatile version is the default one, upload fails
with an error.
|