cfcli get credential

AI Tools

Retrieves service credentials to grant CF service access to a Lightbits cluster.

cfcli get credential [flags]

Synopsis

Attaching a new Lightbits cluster to the CF system is a two-step process:

  1. Get credentials from the CF service and add them to the Lightbits cluster.

  2. Attach the Lightbits cluster to the CF system. This is the first step in attaching a Lightbits cluster, adding CF-generated credentials to a Lightbits cluster.

Invoke this command to get a Base64-encoded public key and the public key ID.

The Base64-encoded public key will be saved to: ~/.local/cluster-federation/<pubKeyId>.pem.

The file should then be copied to the Lightbits cluster:

scp ~_.local_cluster-federation_<pubKeyId>.pem <user>@<LightbitsServer>:<FILE_PATH>

And then passed as an argument to the following command issued to the relevant cluster:

lbcli create credential --project-name=system --id=<PUBKEY ID> --type=rsa256pubkey <FILE_PATH>

Example:

#get service credentials: cfcli get credential

Flag

Short

Type

Default

Description

--help

-h

bool


Help for credential.


On This Page