---
title: "alpacon token duplicate"
description: "Copy a token together with its scopes and ACL rules. See the command syntax, available flags, defaults, and examples before running it in your workspace."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# alpacon token duplicate

Copy a token together with its scopes and ACL rules.

## Usage

`alpacon token duplicate TOKEN [flags]`

## Key facts

- Identify the source token by name or UUID.
- Use `--name` to choose the new token name.
- The new token key is displayed only once.

## Flags

| Flag | Type | Description | Default |
| --- | --- | --- | --- |
| `-h, --help` | `bool` | help for duplicate | `false` |
| `-n, --name` | `string` | Name for the new token (optional) | — |
| `--output` | `string` | Output format: table or json | `table` |

## 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
```

Copy the new token key when it appears. It is shown only once and cannot be retrieved afterward.

Source: https://docs.alpacax.com/reference/cli/token/duplicate/
