1.1.0 • Published 5 years ago

distribox-explorer v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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
1.1.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago