Prepare for download

Before you begin

Complete these steps only after your access request has been approved. You will install the download tool, create a Crypt4GH key pair, and send us your public key before receiving download instructions.

Download the latest sda-cli release

Need help preparing for download? Contact the Helpdesk.

Install the download tool

Download the latest release of sda-cli from GitHub using the button above. Choose the asset that matches your operating system (Linux, macOS, or Windows) and system architecture (arm64 or x86_64). For macOS, the release asset names use Darwin.

  1. On the release page, download the .tar.gz file that matches your Linux system and architecture.

  2. Open a terminal, go to the directory where the file was downloaded, and extract it. For example:

    tar -xvzf sda-cli_vX.Y.Z_Linux_x86_64.tar.gz

The extracted file will be the sda-cli binary.

Note

You may want to move the sda-cli binary to a directory in your PATH such as /usr/local/bin to make it easier to run.

  1. On the release page, download the .tar.gz file that matches your macOS system and architecture.

  2. Open a terminal, go to the directory where the file was downloaded, and extract it. For example:

    tar -xvzf sda-cli_vX.Y.Z_Darwin_x86_64.tar.gz

The extracted file will be the sda-cli binary.

Note

You may want to move the sda-cli binary to a directory in your PATH such as /usr/local/bin to make it easier to run.

  1. On the release page, download the .zip file that matches your Windows system and architecture.

  2. Open Command Prompt, go to the directory where the file was downloaded, and extract it. For example:

    tar -xf sda-cli_vX.Y.Z_Windows_x86_64.zip

The extracted folder will contain the sda-cli.exe binary. Change into that folder before running the commands in the next step.

Note

You can also extract the .zip file by right-clicking it in File Explorer and selecting Extract All….

Generate a Crypt4GH key pair

Use sda-cli to generate a public and private key pair. In the examples below, mykey is a filename prefix of your choice:

./sda-cli createKey mykey
./sda-cli createKey mykey
sda-cli.exe createKey mykey

This creates two files:

  • mykey.pub.pem — your public key
  • mykey.sec.pem — your private key
Caution

Do not delete or share your private key (mykey.sec.pem). You will need it to decrypt the files after download.

Email your public key to FEGA Sweden

Attach your public key file (mykey.pub.pem) to an email and send it to fega-sweden@nbis.se.

Once we have received your public key, we will encrypt the approved files for you and provide instructions on how to download them.