The commandline client is a commandline tool for using the reference clients.

It currently supports the operations GetFile, GetFileIDs, GetChecksums, PutFile, and DeleteFile.

Installation

Download the chosen version of the bitrepository-command-line-XXX-distributed.tar.gz from here (XXX refers to the version):

https://sbforge.org/nexus/content/repositories/releases/org/bitrepository/reference/bitrepository-command-line/

Unpack the file in any wanted location, eg. 

tar -xvf bitrepository-command-line-XXX-distributed.tar.gz

It requires a 'conf' sub-directory to the installation which contain all the settings, etc. for the setup of the collection. This can be done in either of the two ways:

Certificate

If secure communication is used for this bit repository, a certificate configured in the repository settings, needs to be added. 

  1. Update the ~/init.sh file to point to the relevant certificate.

Execute

Scripts have been made for easily running the commandline commands.

The following parameters for the commandline client is set by these scripts:

If the commandline client is wanted to be used without the scripts, then these arguments are mandatory.

Execute the different commands in the following way:

GetFile

Perform the GetFile by running the 'GetFile.sh' script. It takes the following arguments:

GetFileIDs

Perform the GetFileIDs by running the 'GetFileIDs.sh' script. It takes the following arguments:

GetChecksum

Perform the GetChecksum by running the 'GetChecksum.sh' script. It takes the following arguments:

PutFile

Perform the PutFile by running the 'PutFile.sh' script. It takes the following arguments:

DeleteFile

Perform the DeleteFile by running the 'DeleteFile.sh' script. It takes the following arguments: