website: env switch => select
This commit is contained in:
parent
d892b436f5
commit
4b1dc53cc1
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
layout: "commands-env"
|
||||
page_title: "Command: env select"
|
||||
sidebar_current: "docs-env-sub-select"
|
||||
description: |-
|
||||
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"!
|
||||
```
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
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"!
|
||||
```
|
|
@ -29,7 +29,7 @@ you've only ever worked on the "default" environment.
|
|||
|
||||
Environments are managed with the `terraform env` set of commands. To
|
||||
create a new environment and switch to it, you can use `terraform env new`,
|
||||
to switch environments you can use `terraform env switch`, etc.
|
||||
to switch environments you can use `terraform env select`, etc.
|
||||
|
||||
For example, creating an environment:
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
<a href="/docs/commands/env/list.html">list</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-env-sub-switch") %>>
|
||||
<a href="/docs/commands/env/switch.html">switch</a>
|
||||
<li<%= sidebar_current("docs-env-sub-select") %>>
|
||||
<a href="/docs/commands/env/select.html">select</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-env-sub-new") %>>
|
||||
|
|
Loading…
Reference in New Issue