Prerequisites
- Have a Heex CLI
- Have a USER_SECRET_KEY. Should be accessible in your personnal space on the heex cloud platform.
Usage
Usage:How to login to the Heex CLI
There are two ways to login to the Heex CLI using the command./heex login
or ./heex userconfig
.
When you run ./heex login
for the first time you need to provide at least an API key and a userconfig name. Available options:
--api-key
: the API key to use for the login.--save-as
: userconfig name to save the configuration.
./heex login
with no options, the command will use the default userconfig for the login.
If you use the command ./heex login --api-key <USER_SECRET_KEY>
, the command will search for a userconfig corresponding to the API key and if it finds one it will use it, otherwise you need to provide a userconfig name.
The second way to login to the Heex CLI is to use the command ./heex userconfig create
. This command will allow you to create a new userconfig.
Usage:
--set-default
is optional. If not provided, the userconfig will just be created/updated without being set as default.
How to manage userconfigs
To manage userconfigs, you can use the command./heex userconfig
. This command will allow you to create, list, remove and set a userconfig as default. Available options:
create
: create a new userconfig.list
: list all userconfigs.delete
: delete a userconfig.use
: switch login to a specific userconfig.
How to list userconfigs
To list userconfigs, you can use the following command: Usage:--output-file
, the command will print the list of userconfigs in the standard output, it will print only the userconfig name and the active userconfig.
If you provide the option --output-file
, you need to provide a .json file. This command will print the list of userconfigs with names and API keys. Be careful with this option if you don’t want to expose your API keys.