@ -31,17 +31,34 @@ a remote state configuration if provided.
The command-line flags are all optional. The list of available flags are:
* `-address=url` - URL of the remote storage server. Required for HTTP backend,
optional for Atlas and Consul.
* `-backend=atlas` - Specifies the type of remote backend. Must be one
of Atlas, Consul, S3, or HTTP. Defaults to Atlas.
* `-access-token=token` - Authentication token for state storage server.
Required for Atlas backend, optional for Consul.
* `-backend-config="k=v"` - Specify a configuration variable for a backend. This is how you set the required variables for the selected backend (as detailed in the [remote command documentation](/docs/command/remote.html).
* `-backend=atlas` - Specifies the type of remote backend. Must be one
of Atlas, Consul, or HTTP. Defaults to atlas.
* `-name=name` - Name of the state file in the state storage server.
Required for Atlas backend.
## Example: Consul
This example will initialize the current directory and configure Consul remote storage: