# pier use

> Switch the active environment

URL: https://pier.run/docs/cli/reference/use

```bash
pier use [<environment>]
```

Switch the active environment.

## Arguments

| Argument        | Required | Description                                 |
| --------------- | -------- | ------------------------------------------- |
| `<environment>` | no       | Environment slug to switch to; omit to pick |

[Global flags](/docs/cli/reference#global-flags) apply to every command.
