terraform workspace new <workspace name>
Create a new workspace
Arguments
Name | Description |
---|---|
workspace name |
Options
Name | Description |
---|---|
-lock <true or false> | Lock the state file when locking is supported. Defaults to true |
-lock-timeout <seconds> | Duration to retry a stae lock. Default 0s |
-state <path> | Path to an existing state file to initialize the state of this environment |
-help | Show this help output, or the help for a specified subcommand |
-chdir <arg> | Switch to a different working directory before executing the given subcommand |
-version | Show the current Terraform version |