---
title: "af"
description: "Command-line client for Atoll Forge"
---

> 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

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

Work on changes in a local workspace, land them on main, and administer your organization: people and roles, folder access, repositories, runners, keys and releases.

Sign in first with `af auth`. Inside a workspace, `af` uses the workspace's server and repository unless you override them.

## Usage

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

## Commands

| Command | What it does |
| --- | --- |
| [`auth`](https://docs.forge.workreef.dev/reference/af/auth/) | Sign in through your organization's identity provider |
| [`key`](https://docs.forge.workreef.dev/reference/af/key/) | Create a key for an agent and print its public key |
| [`mcp`](https://docs.forge.workreef.dev/reference/af/mcp/) | Serve the forge's agent tools over MCP on standard input and output |
| [`grant`](https://docs.forge.workreef.dev/reference/af/grant/) | Request a role for a person |
| [`revoke`](https://docs.forge.workreef.dev/reference/af/revoke/) | Request that a person no longer hold a role |
| [`folder`](https://docs.forge.workreef.dev/reference/af/folder/) | Manage restricted folders and who can access them |
| [`release`](https://docs.forge.workreef.dev/reference/af/release/) | Request, approve, download and verify releases |
| [`workspace`](https://docs.forge.workreef.dev/reference/af/workspace/) | Create and locate workspaces |
| [`sync`](https://docs.forge.workreef.dev/reference/af/sync/) | Update the workspace to main's latest landing |
| [`new`](https://docs.forge.workreef.dev/reference/af/new/) | Start a new change in the workspace |
| [`squash`](https://docs.forge.workreef.dev/reference/af/squash/) | Move edits from the workspace's change into another open change |
| [`sparse`](https://docs.forge.workreef.dev/reference/af/sparse/) | List or change the files the workspace holds |
| [`absorb`](https://docs.forge.workreef.dev/reference/af/absorb/) | Move each edit into the change below that last changed those lines |
| [`split`](https://docs.forge.workreef.dev/reference/af/split/) | Split the workspace's change in two |
| [`restore`](https://docs.forge.workreef.dev/reference/af/restore/) | Restore files in the workspace's change from another commit |
| [`duplicate`](https://docs.forge.workreef.dev/reference/af/duplicate/) | Copy a change as a new open change with the same parents |
| [`simplify-parents`](https://docs.forge.workreef.dev/reference/af/simplify-parents/) | Remove redundant parents from merges |
| [`show`](https://docs.forge.workreef.dev/reference/af/show/) | Show a commit's description, author and changed paths |
| [`evolog`](https://docs.forge.workreef.dev/reference/af/evolog/) | Show how a change has evolved |
| [`interdiff`](https://docs.forge.workreef.dev/reference/af/interdiff/) | Compare the edits of two commits |
| [`resolve`](https://docs.forge.workreef.dev/reference/af/resolve/) | List the files with conflicts in a commit |
| [`revert`](https://docs.forge.workreef.dev/reference/af/revert/) | Undo a landing on main |
| [`op`](https://docs.forge.workreef.dev/reference/af/op/) | Read the repository's operation log |
| [`undo`](https://docs.forge.workreef.dev/reference/af/undo/) | Undo your last operation, or the one named |
| [`redo`](https://docs.forge.workreef.dev/reference/af/redo/) | Redo the operation you last undid |
| [`parallelize`](https://docs.forge.workreef.dev/reference/af/parallelize/) | Make open changes siblings instead of a stack |
| [`rebase`](https://docs.forge.workreef.dev/reference/af/rebase/) | Move a change, and your open changes built on it, onto other commits |
| [`edit`](https://docs.forge.workreef.dev/reference/af/edit/) | Switch the workspace to another open change |
| [`prev`](https://docs.forge.workreef.dev/reference/af/prev/) | Switch the workspace to the open change below the current one |
| [`next`](https://docs.forge.workreef.dev/reference/af/next/) | Switch the workspace to the open change built on the current one |
| [`commit`](https://docs.forge.workreef.dev/reference/af/commit/) | Describe the workspace's change and start a new change on top of it |
| [`describe`](https://docs.forge.workreef.dev/reference/af/describe/) | Set the description of the workspace's change |
| [`metaedit`](https://docs.forge.workreef.dev/reference/af/metaedit/) | Set the author of the workspace's change |
| [`status`](https://docs.forge.workreef.dev/reference/af/status/) | Show the state of the workspace's change |
| [`diff`](https://docs.forge.workreef.dev/reference/af/diff/) | Show the workspace's change compared with the commit it is based on |
| [`submit`](https://docs.forge.workreef.dev/reference/af/submit/) | Submit the workspace's change to land on main |
| [`abandon`](https://docs.forge.workreef.dev/reference/af/abandon/) | Abandon the workspace's change |
| [`file`](https://docs.forge.workreef.dev/reference/af/file/) | List, show and annotate files at a commit |
| [`explore`](https://docs.forge.workreef.dev/reference/af/explore/) | Explore alternative solutions to a question |
| [`task`](https://docs.forge.workreef.dev/reference/af/task/) | Make, list, show, claim and finish tasks |
| [`checklist`](https://docs.forge.workreef.dev/reference/af/checklist/) | Add to and mark a task's checklist, the plan an agent keeps while it works |
| [`ask`](https://docs.forge.workreef.dev/reference/af/ask/) | Ask a person or a team a question about a task, and print its number |
| [`answer`](https://docs.forge.workreef.dev/reference/af/answer/) | Answer a question asked of you, signing the answer with your own key |
| [`withdraw`](https://docs.forge.workreef.dev/reference/af/withdraw/) | Withdraw a question you asked (an administrator may withdraw any) |
| [`queue`](https://docs.forge.workreef.dev/reference/af/queue/) | Show what awaits you: the questions asked of you and of your teams |
| [`activity`](https://docs.forge.workreef.dev/reference/af/activity/) | Show the agents at work: where, in what state, and on what task |
| [`agent`](https://docs.forge.workreef.dev/reference/af/agent/) | Show an agent, or list the agent runners |
| [`question`](https://docs.forge.workreef.dev/reference/af/question/) | Read a question |
| [`kind`](https://docs.forge.workreef.dev/reference/af/kind/) | Read the organization's agent kinds |
| [`model`](https://docs.forge.workreef.dev/reference/af/model/) | Read the organization's model registry |
| [`kms`](https://docs.forge.workreef.dev/reference/af/kms/) | Manage the organization's encryption and signing keys |
| [`vault`](https://docs.forge.workreef.dev/reference/af/vault/) | Manage the vault that protects the cluster's keys |
| [`enroll-runner`](https://docs.forge.workreef.dev/reference/af/enroll-runner/) | Request enrollment of a runner |
| [`enroll-agent-runner`](https://docs.forge.workreef.dev/reference/af/enroll-agent-runner/) | Request enrollment of an agent runner |
| [`purge`](https://docs.forge.workreef.dev/reference/af/purge/) | Request permanent removal of a file's contents from history |
| [`stop`](https://docs.forge.workreef.dev/reference/af/stop/) | Stop an actor and every agent it started |
| [`stop-status`](https://docs.forge.workreef.dev/reference/af/stop-status/) | Show what came of a stop of an agent or a runner |
| [`cluster`](https://docs.forge.workreef.dev/reference/af/cluster/) | Show the cluster's nodes and groups, as one node sees them |
| [`enroll-node`](https://docs.forge.workreef.dev/reference/af/enroll-node/) | Request that a new server node join the cluster |
| [`create-repository`](https://docs.forge.workreef.dev/reference/af/create-repository/) | Request a new repository |
| [`import-repository`](https://docs.forge.workreef.dev/reference/af/import-repository/) | Request a new repository imported from a Git repository |
| [`cancel-import`](https://docs.forge.workreef.dev/reference/af/cancel-import/) | Request that a repository's import stop for good |
| [`import-status`](https://docs.forge.workreef.dev/reference/af/import-status/) | Show where a repository's import stands |
| [`create-organization`](https://docs.forge.workreef.dev/reference/af/create-organization/) | Request a new organization |
| [`require`](https://docs.forge.workreef.dev/reference/af/require/) | Require an approval before a change can land |
| [`approve-change`](https://docs.forge.workreef.dev/reference/af/approve-change/) | Approve a change's latest commit |
| [`scan`](https://docs.forge.workreef.dev/reference/af/scan/) | Show the secret-scan findings for a change |
| [`clear`](https://docs.forge.workreef.dev/reference/af/clear/) | Clear a change's secret-scan findings so it can land |
| [`report`](https://docs.forge.workreef.dev/reference/af/report/) | Generate a compliance report from the forge's receipts |
| [`requests`](https://docs.forge.workreef.dev/reference/af/requests/) | List pending requests |
| [`approve`](https://docs.forge.workreef.dev/reference/af/approve/) | Approve a pending request |
| [`main`](https://docs.forge.workreef.dev/reference/af/main/) | Print the commit that main points to |
| [`cache`](https://docs.forge.workreef.dev/reference/af/cache/) | Serve the forge's build cache to builds on this machine |
| [`search`](https://docs.forge.workreef.dev/reference/af/search/) | Search main's files with a regular expression |
| [`log`](https://docs.forge.workreef.dev/reference/af/log/) | Show commit history as a graph |
| [`change`](https://docs.forge.workreef.dev/reference/af/change/) | Show a change's state, commits and approvals |
| [`events`](https://docs.forge.workreef.dev/reference/af/events/) | Stream events as they happen |

## Options

- `--address <ADDRESS>`

  Server address, as host:port

  The port is the server's WebSocket port. Defaults to the current workspace's server, or to `127.0.0.1:7777` outside a workspace.

  Environment variable: `AF_ADDRESS`

- `--repository <REPOSITORY>`

  Repository to work in

  Needed by commands that act on a repository; organization-wide commands, such as role requests, don't use it. Defaults to the current workspace's repository.

  Environment variable: `AF_REPOSITORY`

- `--quic-port <QUIC_PORT>`

  Server's WebTransport port, if it differs from the --address port

  Environment variable: `AF_QUIC_PORT`

- `--cert-hash <CERT_HASH>`

  SHA-256 fingerprint, in hex, of a self-signed server certificate to trust

  Environment variable: `AF_CERT_HASH`

- `--credential <CREDENTIAL>`

  Path to the credential file that holds your sign-in

  Defaults to `atoll-forge/credential` in your configuration directory (`$XDG_CONFIG_HOME`, or `~/.config`).

  Environment variable: `AF_CREDENTIAL`

- `--actor <ACTOR>`

  Agent ID to act as, when the credential file holds only a key

  Use this for an agent whose key was created with `af key`: pass the agent ID that its parent received when it started the agent.

  Environment variable: `AF_ACTOR`

## Global options

- `--author-name <AUTHOR_NAME>`

  Author name for new changes; required by `new`, `commit` and `revert`

  Environment variable: `AF_AUTHOR_NAME`

- `--author-email <AUTHOR_EMAIL>`

  Author email for new changes; required by `new`, `commit` and `revert`

  Environment variable: `AF_AUTHOR_EMAIL`

- `--progress <PROGRESS>`

  When to show what `af` is doing while it works

  With `auto`, a command that takes a noticeable moment shows one line on standard error, naming its step, with counts and the time taken, such as `Uploading contents: 4,096 files (2.0 MB) (0.6s)`. The line is shown only when standard error is a terminal and standard output is not a pipe, and it is gone before any output is written. `af mcp` never shows it.

  Possible values:

  - auto:  On a terminal, when a step takes a noticeable moment

  - never: Never

  Environment variable: `AF_PROGRESS` · Default: `auto`

## Examples

```sh
Sign in, create a workspace, and land a change:
  af auth
  af --repository web workspace add ~/src/web
  cd ~/src/web
  export AF_AUTHOR_NAME='Your Name' AF_AUTHOR_EMAIL=you@example.com
  af new -m 'Fix the login redirect'
  # edit files, then:
  af submit
```

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