# bdy pipeline

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

## Usage

```bash
bdy pipeline|pip [options] [command]
```

Manage pipelines and their runs

## Options

| **Option** | **Description** |
| :--- | :--- |
| `--context <name>` | Connection and scope context: default, git, link or a saved name. Overrides the globally active context for this invocation. |
| `--examples` | Show only examples; with this flag --format accepts text, json or jsonl |
| `--verbose` | Show REST API requests, responses, timing and retries on stderr |
| `-h, --help` | display help for command |

## Available Commands

| **Command** | **Description** |
| :--- | :--- |
| [create](https://buddy.works/docs/cli/pipeline/create.md) | Create a pipeline from a YAML definition Required scopes: PIPELINE_WRITE |
| [delete](https://buddy.works/docs/cli/pipeline/delete.md) | Delete a pipeline Required scopes: PIPELINE_MANAGE |
| [get](https://buddy.works/docs/cli/pipeline/get.md) | Show pipeline details Required scopes: PIPELINE_READ |
| [list](https://buddy.works/docs/cli/pipeline/list.md) | List pipelines in a project Required scopes: PIPELINE_READ |
| [open](https://buddy.works/docs/cli/pipeline/open.md) | Open this resource in a browser Required scopes: PIPELINE_READ |
| [run](https://buddy.works/docs/cli/pipeline/run.md) | Start, follow and manage pipeline runs |
| [update](https://buddy.works/docs/cli/pipeline/update.md) | Update a pipeline from a YAML definition Required scopes: PIPELINE_WRITE |
| [yaml](https://buddy.works/docs/cli/pipeline/yaml.md) | Print a pipeline definition as YAML Required scopes: PIPELINE_READ |

Documentation for bdy v1.25.34

## Examples

### Start a run and show failed action logs after completion

```bash
bdy pip run start pipeline-identifier --failed-logs
```

### Return the current execution state using semantic exit codes

```bash
bdy pip run start pipeline-identifier --exit-code --no-wait
```

### Run pipeline with high priority and upload everything from scratch

```bash
bdy pip run start pipeline-identifier --priority HIGH -f
```

### Run pipeline without cache and wait for execution to complete

```bash
bdy pip run start pipeline-identifier -c
```

### Run pipeline and pass custom variables to execution

```bash
bdy pip run start pipeline-identifier -v key:val -v a:b
```

### Run pipeline and pass custom variables from file

```bash
bdy pip run start pipeline-identifier --vf path/to/env/file
```

### Run pipeline in given environment with specific artifact version

```bash
bdy pip run start pipeline-identifier --environment staging --artifact my_app:1.2.3
```

### Deploy an artifact version to an environment, wait for the result and exit 0 only when it succeeded

```bash
bdy pip run start pipeline-identifier -e production -a my_app:1.2.3 --exit-code --no-follow --failed-logs
```

### Run pipeline and output only final jsonl

```bash
bdy pip run start pipeline-identifier --no-follow --format jsonl
```

### Show run status and the last 100 lines of each failed action

```bash
bdy pip run status pipeline-identifier run-id --failed-logs
```

### Inspect failed actions now as JSONL with semantic exit codes

```bash
bdy pip run status pipeline-identifier run-id --failed-logs --no-wait --exit-code --format jsonl
```

### Check the current run state using semantic exit codes

```bash
bdy pip run status pipeline-identifier run-id --exit-code --no-wait
```

### Wait for completion and return its semantic exit code (run-id can come from executions[0].id of bdy pip run find)

```bash
bdy pip run status pipeline-identifier run-id --exit-code --no-follow
```

### Pipeline run status

```bash
bdy pip run status pipeline-identifier run-id
```

### Pipeline run status, get only final jsonl

```bash
bdy pip run status pipeline-identifier run-id --no-follow --format jsonl
```

### Return the current execution state using semantic exit codes

```bash
bdy pip run logs pipeline-identifier run-id action-run-id --exit-code --no-wait
```

### Pipeline run logs

```bash
bdy pip run logs pipeline-identifier run-id action-run-id
```

### Pipeline run logs with jsonl output

```bash
bdy pip run logs pipeline-identifier run-id action-run-id --format jsonl
```

### Cancel a run and show logs of actions that failed

```bash
bdy pip run cancel pipeline-identifier run-id --failed-logs
```

### Return the current execution state using semantic exit codes

```bash
bdy pip run cancel pipeline-identifier run-id --exit-code --no-wait
```

### Pipeline run cancel

```bash
bdy pip run cancel pipeline-identifier run-id
```

### Pipeline run cancel with final output in jsonl

```bash
bdy pip run cancel pipeline-identifier run-id --no-follow --format jsonl
```

### Retry a run and show failed action logs after completion

```bash
bdy pip run retry pipeline-identifier run-id --failed-logs
```

### Return the current execution state using semantic exit codes

```bash
bdy pip run retry pipeline-identifier run-id --exit-code --no-wait
```

### Pipeline run retry

```bash
bdy pip run retry pipeline-identifier run-id
```

### Pipeline run retry with only final JSONL output

```bash
bdy pip run retry pipeline-identifier run-id --no-follow --format jsonl
```

### Approve an action and show failed action logs after the run finishes

```bash
bdy pip run approve pipeline-identifier run-id action-run-id --failed-logs
```

### Return the current execution state using semantic exit codes

```bash
bdy pip run approve pipeline-identifier run-id action-run-id --exit-code --no-wait
```

### Pipeline run approve

```bash
bdy pip run approve pipeline-identifier run-id action-run-id
```

### Pipeline run pass params

```bash
bdy pip run approve pipeline-identifier run-id action-run-id -v a:b
```

### Pipeline run approve with final output in jsonl

```bash
bdy pip run approve pipeline-identifier run-id action-run-id --no-follow --format jsonl
```

### Pipeline run list

```bash
bdy pip run list pipeline-identifier
```

### Pipeline run list in json

```bash
bdy pip run list pipeline-identifier --format json
```

### Pipeline list

```bash
bdy pip list
```

### Pipeline list in json

```bash
bdy pip list --format json
```

### Pipeline get

```bash
bdy pip get pipeline-identifier
```

### Pipeline get in json

```bash
bdy pip get pipeline-identifier --format json
```

### Pipeline delete

```bash
bdy pip rm pipeline-identifier
```

### Pipeline force delete

```bash
bdy pip rm pipeline-identifier -f
```

### Pipeline yml

```bash
bdy pip yml pipeline-identifier
```

### Pipeline create with name

```bash
bdy pip create -n name
```

### Pipeline create with yaml

```bash
bdy pip create --yaml @path/to/yaml
```

### Pipeline create with name, output json

```bash
bdy pip create -n name --format json
```

### Pipeline update with yaml

```bash
bdy pip update pipeline-identifier @path/to/yaml
```

### Pipeline update with yaml and output json

```bash
bdy pip update pipeline-identifier @path/to/yaml --format json
```


---
Original source: https://buddy.works/docs/cli/pipeline