This is the CLI for VSPG if you’re on Linux. No need to know how Curl or Json works, just run the CLI.
You can use the default server (https://api.vspg.otbm.fr) or use your own.
Installation
git clone https://framagit.org/vspg/vspg_cli_bash.git
cd vspg_cli_bash
chmod +x vspg-cli
cp vspg-cli /usr/local/bin/
Usage
Configuration
For the first use, please run the -c option to generate the config file :
vspg-cli -c
The configuration file will be created in your home directory (~/.vspg/vspg.ini). You can edit the file to modify the default values according to the value in VSPG.
[default]
port = 443
host = api.vspg.otbm.fr
number_of_words = 3
number_of_numbers = 5
separator = 1
language = fr
[security]
force_http = false
You can get the value by runnig the -h option
Usage: ./vspg-cli [options]
-h : show this help
-c : write the configuration file in '/home/enky/.vspg/vspg.ini'
-v : show the versions
-u <host> : set a different VSPG API url [api.vspg.otbm.fr]
-w <number> : set the number of wolrd you want
-n <number> : set the number of digits you ll have in your number.
-s <number> : set the separator type [0|1|2]
-l <language> : set the language you want [fr|fr_simple|en|it|es|de]
-i <file> : use an alternative config file [~/.vspg/alt-config.ini]
Exemple:
./vspg-cli
exemple with arguments:
./vspg-cli -w 1 -n 5 -s 0 -l fr
For more information go to : vspg.otbm.fr
Run
Just run vspg-cli (you will use the default value in the ini file)
vspg-cli
AnkyloseraisDepetriezEchevellerai`11099
or add argument for a specific run vspg-cli -w 3 -l en (3 words form the english dictionary)
vspg-cli -w 3 -l en
CountermanUnregenerableExterminates_95802