# exit

The `exit` step type stops a custom command or workflow immediately with an exit code, giving you a clean, explicit way to halt automation after a guard or validation step fails.

```yaml
steps:
  - name: stop
    type: exit
    code: 1
    content: Refusing to deploy without approval.
```

## Fields

- **`code`**
  Optional exit code. Defaults to 
  `0`
  .
- **`content`**
  Optional message to print before exiting. Supports templates.

Use `exit` for explicit workflow termination after validation or guard steps.
