CLI
The Command-Line Interface (CLI) is a simple tool that offers a number of functionalities to set the platform up.
register
register takes the following parameters:
-n name(Optional)core endpoint
./dhcli register -n example http://localhost:8080
.dhcore.ini file (if it doesn't already exist) in the user's home directory, or, if not possible, in the current one. A section will be appended, using the provided name (or, if missing, the one returned by the endpoint), containing the environment's configuration. This environment will be set as default, unless one is already set.
use
use takes the following parameters:
environment
./dhcli use example
login
login is to be used after registering an environment with the register command. It takes the following parameters:
environment(Optional)
./dhcli login example
refresh
refresh is to be used after the login command, to update access_token and refresh_token. It takes the following parameters:
environment(Optional)
./dhcli refresh example
remove
remove takes the following parameters:
environment
./dhcli remove example
init
init takes the following parameters:
environment(Optional)
./dhcli init example