alpacon token duplicate

Create a copy of an existing API token, including all scopes and ACL rules (Command, Server, File). The source token is identified by name or UUID.

bash
alpacon token duplicate TOKEN [flags]

Options

bash
  -n, --name string   Name for the new token (optional)
  -h, --help          help for duplicate

Examples

Duplicate a token (auto-generated name):

bash
alpacon token duplicate my-api-token

Duplicate with a custom name:

bash
alpacon token duplicate my-api-token --name "my-api-token-copy"

Duplicate by UUID:

bash
alpacon token duplicate 550e8400-e29b-41d4-a716-446655440000
Warning
The new token key is shown only once after creation. Copy it immediately—it cannot be retrieved again.
Last updated: