Title
Create new category
Edit page index title
Edit category
Edit link
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.
cfcli login [flags]The username and password are currently configured as username=admin and password=light. These are saved in: /etc/cf/.htpasswd.
Example:
cfcli login --username=admin --password=light --base-url=https://<CF-Server>:443The 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
baseUrl: https://<CF-Server>:443auth: tokenType: Bearer expiresIn: 2592000 jwt: <returned-jwt-token>| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
| --help | -h | bool | Help for login. | |
| --base-url | string | "https://localhost" | The endpoint of the CF service. | |
| --password | -p | string | The password to log in to CF (required). | |
| --save | -s | bool | true | Save login information in the config file for reuse. |
| --username | -u | string | The username to log in to CF (required). |
Response Type
CFLoginRequest - Login Request
Request to log in to the CF service.
© 2026 Lightbits Labs™