# devops pipeline update

Update a DevOps Center pipeline.

## Description for devops pipeline update

Activate, deactivate, or rename a DevOps Center pipeline. Use --activate to activate, --deactivate to deactivate, and --name to rename. You can combine --deactivate 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                                                                                                                                         |
| ---------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--activate`     | N/A               | **Type:** Boolean<br><br>Activate the pipeline. Can't be used with --deactivate.                                                                    |
| `--api-version`  | N/A               | **Type:** Value<br><br>Override the api version used for api requests made by this command                                                          |
| `--deactivate`   | N/A               | **Type:** Boolean<br><br>Deactivate the pipeline. Can't be used with --activate.                                                                    |
| `--flags-dir`    | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                                                                         |
| `--json`         | N/A               | **Type:** Boolean<br><br>Format output as json.                                                                                                     |
| `--name`         | `-n`              | **Type:** Value<br><br>New name for the pipeline.                                                                                                   |
| `--pipeline-id`  | N/A               | **Type:** Value<br>**Required**<br><br>ID of the pipeline.                                                                                          |
| `--target-org`   | `-o`              | **Type:** Value<br>**Required**<br><br>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:

```shell
sf devops pipeline update --target-org my-devops-org --pipeline-id 0XB000000000001 --activate
```

Deactivate and rename in one step.

```shell
sf devops pipeline update --target-org my-devops-org --pipeline-id 0XB000000000001 --deactivate --name "My Pipeline"
```
