icmcli login

AI Tools

Logs in to Lightbits ICM.

Synopsis

Logs in to Lightbits ICM, with a valid username and password to get a bearer token to access the ICM system. Optionally, you can use the save flag to save the login information in the config file for reuse.

icmcli login [flags]

Examples

# icmcli login --username <username> --password <password> icmcli login --username admin-icm --password password123 --base-url https://localhost --save

Flag

Short

Type

Default

Description

--base-url


string

"https://localhost"

Endpoint of the ICM service.

--help

-h

bool


Help for login.

--password

-p

string


Password to log in to ICM (required).

--save

-s

bool

true

Save login information in the config file for reuse.

--username

-u

string


Username to log in to ICM (required).

Response Type

Returns a bearer token (JWT) and its expiry, and caches it in ~/.local/intelligent-cluster-management/icm-cli.yaml.