Skip to content
Documentation
Open the panel

Command lineCommands

Your account and tokens

The password, the language of the panel and the access tokens of your account. The panel does the same on its Account and Access tokens pages.

The command kcloud auth password changes the password. It asks for the current and the new password in the terminal, because kcloud never takes a password from an option. After the change every session of the account in the panel ends, and the token kcloud uses keeps working.

1

Step 1: Change the language of the panel

The command takes pl or en. The panel shows itself and the platform writes your notifications in that language.

$ kcloud auth locale pl

Output

The panel speaks pl to anna.nowak@example.com now.
2

Step 2: List the access tokens

The command shows the tokens of your account with the role each one is limited to in the column SCOPE, and with when each was last used and when it expires. A token without a limit shows - there. kcloud login creates a token too, named after the machine and without a limit.

$ kcloud tokens list

Output

ID                                    NAME                   SCOPE    LAST USED                 EXPIRES
0195a3c4-7e21-7b6d-9f40-3c81a4d2e600  laptop                 -        2026-03-14T09:30:00.000Z  2026-03-14T09:30:00.000Z
0195a3c4-7e21-7b6d-9f40-3c81a4d2e601  kcloud on workstation  -        2026-03-14T09:30:00.000Z  never
0195a3c4-7e21-7b6d-9f40-3c81a4d2e602  ci-pipeline            Finance  never                     2026-03-14T09:30:00.000Z
3

Step 3: Create a token

The command prints the secret of the token once, and the platform keeps only its hash. --expires-in sets how many days the token lives, from 1 to 365; without it the token never expires. --scope limits the token to a role of the organization, named by its name or its id, and kcloud whoami with that token shows it in the row scope. A limited token creates no tokens, so run this command with a token without a limit or after kcloud login.

$ kcloud tokens create ci-pipeline --expires-in 90 --scope Finance

Output

kct_Xq7vR2mN9pL4sT8wK3bY6cJ1hF5dG0aZ
The token ci-pipeline, limited to the role Finance, is shown only here; the instance keeps its hash.
4

Step 4: Revoke a token

Name the token by its id from kcloud tokens list. Everything that uses it stops working at once.

$ kcloud tokens revoke 0195a3c4-7e21-7b6d-9f40-3c81a4d2e600 --yes

Output

Revoked the token 0195a3c4-7e21-7b6d-9f40-3c81a4d2e600.