cfcli login

Logs in to the Lightbits Cluster Federation Service (CF).

Synopsis

Running commands using the cfcli tool requires a login. Logs in to the Lightbits Cluster Federation Service (CF) with a valid username and password, to get a bearer token to access the CF system. Optionally, you can use the save flag to save the login information in the config file for reuse.

Bash
Copy

The username and password are currently configured as username=admin and password=light. These are saved in: /etc/cf/.htpasswd.

Example:

Bash
Copy

The result of this command will sign you in to the CF service and update the ~/.local/cluster-federation/cf-cli.yaml file with a valid idToken to be consumed by the CF API.

Example File

YAML
Copy
FlagShortTypeDefaultDescription
--help-hboolHelp for login.
--base-urlstring"https://localhost"The endpoint of the CF service.
--password-pstringThe password to log in to CF (required).
--save-sbooltrueSave login information in the config file for reuse.
--username-ustringThe username to log in to CF (required).

Response Type

CFLoginRequest - Login Request

Request to log in to the CF service.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard