testform workspace
testform workspace <subcommand> [options] [args]The testform workspace command manages separate working states (workspaces) within the same configuration directory.
Workspaces allow you to manage multiple distinct environments (such as staging, production, qa-env-1, or release-2.0) using the exact same .feature test files, with completely isolated state files and remote issues.
Subcommands
Section titled “Subcommands”1. testform workspace list
Section titled “1. testform workspace list”Lists all existing workspaces. An asterisk * indicates the active workspace:
$ testform workspace list default* staging production2. testform workspace new <name>
Section titled “2. testform workspace new <name>”Creates a new, empty workspace and selects it:
$ testform workspace new release-2.0Created and switched to workspace "release-2.0"!
You're now on a new, empty workspace. Workspaces isolate their state,so if you run "testform plan", Testform will not see any existing "default" resources.3. testform workspace select <name>
Section titled “3. testform workspace select <name>”Switches to an existing workspace:
$ testform workspace select productionSwitched to workspace "production".4. testform workspace show
Section titled “4. testform workspace show”Displays the name of the currently active workspace:
$ testform workspace showproduction5. testform workspace delete <name>
Section titled “5. testform workspace delete <name>”Deletes a workspace. The workspace must be completely empty (all resources destroyed) before it can be deleted:
testform workspace delete old-sprint-38State Isolation in Remote Backends
Section titled “State Isolation in Remote Backends”When using a remote backend (such as S3), Testform stores workspace states under isolated prefixes:
defaultworkspace:my-bucket/testform.statestagingworkspace:my-bucket/env:/staging/testform.stateproductionworkspace:my-bucket/env:/production/testform.state
Exit Codes
Section titled “Exit Codes”0: Workspace command succeeded.1: Workspace already exists, does not exist, or could not be deleted.