Page cover

edit

The cldkctl token edit command updates the details of an existing authentication token. This command allows you to rename an existing token by specifying its Token ID and the new name

Usage

cldkctl token edit [id] [flags]

Steps

Option 1 — Interactive Mode (TUI):

  1. Run the command below with the target Token ID:

Replace <token_id> with the actual token ID you want to rename.

  1. This will open an interactive token creation prompt in your terminal.

  2. In the Token Name field, enter the name for the token. You cannot proceed by pressing Enter if this field is left empty.

  3. After entering the new name, the interface will ask:

  • Press Y to confirm and update the token.

  • Press N to cancel the process.

  • Press Shift + Tab to return to the previous field.

  1. Once confirmed, the system will display the success message and the generated token.

Option 2 — Using Flags (Non-Interactive Mode):

  1. Run the command below to rename the token directly without using the interactive interface:

Replace <token_id> with the actual token ID.

  1. Once executed, the system will immediately rename the token and confirm success “Cldkctl token updated”.

Flags

This command supports global flags. Refer to the Global Flags section for details.

Flag
Description

-h, --help

Help for the token edit subcommand.

-n, --name string

Token name.

Last updated