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

> Rename an environment or change its application URL

# forest environments:update

Update the name or the application URL of an environment.

## Usage

```bash theme={null}
forest environments:update --environmentId <ID> [options]
```

## Options

| Option | Description |
| - | - |
| `-e, --environmentId` | ID of the environment to update (required) |
| `-n, --name` | New name of the environment |
| `-u, --url` | New URL of the application serving the Forest back-end |

## Examples

```bash theme={null}
# Set the URL of the production environment once the back-end is deployed
forest environments:update -e 324 --url https://api.example.com

# Rename an environment
forest environments:update -e 325 --name staging-eu
```


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