Skip to content

uio-bmi/lega-uploader

Repository files navigation

lega-uploader

Build Status GoDoc CodeFactor Go Report Card codecov Dependabot Status DeepSource

Installation / Update

Linux

curl -fsSL https://raw.githubusercontent.com/uio-bmi/lega-uploader/master/install.sh | sudo sh

MacOS

curl -fsSL https://raw.githubusercontent.com/uio-bmi/lega-uploader/master/install.sh | sh

Windows

Go to the releases page and download the latest binary manually.

Configuration

Before using the app, make sure all the environment variables required for authentication are set:

export CENTRAL_EGA_USERNAME=...
export CENTRAL_EGA_PASSWORD=...
export ELIXIR_AAI_TOKEN=...

NB: ELIXIR_AAI_TOKEN has an expiration time of nearly two hours, so one would need to re-obtain and re-set it upon expiration.

Also, the tool is pre-configured to work with Norwegian Federated EGA instance: https://ega.elixir.no If you want to specify another instance, you can set LOCAL_EGA_INSTANCE_URL environment variable.

Usage

$ lega-uploader
lega-uploader [files | resumables | upload] <args>

 files:
  -l, --list    Lists uploaded files
  -d, --delete= Deletes uploaded file by name

 resumables:
  -l, --list    Lists resumable uploads
  -d, --delete= Deletes resumable upload by ID

 upload:
  -f, --file=FILE    File or folder to upload
  -r, --resume       Resumes interrupted upload