Skip to main content

tw credentials

Manage workspace credentials

To launch pipelines in a Platform workspace, you need credentials for:

  1. Compute environments
  2. Pipeline repository Git providers
  3. (Optional) Tower agent — used with HPC clusters
  4. (Optional) Container registries, such as docker.io

tw credentials add​

Add workspace credentials

tw credentials add

Run tw credentials add -h to view a list of providers.

Run tw credentials add <provider> -h to view the required fields for your provider.

note

You can add multiple credentials from the same provider in the same workspace.

Compute environment credentials​

Platform requires credentials to access your cloud compute environments. See the compute environment page for your cloud provider for more information.

Command:

tw credentials add aws --name=my_aws_creds --access-key=<aws access key> --secret-key=<aws secret key>

Example output:

New AWS credentials 'my_aws_creds (1sxCxvxfx8xnxdxGxQxqxH)' added at user workspace

Git credentials​

Platform requires access credentials to interact with pipeline Git repositories. See Git integration for more information.

Command:

tw credentials add github -n=my_GH_creds -u=<GitHub username> -p=<GitHub access token>

Example output:

New GITHUB credentials 'my_GH_creds (xxxxx3prfGlpxxxvR2xxxxo7ow)' added at user workspace

Container registry credentials​

Configure credentials for the Nextflow Wave container service to authenticate to private and public container registries. See the Container registry credentials section under Credentials for registry-specific instructions.

note

Container registry credentials are only used by the Wave container service. See Wave containers for more information.

tw credentials add aws​

Add AWS credentials

