CLI
The Command-Line Interface (CLI) is a simple tool that offers a number of functionalities to set the platform up.
Commands
Available commands and their parameters are listed here. When you provide optional parameters, make sure they are listed before mandatory ones.
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.
list-env
list-env
lists available environments. It takes no parameters.
dhcli list-env
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
is used to install the platform's Python packages; therefore, Python must be installed. It takes the following parameters:
environment
(Optional)
dhcli init example