Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

BaseSpace CLI issues

90 views
Skip to first unread message

Ziv Lang

unread,
Jun 6, 2022, 6:52:29 AM6/6/22
to basespace-developers

Hello.

I'm attempting to use the BaseSpace CLI for downloading a project's SampleSheet.csv. I tried using the downloading flag --include, but it wasn't recognized by the CLI. The command I typed was with the following structure:

bs download project -n <project name> --include 'SampleSheet.csv' -o <output path>

Also, downloading with the CLI was very slow. Is there a way to improve that?

Thanks.

Ben Moore

unread,
Jun 7, 2022, 4:43:23 AM6/7/22
to basespace-developers
Hello,

Check you are using a recent CLI version, the latest is v1.5.1, then see the docs on include / exclude advanced filtering: https://developer.basespace.illumina.com/docs/content/documentation/cli/cli-examples#Advancedfiltering

By default all files are included, so just supplying --include will have no effect, you first need to exclude everything first: --exclude '*' --include 'SampleSheet.csv'

Other things that could be slowing your command down:
  • You're looking up a project by name, so the CLI has to iterate over all projects in the account. If you use a project ID instead that won't happen
  • You're filtering individual files from a project which may contain many files, so the CLI has to first iterate over all files in that project. If you first find the file ID and use that with 'bs download file -i <fileID>' the download will start instantly

Hope that helps,
Ben

Ziv Lang

unread,
Jun 7, 2022, 5:32:34 AM6/7/22
to basespace-developers
Thank you for the reply.
I don't know where bs is installed (it wasn't installed by me), and I wish to first remove the previous version. I couldn't find a way to locate the program.. Do you have an idea how to do that?

ב-יום שלישי, 7 ביוני 2022 בשעה 11:43:23 UTC+3, Ben Moore כתב/ה:

Ziv Lang

unread,
Jun 7, 2022, 5:52:59 AM6/7/22
to basespace-developers
Nevermind. I found it.

ב-יום שלישי, 7 ביוני 2022 בשעה 11:43:23 UTC+3, Ben Moore כתב/ה:
Hello,

Ziv Lang

unread,
Jun 17, 2022, 2:20:51 PM6/17/22
to basespace-developers
Hi Ben.
I'm trying you suggestion and it seems to work, only that it's steel very slow. I think it took over 10 minutes. Any idea why could be the issue?
ב-יום שלישי, 7 ביוני 2022 בשעה 11:43:23 UTC+3, Ben Moore כתב/ה:
Hello,

Ziv Lang

unread,
Jun 20, 2022, 3:03:57 AM6/20/22
to basespace-developers
I think it's ok now. Thanks.

ב-יום שישי, 17 ביוני 2022 בשעה 21:20:51 UTC+3, ‪Ziv Lang‬‏ כתב/ה:
Reply all
Reply to author
Forward
0 new messages