kf login
Save GraphQL endpoint and credentials to the active profile.
Stores endpoint, tenant, environment, and a redacted API key preview in the active profile. With --oauth, runs the device authorization flow and writes credentials.json (mode 0600).
kf login
Save GraphQL endpoint, tenant, environment, and a redacted API key preview to the active profile.
Use --api-key-stdin to avoid placing the API key on the argv. Use --oauth to run the device authorization flow instead of API-key transport.
| Flag | Required | Description |
|---|---|---|
--endpoint <url> | yes | GraphQL endpoint URL. |
--api-key <key> | no | API key argument (prefer --api-key-stdin). |
--api-key-stdin | no | Read the API key from stdin. |
--tenant <id> | no | Default tenant for this profile. |
--environment <id> | no | Default environment for this profile. |
--oauth | no | Use device-authorization OAuth instead of API-key transport. |
Example
kf login --endpoint https://api.karmanflow.test/graphql --tenant tnt_demo --api-key-stdin