# README
lega-commander
Installation / Update
Linux
curl -fsSL https://raw.githubusercontent.com/elixir-oslo/lega-commander/master/install.sh | sudo sh
MacOS
curl -fsSL https://raw.githubusercontent.com/elixir-oslo/lega-commander/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-commander
lega-commander [inbox | outbox | resumables | upload | download] <args>
inbox:
-l, --list Lists uploaded files
-d, --delete= Deletes uploaded file by name
outbox:
-l, --list Lists exported files
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
download:
-f, --file= File to download
# Packages
Package conf contains structure and methods to create/load configuration for the application.
Package files contains structures and methods for listing or deleting uploaded files.
Package requests contains structure an helper methods for performing HTTP requests towards LocalEGA instance.
Package resuming contains structures and methods for listing or resuming uploads.
Package streaming contains structure and methods for uploading and downloading files from LocalEGA instance.