-
mvn package
-
Get the full path for the /target/xpx-cli-0.1.0-beta.1-SNAPSHOT.jar and add it in
proximax
script:#!/bin/bash # proximax # {$} is a directory where you store the project java -jar {$}/xpx-cli/target/xpx-cli-0.1.0-beta.1-SNAPSHOT.jar $@
-
chmod +x proximax
-
Copy the script to your local bin to execute
cp proximax /usr/local/bin
-
Check connection configuration at
configs/connection.json
-
Run
proximax
from anywhere and don't forget to use either-r
(remote connection) flag or-l
(local connection) flag
>proximax help
usage: proximax <command> [ <args> ]
Commands are:
announce Set credentials for ProximaX SDK
clear Remove your private/public key
download Download the file
help Display help information
search Search using Keywords
upload Upload the file
version Show the version of ProximaX SDK
whoami Check the private key you have
See 'proximax help <command>' for more information on a specific command.
To use a ProximaX SDK you have to provide a private and public keys.
>proximax help announce
NAME
proximax announce - Set credentials to use a ProximaX SDK
SYNOPSIS
proximax announce [ {-b | --public} <Receiver public key> ]
[ {-p | --private} <Sender private key> ]
OPTIONS
-b <Receiver public key>, --public <Receiver public key>
Receiver public key
-p <Sender private key>, --private <Sender private key>
Private key to announce yourself to NEM blockchain
After running proximax announce -p privateKey -b publicKey
your pair will be written in credentials file in the root folder.
To remove your private/public pair run proximax clear
or just delete credentials
file from your computer.
>proximax help search
NAME
proximax search - Search using Keywords
SYNOPSIS
proximax search [ {-k | --keyword} <keyword> ]
[ -key <meta data key/value> ] [ {-l | --local} ]
[ {-n | --name} <name> ] [ {-r | --remote} ]
[ -value <meta data key/value> ]
OPTIONS
-k <keyword>, --keyword <keyword>
Search by keyword
-key <meta data key/value>
Key to search
-l, --local
Local connection
-n <name>, --name <name>
Search by name
-r, --remote
Remote connection
-value <meta data key/value>
Value to search
>proximax help download
NAME
proximax download - Download the file
SYNOPSIS
proximax download [ {-b | --binary} ] [ {-f | --file} ]
[ {-l | --local} ] [ {-r | --remote} ] [ {-s | --secure} ]
[ {-t | --text} ]
OPTIONS
-b, --binary
Download binary file
-f, --file
Download file
-l, --local
Local connection
-r, --remote
Remote connection
-s, --secure
Apply NEM keys privacy strategy
-t, --text
Download text file
You can set the NEM hash at configs/download.json
.
>proximax help upload
NAME
proximax upload - Upload the file
SYNOPSIS
proximax upload [ {-b | --binary} ] [ {-f | --file} ]
[ {-l | --local} ] [ {-m | --multiple} ] [ {-p | --path} ]
[ {-r | --remote} ] [ {-t | --text} ] [ {-u | --url} ]
[ {-z | --zip} ]
OPTIONS
-b, --binary
Upload binary file
-f, --file
Upload plain file
-l, --local
Local connection
-m, --multiple
Upload multiple files
-p, --path
Upload the file using path
-r, --remote
Remote connection
-t, --text
Upload text file
-u, --url
Upload the file using url
-z, --zip
Upload ZipFile
There are 7 types of upload:
- Binary file.
- Plain file.
- Text file.
- Multiple files.
- Zip archive file.
- Path upload.
- Url upload.
You can use -p
flag to set the absolute path of your file in your Linux machine or you can just add your file in files
folder.
For each of them you have to provide a particular data.
Binary
file atconfigs/uploadBinary.json
{
"data": "",
"name": "",
"contentType": "",
"keywords": "",
"metadata": {
"": ""
}
}
Plain
file atconfigs/uploadPlain.json
{
"file": "",
"keywords": "",
"metadata": {
"": ""
}
}
Text
file atconfigs/uploadText.json
{
"data": "",
"name": "",
"contentType": "",
"encoding": "",
"keywords": "",
"metadata": {
"": ""
}
}
Multiple
files atconfigs/uploadMultiple.json
{
"file": [
""
],
"keywords": "",
"metadata": {
"": ""
}
}
Zip
files atconfigs/uploadZip.json
{
"zipFileName": "",
"file": [
""
],
"keywords": "",
"metadata": {
"": ""
}
}
Path
files atconfigs/uploadPath.json
{
"path": "",
"keywords": "",
"metadata": {
"": ""
}
}
Url
files atconfigs/uploadUrl.json
{
"url": "",
"name": "",
"keywords": "",
"metadata": {
"": ""
}
}