Skip to content

Quickstart

Start a local forge, make a change and land it on main in five minutes.

This guide starts a development server on your machine, then uses af to make a change and land it on main. You need af and af-server on your PATH, and nothing else.

How the quickstart fits togetherIn terminal 1, af-server --dev unseals its own vault, signs you in as the administrator, keeps its certificate and writes af-dev/dev/env. In terminal 2, af loads that file, adds a workspace, starts a change, takes your edits and submits the change, which lands on main.TERMINAL 1$ af-server --devUnseals its own vaultSigns you in as administratorKeeps its TLS certificateWrites af-dev/dev/envaf-dev/dev/envTERMINAL 2source ~/af-dev/dev/envaf workspace add ~/helloaf new -m "Add a greeting"edit greeting.txtaf submitmainHow the quickstart fits togetherIn terminal 1, af-server --dev unseals its own vault, signs you in as the administrator, keeps its certificate and writes af-dev/dev/env. In terminal 2, af loads that file, adds a workspace, starts a change, takes your edits and submits the change, which lands on main.TERMINAL 1$ af-server --devUnseals its own vaultSigns you in as administratorKeeps its TLS certificateWrites af-dev/dev/envaf-dev/dev/envTERMINAL 2source ~/af-dev/dev/envaf workspace add ~/helloaf new -m "Add a greeting"edit greeting.txtaf submitmain
Two terminals. af-server --dev sets everything up and writes the environment af needs; af takes a change from your workspace to main.

Start the server

In a terminal, start a development server:

$ af-server --dev
...
Atoll Forge is running in development mode. Do not use it in production.

Data directory:  /home/you/af-dev
Signed in as:    Developer <dev@localhost>, administrator
Repository:      main

To use it from another shell, run:

    source /home/you/af-dev/dev/env

or set:

    export AF_ADDRESS=127.0.0.1:7777
    export AF_CERT_HASH=086f2aa3abff65f103bbc3c1bed78e71bf9bfabceaa9cfba0ec9708682592e3a
    export AF_CREDENTIAL=/home/you/af-dev/dev/credential
    export AF_REPOSITORY=main
    export AF_AUTHOR_NAME=Developer
    export AF_AUTHOR_EMAIL=dev@localhost
...

The server keeps its data in af-dev, in the directory you started it from. It needs no identity provider, recovery keys or certificate: it unseals its own vault, signs you in as the first administrator, dev@localhost, and keeps its certificate, so the hash af trusts stays the same when you restart it. Leave it running.

If you start it inside a checkout, that’s fine: the server writes a .gitignore into af-dev that ignores everything in it, so neither git nor an af workspace takes the server’s own files as yours.

Connect af

In a second terminal, load the environment the server wrote, and check that af reaches it:

$ source ~/af-dev/dev/env
$ af main
(main has no commits yet)

AF_ADDRESS and AF_CERT_HASH tell af where the server is and which certificate to trust. AF_CREDENTIAL is your sign-in, AF_REPOSITORY names the repository, and AF_AUTHOR_NAME and AF_AUTHOR_EMAIL are the author of your changes.

Make a change

Create a workspace, a directory that holds the repository’s files:

$ af workspace add ~/hello
Workspace at /home/you/hello
Paths: **
main has no landing yet
$ cd ~/hello

Start a change, then edit files as you normally would:

$ af new -m "Add a greeting"
Working on change yyrlqzsokrylmvzwxuurupwwontuzywq at commit 8ec0a27cf68233f1e82f0d80fea8297c558cf3e5cfb7fda160722c7b6ef0f79f
$ echo "Hello from Atoll Forge" > greeting.txt

There is no staging step: af records your edits in the change for you. See what the change holds:

$ af status
Change yyrlqzsokrylmvzwxuurupwwontuzywq (open) at commit 39c45ac4a4767248ff9282706bfe37c9270996f80729ea230f56c88e729b73c7
Landing waits for: scan
$ af diff
A greeting.txt
--- a/greeting.txt
+++ b/greeting.txt
@@ -0,0 +1 @@
+Hello from Atoll Forge

Landing waits for: scan is the forge’s own check: before any change lands, it scans the change for secrets and regulated data.

Land it

Submit the change:

$ af submit
Submitted commit 39c45ac4a4767248ff9282706bfe37c9270996f80729ea230f56c88e729b73c7, 0 edits in its last snapshot

The change lands as soon as everything it waits for is done. Here that is the scan, which takes a moment. Then main’s history shows it. @ marks the commit your workspace is at, as in jj:

$ af log
@  yyrlqzso dev@localhost 2026-11-24T11:11:04Z 39c45ac4
│  Add a greeting
○  zzzzzzzz  1970-01-01T00:00:00Z 00000000
   (no description set)
$ af status
Change yyrlqzsokrylmvzwxuurupwwontuzywq (landed) at commit 39c45ac4a4767248ff9282706bfe37c9270996f80729ea230f56c88e729b73c7

Next

  • Stop the server with Ctrl-C. Running af-server --dev again from the same directory keeps your repositories, and the environment it wrote stays valid. To start over, delete af-dev.
  • Every command is in the af reference.

Type to search…

↑↓ navigate↵ selectEsc close