> ## 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:get

> Display the configuration of one environment

# forest environments:get

Display the configuration of an environment, identified by its ID.

## Usage

```bash theme={null}
forest environments:get <ENVIRONMENT_ID> [options]
```

## Arguments

| Argument | Description |
| - | - |
| `ENVIRONMENT_ID` | ID of the environment (required). [`forest environments`](https://docs.forest.app/reference/cli/environments) lists the IDs |

## Options

| Option | Description |
| - | - |
| `--format` | Output format: `table` (default) or `json` |

The output includes the environment's URL, type, back-end version and its `FOREST_ENV_SECRET`.

> [!WARNING]
>
> `FOREST_ENV_SECRET` grants access to the environment. Keep the output of this command out of shared logs.

## Examples

```bash theme={null}
# Show an environment
forest environments:get 324

# Output it as JSON
forest environments:get 324 --format json
```


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