seqeralabs / tower-cli

Nextflow Tower CLI tool
Apache License 2.0
42 stars 9 forks source link

Add support for Data Studios functionality (add, list, delete, start, connect) #386

Open robnewman opened 7 months ago

robnewman commented 7 months ago

Add a new command:

tw studios

that interacts with the Data Studios API endpoints. Use the TOWER_WORKSPACE_ID env variable or the --workspace parameter to change the default Workspace used by the CLI (the user Workspace).

tw studios add \
    --name=my_datastudio_name \
    --compute-env=my_aws_ce \
    --cpus=8 \
    --memory=8192 \
    --mount-data=<data-link-1> \
    --mount-data=<data-link-2>               # add a new data studio session to a workspace with one or more data-links mounted, returns the data studio session_id and the data studio collaborate URL
tw studios list                              # list all data studio sessions in a workspace
tw studios delete --name=my_datastudio_name  # delete data studio session from a workspace
tw studios start --name=my_datastudio_name   # start a data studio session
tw studios connect --name=my_datastudio_name # connect to a running data studio session (opens Data Studios Connection in a new browser tab)
pditommaso commented 7 months ago

tw data-studios is boring to type, tw studios can be a better command name