---
schema_version: "1"
id: 0abd4b08ba3088275e982506f1095ec92b0af0db239a0fb97f000ca898be6b65
title: devops pipeline project add
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/devops/cli_reference_devops_pipeline_project_add.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_devops_pipeline_project_add.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 27a85a3a8168fa472e15334d375e3fba61083af50baae8d3505057e592de8689
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# devops pipeline project add

Attach a DevOps Center project to a pipeline.

## Description for devops pipeline project add

You can attach a project to only one pipeline.

## Flags

| Flag Name (Long) | Flag Name (Short) | Description |
|------------------|-------------------|-------------|
| <code>&#8209;&#8209;api&#8209;version</code> | N/A | **Type:** Value<br><br>Override the api version used for api requests made by this command |
| <code>&#8209;&#8209;flags&#8209;dir</code> | N/A | **Type:** Value<br><br>Import flag values from a directory. |
| <code>&#8209;&#8209;json</code> | N/A | **Type:** Boolean<br><br>Format output as json. |
| <code>&#8209;&#8209;pipeline&#8209;id</code> | N/A | **Type:** Value<br>**Required**<br><br>ID of the pipeline. |
| <code>&#8209;&#8209;project&#8209;id</code> | N/A | **Type:** Value<br>**Required**<br><br>ID of the DevOps Center project. |
| <code>&#8209;&#8209;target&#8209;org</code> | <code>&#8209;o</code> | **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 project add

Attach a project to a pipeline using the project ID and pipeline ID.

```shell
sf devops pipeline project add --target-org my-devops-org --pipeline-id 0XB000000000001 --project-id 0Hn000000000001
```
<!-- prettier-ignore-end -->
