Skip to main content

tw 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.

tw workspaces list

List workspaces.

tw workspaces list [OPTIONS]

Options

OptionDescriptionRequiredDefault
-o, --org, --organizationWorkspace organization nameNonull

List all the workspaces in which you are a participant.

Example

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 identifierNonull
-n, --nameWorkspace namespace in OrganizationName/WorkspaceName formatNonull

tw workspaces add

Add a workspace.

tw workspaces add [OPTIONS]

Options

OptionDescriptionRequiredDefault
-o, --org, --organizationWorkspace organization nameYesnull
-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.Yesnull
-f, --full-nameFull display name for the workspace. Maximum 100 characters.Yesnull
-d, --descriptionOptional description of the workspace. Maximum 1000 characters.Nonull
-v, --visibilityWorkspace visibility setting. Accepts PRIVATE (only participants can access) or SHARED (all organization members can view).Nonull
--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.

Example

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 identifierYesnull
--new-nameUpdated workspace name. Must be unique per workspace. Names consist of alphanumeric, hyphen, and underscore characters. Must be 2-40 characters.Nonull
-f, --fullNameUpdated full display name for the workspace. Maximum 100 characters.Nonull
-d, --descriptionUpdated workspace description. Maximum 1000 characters.Nonull

tw workspaces view

View workspace details.

tw workspaces view [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idWorkspace identifierNonull
-n, --nameWorkspace namespace in OrganizationName/WorkspaceName formatNonull

Example

Command:

tw workspaces view -i 123456789012345

Example output:

Details for workspace 'Workspace one'


--------------+------------------------------------------------
ID | 123456789012345
Name | my-workspace
Full Name | Workspace one
Description | Workspace created with seqerakit CLI scripting
Visibility | SHARED

tw workspaces update

Update a workspace.

tw workspaces update [OPTIONS]

Options

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

Example

Command:

tw workspaces update -i 123456789012345 --new-name my-workspace-updated

Example output:

A 'SHARED' workspace 'my-workspace' updated for 'my-organization-updated' organization

tw workspaces delete

Delete a workspace.

tw workspaces delete [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idWorkspace identifierNonull
-n, --nameWorkspace namespace in OrganizationName/WorkspaceName formatNonull

Example

Command:

tw workspaces delete -i 222333444555667

Example output:

Workspace 'test-workspace' deleted for organization5 organization

tw workspaces leave

Leave a workspace.

tw workspaces leave [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idWorkspace identifierNonull
-n, --nameWorkspace namespace in OrganizationName/WorkspaceName formatNonull

Example

Command:

tw workspaces leave -i 222333444555668

Example output:



You have been removed as a participant from 'new-workspace' workspace