tw is Seqera Platform on the command line. It brings Seqera concepts like pipelines, actions, and compute environments to the terminal.
Seqera Platform is a full-stack application for the management of data pipelines and compute resources. It enables collaborative data analysis at scale, on-premises or in any cloud.
The CLI interacts with Platform to provide an interface to launch pipelines, manage cloud resources, and administer your analysis.
See the Platform CLI documentation.
-
Download the latest version for your OS.
-
Rename the file and and make it executable:
mv tw-* tw chmod +x ./tw -
Move the file to a directory accessible to your
$PATHvariable:sudo mv tw /usr/local/bin/
The CLI requires an access token to interact with your Seqera Platform instance. Select User tokens from the user menu in the Platform UI, then select Add token to create a new token.
Copy the access token value and use it with the CLI in one of two ways:
-
Environment variable:
- Export the token as a shell variable directly into your terminal:
export TOWER_ACCESS_TOKEN=<your access token>
- Add the
exportcommand to your.bashrc,.zshrc, or.bash_profilefile for it to be permanently added to your environment.
-
tw command flag:
Provide the access token directly in your
twcommand with--access-token:tw --access-token=<your access token> <other options>
If required, configure the following optional environment variables using the same methods above:
TOWER_WORKSPACE_ID: Workspace ID. Default: Your user workspace.TOWER_API_ENDPOINT: Seqera Platform API URL. Default:api.cloud.seqera.io.
:::tip
Find your TOWER_WORKSPACE_ID from the Workspaces tab on your organization page. Alternatively, list all the workspaces your token can access with tw workspaces list and copy the workspace ID from the command output.
:::
Confirm the installation, configuration, and connection:
tw info
Details
-------------------------+----------------------
Tower API endpoint | <TOWER_API_ENDPOINT>
Tower API version | 1.25.0
Tower version | 24.2.0_cycle22
CLI version | 0.9.4 (f3e846e)
CLI minimum API version | 1.15
Authenticated user | <username>
System health status
---------------------------------------+------------------
Remote API server connection check | OK
Tower API version check | OK
Authentication API credential's token | OKSee Commands for detailed instructions.
See the Installation docs for more information on building binary development versions of the CLI.
Run a non-binary development version by executing the ./tw script in the root of this repository.
