# Approve

> porticol-cli approve: allow a call an agent is waiting on, after typing its code.

Canonical: https://porticol.app/docs/cli/approve

[View as Markdown](https://porticol.app/docs/cli/approve.md)

## Usage

```
porticol-cli approve <id> [--data-dir <path>]
```

## Approval options

| Option | What it does |
| --- | --- |
| `--data-dir <path>` | the workspace the approval is in: PORTICOL_DATA_DIR, or the desktop's data folder |

## Exit codes

| Code | Meaning |
| --- | --- |
| 0 | the call was approved or denied |
| 3 | there is no terminal, the approval is not waiting, the code is wrong, or the workspace could not be read |

## See also

- [this text, with examples](https://porticol.app/docs/cli.html)
- [a pipeline to copy](https://porticol.app/docs/automation.html)
