curl -fsSL https://raw.githubusercontent.com/elixir-oslo/lega-commander/master/install.sh | sudo sh
curl -fsSL https://raw.githubusercontent.com/elixir-oslo/lega-commander/master/install.sh | sh
Go to the releases page and download the latest binary manually.
Before using the app, make sure all the environment variables required for authentication are set:
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.
lega-commander [inbox | outbox | resumables | upload | download] <args>
-l, --list Lists uploaded files
-d, --delete= Deletes uploaded file by name
-l, --list Lists exported files
-l, --list Lists resumable uploads
-d, --delete= Deletes resumable upload by ID
-f, --file=FILE File or folder to upload
-r, --resume Resumes interrupted upload
-f, --file= File to download