terraform/website/source/docs/commands/env/select.html.md

611 B

layout page_title sidebar_current description
commands-env Command: env select docs-env-sub-select The terraform env select command is used to select state environments.

Command: env select

The terraform env select command is used to select to a different environment that is already created.

Usage

Usage: terraform env select [NAME]

This command will select to another environment. The environment must already be created.

Example

$ terraform env list
  default
* development
  mitchellh-test

$ terraform env select default
Switched to environment "default"!