---
title: "af enroll-runner"
description: "Request enrollment of a runner"
---

> 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 enroll-runner

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

A runner is a machine that runs jobs for the forge, such as tests and release builds. Give the machine's public key (its private key never leaves the machine) and a name. Requires an administrator; it takes effect at once unless the forge requires a second administrator. The runner's ID is printed when the enrollment takes effect.

## Usage

```text
af enroll-runner [OPTIONS] --name <NAME> <KEY>
```

## Arguments

- `<KEY>`

  Runner's Ed25519 public key, in hex

## Options

- `--name <NAME>`

  Name of the machine, recorded for reference

- `--machine <MACHINE>`

  The machine, as `af-runner machine` prints it: the forge refuses a runner on the machine one of its own nodes runs on

- `--reason <REASON>`

  Reason for the request, recorded with it

  Default: `""`

## Global options

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

## Examples

```sh
af enroll-runner 30554fe19ccdf588726c72ffe25d128284b567e44d81a4f250500d9bed1c93f7 --name rack-1 --reason "a runner for the web tests"
```

Source: https://docs.forge.workreef.dev/reference/af/enroll-runner/index.mdx
