# 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                                                                                                                                         |
| ------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--api-version`     | N/A               | **Type:** Value<br><br>Override the api version used for api requests made by this command                                                          |
| `--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.                                                                                                     |
| `--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. |
| `--target-stage-id` | `-t`              | **Type:** Value<br>**Required**<br><br>ID of the target pipeline stage to validate promotion to.                                                    |
| `--work-item-id`    | `-i`              | **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
```
