Prerequisites
- Have a Heex CLI
- Have a USER_SECRET_KEY. Should be accessible in your personnal space on the heex cloud platform. If you already logged-in you don’t need to add the Api-Key in your command line.
Usage
Subcommand | Description |
---|---|
add-credentials | Add a system’s secret key to the credentials file. |
connectivity | Change the connectivity mode of a system. |
create | Create a new system on the cloud. |
create-template-file | Advanced usage: creates a template file for system creation configuration. |
get | Retrieve system details for a given ID. |
get-sys-conf | Retrieve system configuration for a given ID. |
list | List all systems. |
status | Provides the status of the system. |
todo-list | Provides systems todo list for a given workspace. |
update | Update a system on the cloud. |
delete | Delete a system with a given ID. |
## How to add a system’s secret key to the credentials file
Usage:--api-key
: The api secret key, it is required only if--system-key
is not defined.--system-key
: The system’s secret key, it is required only if--api-key
is not defined.--system-id
: The system id to fetch the secret key for, it is required only if--config-path
is not defined.--config-path
: The path to the system configuration file (.json
format), it is required only if--system-id
is not defined.
How to change connectivity mode of a system
To change connectivity mode of the system, you can use the following command: Usage:--mode
.
How to create a new system
2 different ways to create a new system on the cloud, both using the commandcreate
:
- Create a system only by name and some optional flags:
--name
: Must be unique on your cloud workspace.--description
: Description for your system.--system-middleware
: System middleware. Check help for available middleware.--system-category
: System category. Check help for available templates.--operating_system
: Operating system. Defaults to the OS of user executing the command. Check help for available templates.
- Another way to create a system is to use a configuration file that contains all the data you want to generate. To use it:
- You can generate a template file using the
./heex system create-template-file
command, and then fill the given file as you need. - Once it is filled, use the create subcommand with the
--input-file
input pointing to the filled file - Note that fields
name
andtype
are required, everything else can be removed.
- You can generate a template file using the
- Note that whichever way you chose to create your system, you can add the option
--output-file
which will save the created data info into a file. You’ll have to provide a filepath with a json extension: /path/to/file.json - If you provide
--json-output
, it will disable all logging (except errors), and your command shall only output the result in a json format. Be aware that it is not compatible with ‘—output-file’ option.
How to update a system
You can update a system by using a json file. Flags to update a system are--input-file
and --system-id
which are both required. You can generate a template file using the command below:
Usage:
How to get system details
You can retrieve the system details using the commandget
, which will retrieve system details for a given system ID in the specified output format. The system ID can be found on the web platform or by using command ./heex system list --api-key <USER_SECRET_KEY> [OPTIONAL-FILTERS]
. Flags available are:
--output-file
: Provide a path if you want system details to be saved in a file (add filename.json in your path).--json-output
: Disables all logging (except errors), and your command shall only output the result in a json format. It is not compatible with ‘—output-file’ option.--system-id
: The id of the system to retrieve.
⚠️ Warning: System name or description with special characters: If your system name or description contains special characters (i.e ’ or space), please use double quotes before and after your names. For example, for a system called Jane’s system, provide that as —name “Jane’s system”.
How to get system configuration
You can retrieve the system configuration using the commandget-sys-conf
, which will retrieve system configuration for a given system ID in the specified output format. Options are the same as get
command. See the usage example below:
Usage:
How to get system status
You can retrieve the status of a system using the commandstatus
. This command will retrieve the status of a given system ID in the specified output format.
Information that will be provided is:
- Agent version
- Last OTA update
- System status
- Signal details
How to get system to-do list for a given ID
You can retrieve the to-do list of systems for a given workspace with the corresponding status using the commandtodo-list
. You can filter the result by providing a system ID and/or system status. If a system status is given, for example , --system-status TO_CODE
, only systems with the given status will be returned and you’ll be able to see the list of systems that need to be coded yet.
Available flags are:
--api-key
: The api secret key: USER_SECRET_KEY.--system-id
: ID of the involved system. Multiple can be provided, example: —system-id sysId1 —system-id sysId2--system-status
: The status of the system to retrieve. Check help for available status.--details
: Show details of each system implementations status included.--output-file
: Provide a path if you want the output to be saved in a file.--json-output
: Disables all logging (except errors), and your command shall only output the result in a json format. It is not compatible with ‘—output-file’ option.
--details
is provided, the output will be a list of systems including their signal details. Otherwise, it will display only system id, status and agent version when available.
Usage:
How to get list of systems with details for a given workspace
You can retrieve the list of systems for a given workspace with the corresponding status using the commandlist
. Same as for todo-list
, you can filter the result by providing a system ID and/or system status. The result will be a list of systems with details.
Available flags are:
--api-key
: The api secret key: USER_SECRET_KEY.--system-id
: ID of the involved system. Multiple can be provided, example: —system-id sysId1 —system-id sysId2--system-status
: The status of the system to retrieve. Check help for available status.--output-file
: Provide a path if you want the output to be saved in a file.--json-output
: Disables all logging (except errors), and your command shall only output the result in a json format. It is not compatible with ‘—output-file’ option.
How to delete a system
To be able to delete a system you need to provide asystem-id
and use the command below:
Usage: