File tree Expand file tree Collapse file tree
website/source/docs/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,5 +19,5 @@ Infrastructure managed by Terraform will be destroyed. This will ask for
1919confirmation before destroying.
2020
2121This 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
2323set, then the destroy confirmation will not be shown.
Original file line number Diff line number Diff line change @@ -24,3 +24,24 @@ information from the module (such as Git history) will not be copied.
2424The directory being initialized must be empty of all Terraform configurations.
2525If the module has other files which conflict with what is already in the
2626directory, 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+
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
2323The 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
You can’t perform that action at this time.
0 commit comments