---
title: "alpacon revoke create"
description: "Request certificate revocation with alpacon revoke create. Specify a certificate ID, a reason code, and an optional explanation, or enter them at the prompts."
---

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

# alpacon revoke create

Request the revocation of a certificate.

## Usage

`alpacon revoke create [flags]`

## Key facts

- Use `--certificate` to name the certificate ID.
- Provide a reason code and optional explanation.

## Flags

| Flag | Type | Description | Default |
| --- | --- | --- | --- |
| `--certificate` | `string` | Certificate ID to revoke. | — |
| `-h, --help` | `bool` | Show command help. | `false` |
| `--reason` | `int` | Revocation reason code (0–10). | Prompted when omitted |
| `--requested-reason` | `string` | Detailed reason description | — |
| `--output` | `string` | Output format: `table` or `json`. Inherited by all commands. | `table` |

## Examples

Create a revocation request interactively

```bash
alpacon revoke create
```

Revoke a certificate with reason code (key compromise)

```bash
alpacon revoke create --certificate CERT_ID --reason 1
```

Revoke with a custom reason description

```bash
alpacon revoke create --certificate CERT_ID --reason 4 --requested-reason "Replaced with new certificate"
```

## Reason codes

| Code | Reason |
|------|--------|
| 0 | Unspecified |
| 1 | Key compromise |
| 2 | CA compromise |
| 3 | Affiliation changed |
| 4 | Superseded |
| 5 | Cessation of operation |
| 6 | Certificate hold |
| 9 | Privilege withdrawn |
| 10 | AA compromise |

Source: https://docs.alpacax.com/reference/cli/revoke/create/
