---
title: "alpacon cert download"
description: "Download an issued certificate with alpacon cert download. Supply the certificate ID rather than the CA name, and use --out to choose where the file is saved."
---

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

# alpacon cert download

Download a certificate to a local file.

## Usage

`alpacon cert download CERT_ID [flags]`

## Key facts

- Use a certificate ID, not a CA name.
- Choose the destination file with `--out`.

## Flags

| Flag | Type | Description | Default |
| --- | --- | --- | --- |
| `-h, --help` | `bool` | Show command help. | `false` |
| `-o, --out` | `string` | Path where the certificate should be stored. | — |
| `--output` | `string` | Output format: `table` or `json`. Inherited by all commands. | `table` |

## Examples

Run the command

```bash
alpacon cert download 550e8400-e29b-41d4-a716-446655440000 --out=/path/to/certificate.crt
```

Source: https://docs.alpacax.com/reference/cli/cert/download/
