distribox-explorer
v1.1.0
Published
Distribox explorer is a command line tool allowing to browse, download, delete files on a bucket on the distribox using the REST API.
Downloads
8
Readme
DistEx
Distribox explorer is a command line tool allowing to browse, download, delete files on a bucket on the distribox using the REST API.
Pre-requisite
Install NodeJs on Windows
https://nodejs.org/dist/v10.15.3/node-v10.15.3-x64.msi
Install Nodejs on Mac
https://nodejs.org/dist/v10.15.3/node-v10.15.3.pkg
Install Nodejs on Linux
https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-x64.tar.xz
Installation
The following command will install it globally to be available in any terminal, any folder
npm install distribox-explorer -g
Usage
distex --token=PUT_YOUR_TOKEN_HERE --server=http://mig.distribox.in.int-a.test1.paas.amadeus.net/v1/bucket
Switch bucket
set bucket AGP-SBR-MIG-AC-BAK
List content of the bucket
ls
Sort listing by size
ls size
Sort listing by size inverted
ls -size
Download a file called NAME_OF_A_FILE
dl NAME_OF_A_FILE
Be careful with the following ones Remove a file called NAME_OF_A_FILE
rm NAME_OF_A_FILE
Empty the bucket with a sleep of 1 second
rm *
To leave the command line
quit