Skip to main content

tw workspaces

Manage workspaces

Run tw workspaces -h to view supported workspace operations.

Workspaces provide the context in which a user launches workflow executions, defines the available resources, and manages who can access those resources. Workspaces contain pipelines, runs, actions, datasets, compute environments, credentials, and secrets. Access permissions are controlled with participants, collaborators, and teams.

See User workspaces for more information.

tw workspaces list

List workspaces

tw workspaces list [OPTIONS]

Options

OptionDescriptionRequiredDefault
-o, --org, --organizationWorkspace organization nameNo

List all the workspaces in which you are a participant:

Command:

tw workspaces list

Example output:

Workspaces for default user:

Workspace ID | Workspace Name | Organization Name | Organization ID
-----------------+------------------+-------------------+-----------------
26002603030407 | shared-workspace | my-tower-org | 04303000612070

tw workspaces delete

Delete a workspace

tw workspaces delete [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idWorkspace identifierYes
-n, --nameWorkspace namespace in OrganizationName/WorkspaceName formatYes

tw workspaces add

Add a workspace

tw workspaces add [OPTIONS]

Options

OptionDescriptionRequiredDefault
-o, --org, --organizationWorkspace organization nameYes
-n, --nameUnique workspace name within the organization. Must be 2-40 characters, start and end with alphanumeric characters, and can contain hyphens or underscores between characters.Yes
-f, --full-nameFull display name for the workspace. Maximum 100 characters.Yes
-d, --descriptionOptional description of the workspace. Maximum 1000 characters.No
-v, --visibilityWorkspace visibility setting. Accepts PRIVATE (only participants can access) or SHARED (all organization members can view).No
--overwriteOverwrite the workspace if it already existsNofalse
note

Workspace management operations require organization OWNER permissions.

Run tw workspaces add -h to view the required and optional fields for adding your workspace.

In the example below, we create a shared workspace to be used for sharing pipelines with other private workspaces. See Shared workspaces for more information.

Command:

tw workspaces add --name=shared-workspace --full-name=shared-workspace-for-all  --org=my-tower-org --visibility=SHARED

Example output:

A 'SHARED' workspace 'shared-workspace' added for 'my-tower-org' organization
note

By default, a workspace is set to private when created.

tw workspaces update

Update a workspace

tw workspaces update [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idWorkspace identifierYes
--new-nameUpdated workspace name. Must be unique per workspace. Names consist of alphanumeric, hyphen, and underscore characters. Must be 2-40 characters.No
-f, --fullNameUpdated full display name for the workspace. Maximum 100 characters.No
-d, --descriptionUpdated workspace description. Maximum 1000 characters.No

tw workspaces view

View workspace details

tw workspaces view [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idWorkspace identifierYes
-n, --nameWorkspace namespace in OrganizationName/WorkspaceName formatYes

tw workspaces leave

Leave a workspace

tw workspaces leave [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idWorkspace identifierYes
-n, --nameWorkspace namespace in OrganizationName/WorkspaceName formatYes

tw workspaces settings

Manage workspace settings.

tw workspaces settings

tw workspaces settings studios

Manage Studios settings for a workspace.

tw workspaces settings studios

tw workspaces settings studios view

View the Studios settings of a workspace.

tw workspaces settings studios view [OPTIONS]
Options
OptionDescriptionRequiredDefault
-i, --idWorkspace identifierYes
-n, --nameWorkspace namespace in OrganizationName/WorkspaceName formatYes

tw workspaces settings studios update

Update the Studios settings of a workspace. Only the provided options are changed; the rest are left untouched.

tw workspaces settings studios update [OPTIONS]
Options
OptionDescriptionRequiredDefault
-i, --idWorkspace identifierYes
-n, --nameWorkspace namespace in OrganizationName/WorkspaceName formatYes
--container-repositoryDefault container repository used to store Studios container images built or augmented with Wave.No
--reset-container-repositoryClear the default container repository.No
--name-strategyWave strategy used to name Studios container images. Valid values: none, tagPrefix, imageSuffix.No
--reset-name-strategyClear the container image naming strategy.No
--lifespan-hoursMaximum lifespan, in hours, of a Studio session before it is automatically stopped. Set to 0 for unlimited lifespan.No
--private-by-defaultWhether new Studios are private by default (use --no-private-by-default to disable).No