diff --git a/website/docs/cli/commands/workspace/list.html.md b/website/docs/cli/commands/workspace/list.html.md index 0b0f842a1..2114a60c6 100644 --- a/website/docs/cli/commands/workspace/list.html.md +++ b/website/docs/cli/commands/workspace/list.html.md @@ -12,7 +12,7 @@ The `terraform workspace list` command is used to list all existing workspaces. ## Usage -Usage: `terraform workspace list` +Usage: `terraform workspace list [DIR]` The command will list all existing workspaces. The current workspace is indicated using an asterisk (`*`) marker. diff --git a/website/docs/cli/commands/workspace/new.html.md b/website/docs/cli/commands/workspace/new.html.md index 7b76b0cbc..0caac8b08 100644 --- a/website/docs/cli/commands/workspace/new.html.md +++ b/website/docs/cli/commands/workspace/new.html.md @@ -12,7 +12,7 @@ The `terraform workspace new` command is used to create a new workspace. ## Usage -Usage: `terraform workspace new [NAME]` +Usage: `terraform workspace new [OPTIONS] NAME [DIR]` This command will create a new workspace with the given name. A workspace with this name must not already exist. @@ -20,9 +20,11 @@ this name must not already exist. If the `-state` flag is given, the state specified by the given path will be copied to initialize the state for this new workspace. -The command-line flags are all optional. The only supported flag is: +The command-line flags are all optional. The supported flags are: -* `-state=path` - Path to a state file to initialize the state of this environment. +* `-lock` - Lock the state file when locking is supported. Defaults to true. +* `-lock-timeout` - Duration to retry a state lock. Default 0s. +* `-state=path` - Path to an existing state file to initialize the state of this environment. ## Example: Create diff --git a/website/docs/cli/commands/workspace/select.html.md b/website/docs/cli/commands/workspace/select.html.md index eaadd59b6..08170a61e 100644 --- a/website/docs/cli/commands/workspace/select.html.md +++ b/website/docs/cli/commands/workspace/select.html.md @@ -13,7 +13,7 @@ workspace to use for further operations. ## Usage -Usage: `terraform workspace select [NAME]` +Usage: `terraform workspace select NAME [DIR]` This command will select another workspace. The named workspace must already exist.