Skip to content

Commit 5f35c78

Browse files
armonmitchellh
authored andcommitted
website: Update CLI flags for existing commands
1 parent 493eaa3 commit 5f35c78

4 files changed

Lines changed: 34 additions & 4 deletions

File tree

website/source/docs/commands/destroy.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Infrastructure managed by Terraform will be destroyed. This will ask for
1919
confirmation before destroying.
2020

2121
This command accepts all the flags that the
22-
[apply command](/docs/commands/apply.html) accepts. If `-input=false` is
22+
[apply command](/docs/commands/apply.html) accepts. If `-force` is
2323
set, then the destroy confirmation will not be shown.

website/source/docs/commands/init.html.markdown

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,24 @@ information from the module (such as Git history) will not be copied.
2424
The directory being initialized must be empty of all Terraform configurations.
2525
If the module has other files which conflict with what is already in the
2626
directory, they _will be overwritten_.
27+
28+
The command-line options available are a subset of the ones for the
29+
[remote command](/docs/commands/remote.html), and are used to initialize
30+
a remote state configuration if provided.
31+
32+
The command-line flags are all optional. The list of available flags are:
33+
34+
* `-address=url` - URL of the remote storage server. Required for HTTP backend,
35+
optional for Atlas and Consul.
36+
37+
* `-access-token=token` - Authentication token for state storage server.
38+
Required for Atlas backend, optional for Consul.
39+
40+
* `-backend=atlas` - Specifies the type of remote backend. Must be one
41+
of Atlas, Consul, or HTTP. Defaults to atlas.
42+
43+
* `-name=name` - Name of the state file in the state storage server.
44+
Required for Atlas backend.
45+
46+
* `-path=path` - Path of the remote state in Consul. Required for the Consul backend.
47+

website/source/docs/commands/plan.html.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ The command-line flags are all optional. The list of available flags are:
2828

2929
* `-destroy` - If set, generates a plan to destroy all the known resources.
3030

31+
* `-input=true` - Ask for input for variables if not directly set.
32+
33+
* `-module-depth=n` - Specifies the depth of modules to show in the output.
34+
This does not affect the plan itself, only the output shown. By default,
35+
this is zero. -1 will expand all.
36+
3137
* `-no-color` - Disables output with coloring.
3238

3339
* `-out=path` - The path to save the generated execution plan. This plan

website/source/docs/commands/show.html.markdown

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ as terraform sees it.
1515

1616
## Usage
1717

18-
Usage: `terraform show [options] <path>`
18+
Usage: `terraform show [options] [path]`
1919

20-
You must call `show` with a path to either a Terraform state file or plan
21-
file.
20+
You must may `show` with a path to either a Terraform state file or plan
21+
file. If no path is specified, the current state will be shown.
2222

2323
The command-line flags are all optional. The list of available flags are:
2424

25+
* `-module-depth=n` - Specifies the depth of modules to show in the output.
26+
By default this is zero. -1 will expand all.
27+
2528
* `-no-color` - Disables output with coloring
2629

0 commit comments

Comments
 (0)