Use the Seven Bridges Command Line Interface (SB CLI) to programmatically access and automate your interaction with the Platform via the API. The CLI is called by a simple command:
The Seven Bridges Command Line Interface can be installed using an automated procedure or manually, as shown below.
Perform an automated installation with the following command:
curl https://igor.sbgenomics.com/downloads/sb/install.sh -sSf | sudo sh
During the installation, the script will:
- Download the SB binary.
- Install the SB binary.
bashcompletion for SB. Note that this only works with
bashcompletion version 4, which should have been previously installed.
manpages for SB.
During the procedure you will see information on whether each of the steps were successful or not. Upon completion, the script will inform you if SB has been successfully installed.
Download the SB executable file for your environment:
Change file permissions so you are able to run the executable
(chmod +x sb).
- (Optional) Manually add bash completion for SB:
a) for Linux
sb gen completion --type bash --completionfile /etc/bash_completion.d/sb.bash-completion
b) for macOS with Brew installed
sb gen completion --type bash --completionfile $(brew --prefix)/etc/bash_completion.d/sb.bash-completion
- (Optional) Add manual pages for SB:
sb gen man --dir `manpath | cut -d ':' -f 1`
Prior to using the Seven Bridges Command Line Interface, you must enter your credentials to authenticate with the Platform. For this, you will need to know the following information:
- API endpoint for the Seven Bridges Platform:
Your authentication token.
Launch the command line and enter the following:
- Enter the API endpoint when prompted.
- Enter your authentication token.
Learn more about storing your credentials in a unified configuration file.
The Seven Bridges Command Line Interface allows you to use profiles for the credentials allowing you to access multiple user accounts. Each profile contains an endpoint and an auth token. The profiles are set up within the configuration file.
Use the following option to specify a profile:
Once you’ve installed and configured the Seven Bridges Command Line Interface as described above, check out our Seven Bridges Command Line Interface Reference to get started.
Updated about a year ago