---
title: "af release"
description: "Request, approve, download and verify releases"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.forge.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# af release

<!-- Generated by tools/gen-reference.mjs from `af release --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

A release is built by a runner from a commit on main, as main's `.forge/release` defines, and is published once a person approves the build. The forge signs SLSA provenance for each published release, which `af release verify` checks.

## Usage

```text
af release [OPTIONS] <COMMAND>
```

## Commands

| Command | What it does |
| --- | --- |
| [`request`](#af-release-request) | Request a release of a commit on main |
| [`approve`](#af-release-approve) | Approve a release's build, which publishes the release |
| [`show`](#af-release-show) | Show a release's state, artifacts and provenance |
| [`get`](#af-release-get) | Download an artifact of a published release |
| [`verify`](#af-release-verify) | Verify a file against a release's signed provenance |

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af release request v1.0
af release approve v1.0
af release show v1.0
af release get v1.0 af-linux-x86_64 -o af
af release verify v1.0 af-linux-x86_64 ./af
```

## af release request {#af-release-request}

Request a release of a commit on main

Queues a build of the commit, as main's `.forge/release` defines. Release names are permanent: each name can be requested only once.

### Usage

```text
af release request [OPTIONS] <NAME>
```

### Arguments

- `<NAME>`

  Name of the release

### Options

- `--commit <COMMIT>`

  Commit to release, in hex; defaults to main's head

### Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## af release approve {#af-release-approve}

Approve a release's build, which publishes the release

Only a signed-in person who holds the approver role can approve a release. The person who requested it can approve it too, unless the forge requires another person; each such approval is an exception in compliance reports.

### Usage

```text
af release approve [OPTIONS] <NAME>
```

### Arguments

- `<NAME>`

  Name of the release

### Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## af release show {#af-release-show}

Show a release's state, artifacts and provenance

Lists each artifact with its SHA-256 and size, and the provenance's position in the receipt log.

### Usage

```text
af release show [OPTIONS] <NAME>
```

### Arguments

- `<NAME>`

  Name of the release

### Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## af release get {#af-release-get}

Download an artifact of a published release

Writes the artifact to --out, or to standard output. Requires read access to every folder.

### Usage

```text
af release get [OPTIONS] <NAME> <ARTIFACT>
```

### Arguments

- `<NAME>`

  Name of the release

- `<ARTIFACT>`

  Name of the artifact

### Options

- `-o, --out <OUT>`

  File to write the artifact to; standard output if omitted

### Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## af release verify {#af-release-verify}

Verify a file against a release's signed provenance

Checks that the provenance is signed by the organization's receipt key, is recorded in the receipt log, and names FILE's SHA-256 as the artifact ARTIFACT.

The first verification for a repository at a given server address pins that repository's receipt log, its origin and keys, much as SSH's `known_hosts` pins a host key. Later verifications refuse a different log.

### Usage

```text
af release verify [OPTIONS] <NAME> <ARTIFACT> <FILE>
```

### Arguments

- `<NAME>`

  Name of the release

- `<ARTIFACT>`

  Name of the artifact

- `<FILE>`

  File to verify

### Options

- `--accept-new-log`

  Replace the pinned receipt log with the one the server reports now

  Use this only after confirming the new keys some other way, for example after a restore.

### Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

Source: https://docs.forge.workreef.dev/reference/af/release/index.mdx
