You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/website/source/docs/commands/env/switch.html.md

32 lines
609 B

---
layout: "commands-env"
page_title: "Command: env switch"
sidebar_current: "docs-env-sub-switch"
description: |-
The terraform env switch command is used to switch state environments.
---
# Command: env switch
The `terraform env switch` command is used to switch to a different
environment that is already created.
## Usage
Usage: `terraform env switch [NAME]`
This command will switch to another environment. The environment must
already be created.
## Example
```
$ terraform env list
default
* development
mitchellh-test
$ terraform env switch default
Switch to environment "default"!
```