Skip to content

af

Command-line client for Atoll Forge

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

af [OPTIONS] <COMMAND>

Commands

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

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

Type to search…

↑↓ navigate↵ selectEsc close