> ## Documentation Index
> Fetch the complete documentation index at: https://docs.forest.app/llms.txt
> Use this file to discover all available pages before exploring further.

# forest environments

> List the environments of a Forest project

# forest environments

List the environments of a project, with their ID, name, URL and type. Remote environments created with `--disableRoles` show the type `test`.

## Usage

```bash theme={null}
forest environments [options]
```

`forest environments:list` is an alias of this command.

## Options

| Option | Description |
| - | - |
| `-p, --projectId` | The ID of the project to work on |
| `--format` | Output format: `table` (default) or `json` |

## Examples

```bash theme={null}
# List the environments of your project
forest environments

# List the environments of a specific project as JSON
forest environments --projectId 42 --format json
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.