devops pipeline update

Update a DevOps Center pipeline.

Description for devops pipeline update 

Activate, deactivate, or rename a DevOps Center pipeline. Use –active to activate, –no-active to deactivate, and –name to rename. You can combine –no-active and –name in one command.

A pipeline must have at least one stage before you can activate it. You can’t modify the pipeline stages after you activate and promote changes through it.

Flags 

Flag Name (Long)Flag Name (Short)Description
‑‑activeN/AType: Boolean

Activate the pipeline. Use –no-active to deactivate.
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑name‑nType: Value

New name for the pipeline.
‑‑pipeline‑idN/AType: Value
Required

ID of the pipeline.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Examples for devops pipeline update 

Activate a pipeline:

1sf devops pipeline update --target-org my-devops-org --pipeline-id 0XB000000000001 --active

Deactivate and rename in one step.

1sf devops pipeline update --target-org my-devops-org --pipeline-id 0XB000000000001 --no-active --name "My Pipeline"