Initialize the HDXCLI configuration for first-time use.
This command guides you through creating the initial configuration file and setting up your 'default' profile. It is intended to be run only once. If a configuration already exists, the command will exit with an error to prevent overwriting settings.
$hdxcliinit
NoconfigurationfoundforyourHydrolixcluster.
Let's create the 'default' profile to get you started.----- Configuring Profile [default] -----? Enter the host address for the profile: host.hydrolix.dev? Use TLS (https) for connection? YesThe configuration for 'default' profile has been created.Please login to profile 'default' (host.hydrolix.dev) to continue.Username: user@hydrolix.ioPassword for [user@hydrolix.io]:----- Service Account Configuration -----A Service Account can be configured for automated access.? How would you like to authenticate for this profile? Create a new Service Account? What is the name for the new Service Account? user_sa? Select roles to assign: ['user_admin']? Enter token duration (for example, 30d, 1y) or leave blank for default (1 year): 180dProfile 'default' is now configured to use Service Account 'user_sa'.
-----EndofServiceAccountConfiguration-----
Configurationcomplete.Youcannowusehdxclitomanageyourcluster.
## Start the interactive guide to create a new profilehdxcliprofileaddmy_profile
## Add a new profile non-interactivelyhdxcliprofileaddmy_profile--hostnameexample.hydrolix.dev--schemehttps
Set the default project and table for the current profile.
This command stores the provided project and table names in the current profile, allowing other commands to use them by default without needing the --project or --table options.