tw credentials add aws [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
-a, --access-keyAWS access key identifier. Part of AWS IAM credentials used for programmatic access to AWS services.No
-s, --secret-keyAWS secret access key. Part of AWS IAM credentials used for programmatic access to AWS services. Keep this value secure.No
-r, --assume-role-arnIAM role ARN to assume for accessing AWS resources. Allows cross-account access or privilege elevation. Must be a fully qualified ARN (e.g., arn:aws:iam::123456789012:role/RoleName).No
--modeAWS credential mode: 'keys' (access key + secret key) or 'role' (IAM role only). Default: keys.No
--generate-external-idGenerate a platform-managed External ID for the credential (used with IAM role ARN).Nofalse

tw credentials add codecommit​

Add CodeCommit credentials

tw credentials add codecommit [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
--base-urlRepository base URL.No
--access-keyAWS access key identifier for CodeCommit authentication. Part of AWS IAM user credentials with CodeCommit permissions.Yes
--secret-keyAWS secret access key for CodeCommit authentication. Part of AWS IAM user credentials with CodeCommit permissions. Keep this value secure.Yes

tw credentials add google​

Add Google credentials

tw credentials add google [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
-k, --keyPath to JSON file containing Google Cloud service account key. Download from Google Cloud Console IAM & Admin > Service Accounts.No
--modeGoogle credential mode: 'service-account-key' (JSON key file) or 'workload-identity' (WIF with OIDC tokens). Default: service-account-key.No
--service-account-emailThe email address of the Google Cloud service account to impersonate (required for workload-identity mode).No
--workload-identity-providerThe full resource name of the Workload Identity Pool provider. Format: projects/{PROJECT}/locations/global/workloadIdentityPools/{POOL}/providers/{PROVIDER}No
--token-audienceOptional. The intended audience for the OIDC token. If not specified, defaults to the Workload Identity Provider resource name.No

tw credentials add github​

Add Github credentials

tw credentials add github [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
--base-urlRepository base URL.No
-u, --usernameGitHub username for repository authentication.Yes
-p, --passwordGitHub password or personal access token. Use of personal access tokens is recommended for security. Generate tokens at Settings > Developer settings > Personal access tokens.Yes

tw credentials add gitlab​

Add Gitlab credentials

tw credentials add gitlab [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
--base-urlRepository base URL.No
-u, --usernameGitLab username for repository authentication.Yes
-p, --passwordGitLab account password. Use of personal access tokens (--token) is recommended for security.Yes
-t, --tokenGitLab personal access token. Recommended authentication method. Generate tokens at User Settings > Access Tokens with appropriate scopes (api, read_repository, write_repository).Yes

tw credentials add gitea​

Add Gitea credentials

tw credentials add gitea [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
--base-urlRepository base URL.No
-u, --usernameGitea username for repository authentication.Yes
-p, --passwordGitea account password or access token. For security, consider using access tokens. Generate tokens in Gitea Settings > Applications.Yes

tw credentials add bitbucket​

Add Bitbucket credentials

tw credentials add bitbucket [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
--base-urlRepository base URL.No
-u, --usernameBitbucket username for repository authentication.Yes
-p, --passwordBitbucket app password or access token. App passwords are recommended for API access. Create app passwords in Bitbucket Settings > Personal settings > App passwords.Yes

tw credentials add ssh​

Add SSH credentials

tw credentials add ssh [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
-k, --keyPath to SSH private key file for authentication. Supports RSA, DSA, ECDSA, and Ed25519 key formats.Yes
-p, --passphrasePassphrase for encrypted SSH private key. Leave empty if the private key is not encrypted.No

tw credentials add k8s​

Add Kubernetes credentials

tw credentials add k8s [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
-t, --tokenKubernetes service account token for authentication. Alternative to certificate-based authentication.Yes
-c, --certificatePath to Kubernetes client certificate file (PEM format). Used with private key for certificate-based authentication.No
-k, --private-keyPath to Kubernetes client private key file (PEM format). Used with certificate for certificate-based authentication.No

tw credentials add azure​

Add Azure credentials

tw credentials add azure [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
--batch-keyAzure Batch account access key. Used for authentication to Azure Batch service for compute resource management.Yes
--batch-nameAzure Batch account name. The name of the Azure Batch account used for workflow execution.Yes
--storage-keyAzure Storage account access key. Used for authentication to Azure Blob Storage for workflow data storage.Yes
--storage-nameAzure Storage account name. The name of the Azure Storage account used for workflow data and logs.Yes

tw credentials add azure-entra​

Add Azure Entra service principal credentials

tw credentials add azure-entra [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
--batch-nameAzure Batch account name. The name of the Azure Batch account used for workflow execution.Yes
--storage-nameAzure Storage account name. The name of the Azure Storage account used for workflow data and logs.Yes
--tenant-idAzure Entra tenant ID. The directory (tenant) ID of the Entra application.Yes
--client-idAzure Entra client ID. The application (client) ID of the Entra service principal.Yes
--client-secretAzure Entra client secret. The secret value of the Entra service principal.Yes

tw credentials add agent​

Add Tower Agent credentials

tw credentials add agent [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
--connection-idSeqera Platform Agent connection identifier. Unique identifier for the agent connection used to execute workflows.Yes
--work-dirDefault work directory path for workflow execution on the agent. Must be accessible to the agent process. Default: $TW_AGENT_WORK.No$TW_AGENT_WORK

tw credentials add container-reg​

Add Container Registry credentials

tw credentials add container-reg [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-n, --nameCredentials name.Yes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--overwriteOverwrite the credentials if it already exists.Nofalse
-u, --usernameUsername for container registry authentication. Used to access private container images.Yes
-p, --passwordPassword or access token for container registry authentication. For enhanced security, use registry-specific access tokens where available.Yes
-r, --registryContainer registry server hostname. Examples: docker.io (Docker Hub), quay.io (Quay), ghcr.io (GitHub Container Registry). Default: docker.io.Nodocker.io

tw credentials update​

Update workspace credentials

tw credentials update

tw credentials update aws​

Update AWS credentials

tw credentials update aws [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-a, --access-keyAWS access key identifier. Part of AWS IAM credentials used for programmatic access to AWS services.No
-s, --secret-keyAWS secret access key. Part of AWS IAM credentials used for programmatic access to AWS services. Keep this value secure.No
-r, --assume-role-arnIAM role ARN to assume for accessing AWS resources. Allows cross-account access or privilege elevation. Must be a fully qualified ARN (e.g., arn:aws:iam::123456789012:role/RoleName).No
--modeAWS credential mode: 'keys' (access key + secret key) or 'role' (IAM role only). Default: keys.No
--generate-external-idGenerate a platform-managed External ID for the credential (used with IAM role ARN).Nofalse

tw credentials update codecommit​

Update CodeCommit credentials

tw credentials update codecommit [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--base-urlRepository base URL.No
--access-keyAWS access key identifier for CodeCommit authentication. Part of AWS IAM user credentials with CodeCommit permissions.Yes
--secret-keyAWS secret access key for CodeCommit authentication. Part of AWS IAM user credentials with CodeCommit permissions. Keep this value secure.Yes

tw credentials update google​

Update Google credentials

tw credentials update google [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-k, --keyPath to JSON file containing Google Cloud service account key. Download from Google Cloud Console IAM & Admin > Service Accounts.No
--modeGoogle credential mode: 'service-account-key' (JSON key file) or 'workload-identity' (WIF with OIDC tokens). Default: service-account-key.No
--service-account-emailThe email address of the Google Cloud service account to impersonate (required for workload-identity mode).No
--workload-identity-providerThe full resource name of the Workload Identity Pool provider. Format: projects/{PROJECT}/locations/global/workloadIdentityPools/{POOL}/providers/{PROVIDER}No
--token-audienceOptional. The intended audience for the OIDC token. If not specified, defaults to the Workload Identity Provider resource name.No

tw credentials update github​

Update Github credentials

tw credentials update github [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--base-urlRepository base URL.No
-u, --usernameGitHub username for repository authentication.Yes
-p, --passwordGitHub password or personal access token. Use of personal access tokens is recommended for security. Generate tokens at Settings > Developer settings > Personal access tokens.Yes

tw credentials update gitlab​

Update Gitlab credentials

tw credentials update gitlab [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--base-urlRepository base URL.No
-u, --usernameGitLab username for repository authentication.Yes
-p, --passwordGitLab account password. Use of personal access tokens (--token) is recommended for security.Yes
-t, --tokenGitLab personal access token. Recommended authentication method. Generate tokens at User Settings > Access Tokens with appropriate scopes (api, read_repository, write_repository).Yes

tw credentials update bitbucket​

Update Bitbucket credentials

tw credentials update bitbucket [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--base-urlRepository base URL.No
-u, --usernameBitbucket username for repository authentication.Yes
-p, --passwordBitbucket app password or access token. App passwords are recommended for API access. Create app passwords in Bitbucket Settings > Personal settings > App passwords.Yes

tw credentials update ssh​

Update SSH credentials

tw credentials update ssh [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-k, --keyPath to SSH private key file for authentication. Supports RSA, DSA, ECDSA, and Ed25519 key formats.Yes
-p, --passphrasePassphrase for encrypted SSH private key. Leave empty if the private key is not encrypted.No

tw credentials update k8s​

Update Kubernetes credentials

tw credentials update k8s [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-t, --tokenKubernetes service account token for authentication. Alternative to certificate-based authentication.Yes
-c, --certificatePath to Kubernetes client certificate file (PEM format). Used with private key for certificate-based authentication.No
-k, --private-keyPath to Kubernetes client private key file (PEM format). Used with certificate for certificate-based authentication.No

tw credentials update azure​

Update Azure credentials

tw credentials update azure [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--batch-keyAzure Batch account access key. Used for authentication to Azure Batch service for compute resource management.Yes
--batch-nameAzure Batch account name. The name of the Azure Batch account used for workflow execution.Yes
--storage-keyAzure Storage account access key. Used for authentication to Azure Blob Storage for workflow data storage.Yes
--storage-nameAzure Storage account name. The name of the Azure Storage account used for workflow data and logs.Yes

tw credentials update azure-entra​

Update Azure Entra service principal credentials

tw credentials update azure-entra [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--batch-nameAzure Batch account name. The name of the Azure Batch account used for workflow execution.Yes
--storage-nameAzure Storage account name. The name of the Azure Storage account used for workflow data and logs.Yes
--tenant-idAzure Entra tenant ID. The directory (tenant) ID of the Entra application.Yes
--client-idAzure Entra client ID. The application (client) ID of the Entra service principal.Yes
--client-secretAzure Entra client secret. The secret value of the Entra service principal.Yes

tw credentials update container-reg​

Update Container Registry credentials

tw credentials update container-reg [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-u, --usernameUsername for container registry authentication. Used to access private container images.Yes
-p, --passwordPassword or access token for container registry authentication. For enhanced security, use registry-specific access tokens where available.Yes
-r, --registryContainer registry server hostname. Examples: docker.io (Docker Hub), quay.io (Quay), ghcr.io (GitHub Container Registry). Default: docker.io.Nodocker.io

tw credentials update agent​

Update new Tower Agent credentials

tw credentials update agent [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--connection-idSeqera Platform Agent connection identifier. Unique identifier for the agent connection used to execute workflows.Yes
--work-dirDefault work directory path for workflow execution on the agent. Must be accessible to the agent process. Default: $TW_AGENT_WORK.No$TW_AGENT_WORK

tw credentials delete​

Delete workspace credentials

tw credentials delete [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No

Command:

Command:

tw credentials delete --name=my_aws_creds

Example output:

Credentials '1sxCxvxfx8xnxdxGxQxqxH' deleted at user workspace

tw credentials list​

List workspace credentials

tw credentials list [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No

Command:

Command:

tw credentials list

Example output:

Credentials at user workspace:

ID | Provider | Name | Last activity
------------------------+-----------+------------------------------------+-------------------------------
1x1HxFxzxNxptxlx4xO7Gx | aws | my_aws_creds_1 | Wed, 6 Apr 2022 08:40:49 GMT
1sxCxvxfx8xnxdxGxQxqxH | aws | my_aws_creds_2 | Wed, 9 Apr 2022 08:40:49 GMT
2x7xNsf2xkxxUIxXKxsTCx | ssh | my_ssh_key | Thu, 8 Jul 2021 07:09:46 GMT
4xxxIeUx7xex1xqx1xxesk | github | my_github_cred | Wed, 22 Jun 2022 09:18:05 GMT

tw credentials validate​

Validate workspace credentials against their cloud provider

tw credentials validate [OPTIONS]

Options​

OptionDescriptionRequiredDefault
-i, --idCredentials unique identifierYes
-n, --nameCredentials nameYes
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--forceSkip the provider probe and force an INVALID credential to AVAILABLE. Rejected if the credential is not INVALID.No