> ## Documentation Index
> Fetch the complete documentation index at: https://forest-docs-cli-reference-headless-commands.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# forest roles:export

> Export all roles and their permissions to a wide CSV file

# forest roles:export

Export all roles and their permissions to a wide CSV file.

## Usage

```bash theme={null}
forest roles:export [options]
```

## Options

| Option                    | Description                                            |
| ------------------------- | ------------------------------------------------------ |
| `-e, --env=<value>`       | (required) Environment name to export permissions for. |
| `-o, --output=<value>`    | Output file path (default: stdout).                    |
| `-p, --projectId=<value>` | Forest project ID.                                     |
