---
title: "Client tool command: **allocate-keys**"
description: "Reference for the rpkitool allocate-keys command, which allocates one or more document keys and writes them to stdout, one per line."
canonical: "https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/integration/client-tool/allocate-keys"
locale: "en"
product: "Rest PKI Core"
last_updated: "2026-07-22"
---

# Client tool command: **allocate-keys**

## Name

`allocate-keys` - Allocates document keys

## Syntax

```sh
rpkitool allocate-keys [<count>]
```

## Examples

To allocate a single document key:

```sh
rpkitool allocate-keys
```

To allocate 10 document keys:

```sh
rpkitool allocate-keys 10
```

## Output

Keys are written to `stdout`, one key per line, in formatted form, for instance:

```sh
AAAA-AAAA-AAAA-AAAA
BBBB-BBBB-BBBB-BBBB
CCCC-CCCC-CCCC-CCCC
```
