---
schema_version: "1"
id: 4391b3c25791d8e2bdd0359594708f9c7e1a9fc1d9f69dba692ecb850006fa3e
title: devops promotion validate
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/devops/cli_reference_devops_promotion_validate.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_devops_promotion_validate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 434807c1ce2d0a31a2cec7a55783ab6ad39cd6a301219dd1a0cbd295dcd020df
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# devops promotion validate

Validate work item promotion for a pipeline stage.

## Description for devops promotion validate

Validates whether the specified work items can be promoted to the target pipeline stage. Checks for VCS and object permission errors before a promotion is attempted.

## 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;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. |
| <code>&#8209;&#8209;target&#8209;stage&#8209;id</code> | <code>&#8209;t</code> | **Type:** Value<br>**Required**<br><br>ID of the target pipeline stage to validate promotion to. |
| <code>&#8209;&#8209;work&#8209;item&#8209;id</code> | <code>&#8209;i</code> | **Type:** Value<br>**Required**<br><br>ID of a work item to validate for promotion. Specify multiple times for multiple work items. |

## Examples for devops promotion validate

Validate promotion of a work item to a target stage:

```shell
sf devops promotion validate --target-org my-devops-org --target-stage-id 1QV000000000001 --work-item-id 1fk000000000001
```

Validate promotion of multiple work items:

```shell
sf devops promotion validate --target-org my-devops-org --target-stage-id 1QV000000000001 --work-item-id 1fk000000000001 --work-item-id 1fk000000000002
```
<!-- prettier-ignore-end -->
