terraform workspace new <workspace name>

Create a new workspace

Arguments

NameDescription
workspace name

Options

NameDescription
-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
-helpShow this help output, or the help for a specified subcommand
-chdir <arg>Switch to a different working directory before executing the given subcommand
-versionShow the current Terraform version