Hub commandline#
The Cegal Hub binary includes commandline options for performing a variety of tasks including the running of an agent and server.
To get an overview of the Cegal Hub you can explore the commands available on the binary
cegalhub --help

Additionally the commandline interface (CLI) includes commands for
inspecting and managing the installation and configuration
obtaining Cegal Keystone information such as access tokens and the tenant id the user belongs to
managing a Windows Service (with the Windows version of the Cegal Hub binary)
opening the documentation in a local browser
performing queries against a running Cegal Hub Server and making requests of a Cegal Hub Agent
This last item is known as the Hub commandline client CLI and is discussed below.
Hub Client CLI#
The Cegal Hub client commandline interface (CLI) allows a user to perform operations against a running Cegal Hub Server.
Explore the commandline client command
Flags
cegalhub client --help
option (flag) |
description |
---|---|
|
Activate a running Cegal Hub Server (required when Cegal Hub Server is running in Server mode) |
|
Verify the health and status of a running Cegal Hub Server |
|
Query for information about the running Cegal Hub Server instance |
|
Query for information about Cegal Hub connectors connected to a running Cegal Hub Server |
|
List files in a given directory and or sub directories. Options are available to filter the search |
|
Download file(s) from a Cegal Hub Agent. |
|
Upload file(s) to a Cegal Hub Agent. |
|
Launch an application profile from a Cegal Hub Agent |
|
Shows a list of commands or help for one command |
The above shows the subcommands to the client command. Use the Cegal Hub Client CLI directly to explore these commands further.
Setting up a remote configuration profile#
To save typing connection details such as the host, port and TLS settings when connecting to a remote Hub Server it is possible to configure and persist a remote profile.
Using the command ‘cegalhub i c’ you can get or set the remote config options. To set the config use the set-remote command and supply the flags for the address, the port number, tls, and optional connector-join-token and if you want to allow public connections. Alternatively the remote config can be set in the ‘remote_connection_settings.json’ in the user’s app data.

For example to set a remote configuration
cegalhub installation config set-remote --address=cegalhub.demo1.ispace.cegal-geo.com --port=443 --tls
To check what your remote configuration is set to
cegalhub installation config get-remote
The remote configuration can be utilized when launching a Cegal Hub Agent
cegalhub agent --remote
Similary the remote configuration can be utilized when using the Cegal Hub Client CLI
cegalhub client verify-health --remote