9 Command Reference
liquibyte edited this page 2026-11-27 18:07:51 -06:00

Command Reference

Every command a Folio site accepts, who may use it, and what it does. For whole tasks step by step, see the Member Guide and the Owner and Administrator Guide.

How a command is given

Everything on a site is changed through its door: the one program that sshd runs for the user folio. Your SSH key tells the door which account you are. You give one command per connection.

Commands come in two kinds, marked in the tables below:

  • read-only: the command only looks. Plain ssh is enough:

    ssh folio@dur.example.org COMMAND
    

    With an SSH port other than 22: ssh -p PORT folio@dur.example.org COMMAND.

  • signed: the command changes something. The site takes it only as a request signed with the GPG key recorded for your account. The folio command (package folio-client) makes and signs that request for you:

    folio COMMAND
    

    The Desktop Program signs the same way. Sent with plain ssh, a signed command is refused: folio: that changes something, so it must come as a request signed with your GPG key: run it with the folio command (folio WORDS), or from the desktop program. Plain ssh can only look, where WORDS is the command you typed.

Why both keys: the SSH key says which account came in, and the signature says that account's person asked for exactly this command, at this site, now. A stolen SSH key alone changes nothing, and a stolen GPG key alone gets nobody in. How a request is made and checked is in How It Works.

folio reads where the site is from the site in use, ~/.config/folio/sites/NAME (the files the desktop program writes too; see the Settings Reference), or from the site --site NAME names. folio sends a read-only command as it is, so folio whoami works as well as ssh folio@dur.example.org whoami. An account with no GPG key can only look; an administrator sets one with admin pgp NAME.

  • With no command, the site answers as for help.
  • help lists the commands your role may use.
  • The site splits what you type into words at spaces. It does not understand quotes, and it never runs what you type: it only compares the words with its list of commands.
  • Words in capitals (PACKAGE, NAME, NUMBER, ID) stand for what you write yourself.
  • < FILE feeds the file to the command, for a key, a comment or a token. With folio, what comes on standard input is signed too: its sha256 is in the request, and the site checks it.
  • A refusal starts with folio:, says why, and changes nothing. For example: folio: only an administrator may do that.
  • Lists meant for programs (packages, builds, accounts and so on) have one line per item, with the fields separated by tabs.

The Desktop Program has a button for each command.

Who may

In the tables Means
anyone any account that is not suspended. Every account starts as a member
voucher an account that may let new people in. Administrators and the owner always may; others after admin voucher NAME on
its maintainer the one account that looks after a package
its maintainers its maintainer and its co-maintainers (the accounts its maintainer named to help)
reviewers accounts with the role maintainer, administrators and the owner. They decide requests for the whole site. Having the role maintainer is not the same as maintaining a package
administrators accounts with the role administrator, and the owner
the owner the one account that owns the site. It can do everything an administrator can

The owner's things. An administrator may act on anyone's packages, with these exceptions. On a package whose maintainer is the owner, only the owner may import into it (follow, fetch, unfollow), set its keywords or co-maintainers, take a flag off that someone else set, accept or reject its requests (except your own request), approve an upload to it, build it again, move it, or remove its builds. Only the owner approves an upload the owner made. An administrator who is a co-maintainer of the owner's package may upload to it, but that upload is published into main only once the owner approves it. Nobody but the owner may change the owner's account, remove the owner's comments, or undo a change that touched the owner's account. folio-audit holds every change in the record to these same rules (they are written once, in server/folio-verify.sh, for the door and for it).

Anyone with an account

Looking

Command Kind Who may What it does
help read-only anyone the commands for your role
whoami read-only anyone your account: name, real name, role, the day you joined, how many SSH keys you have, whether you may vouch, your mail address, your PGP key's fingerprint, and the forge account you have the site watch. It always says whether you may vouch, and why: may vouch: yes (as the owner), may vouch: yes (as an administrator), may vouch: yes (in the vouching group) or may vouch: no. An account with no GPG key gets the line note: your account has no GPG key, so it can only look (see: help)
packages read-only anyone every package: name, version, votes, yes if you voted for it, description
comments PACKAGE read-only anyone the comments on a package, each with who wrote it and when
comments PACKAGE ids read-only anyone the same, each comment starting with a line == ID. The ID is what admin remove-comment and admin erase comment need
accounts read-only anyone every account, one a line, the fields separated by tabs: name, role, active or suspended, whether it may vouch and why (as whoami says it: yes (as the owner), yes (as an administrator), yes (in the vouching group) or no), real name. Suspended accounts are listed to administrators only
builds read-only anyone the newest 100 builds, newest first: number, package, version, release, kind of processor, state, node, when it was queued
builds PACKAGE read-only anyone the same, for one package
nodes read-only anyone the build nodes: name, enabled or disabled, kinds of processor, who let it in
mirrors read-only anyone the listed mirrors: name, address, who listed it
requests read-only anyone the open requests: package, ID, type, the package to merge into, who asked, why
imports read-only anyone which of your imports were turned down, and why: package, address, reason. Administrators see everyone's. After them, a line for each of your packages that still follows an http:// or git:// address, which is no longer imported: warning: PACKAGE follows an insecure address (ADDRESS), so it is no longer imported: only https is accepted. Set it again: follow https://... PACKAGE
found read-only anyone projects found on the watched forge and not let in, a line each, three fields separated by tabs: OWNER/PROJECT, address, and waiting or declined: .... A project that was on this site once and was removed says so: waiting (removed from this site on DATE: REASON), or declined: ... (removed from this site on DATE). With nothing listed, one line (no tabs) says why, as the page "Found on the forge" does: Nothing is waiting. The last look at the forge (DATE) saw N projects: ... with how many are imported already, under an account a member watches, turned down and so on; or Nothing is waiting. This site does not look at a whole forge (admin watch-forge ADDRESS).; or that the forge did not answer, or has not been looked at yet

Your projects

Command Kind Who may What it does
watch URL signed anyone import every repository in one forge account (https://forge.example.org/you), now and whatever is added there later. One account per person: a second watch replaces the first. The address must be the account's, not a repository's. Counts against the hourly limit limit-import, as follow, fetch and admit do
unwatch signed anyone stop watching that account. The packages stay, and still follow their repositories
follow URL signed anyone import one repository now and look for new commits from then on. Only https:// addresses are taken; http:// and git:// are refused with a repository address must start with https:// (http and git are not accepted). The package's name is the last part of the address, in lower case, with _ turned into - and .git dropped
follow URL NAME signed anyone; for a package that exists, its maintainers or administrators the same, under the package name NAME. For an existing package, it points that package at the new address
fetch PACKAGE signed its maintainers, administrators look for new commits now, without waiting for the timed job. It also forgets an earlier refusal of that package. If the project's newest commit is the one the site has already, it says PACKAGE: nothing new at URL, also when the site lost its own copy of the repository (after a restore); if that commit has no builds here, it adds (PACKAGE has no builds of it here; to build it: rebuild PACKAGE)
unfollow PACKAGE signed its maintainers, administrators stop importing new commits. The package stays as it is. follow URL PACKAGE starts again
rebuild NUMBER signed its maintainers, administrators (for the owner's packages, only its maintainers) build a finished build again, for the same release and kind of processor. Only a build of the package's newest upload, not one that is queued or being built, and not one for a release the site no longer builds for (this site no longer builds for RELEASE). The new build is still the upload of whoever imported it (rebuilt-by on the build says who asked): an administrator's asking does not put an unapproved upload into the reviewed part. Mail about the result goes to the uploader and to whoever asked (once each, to those who turned mail on), and says It was built again, asked for by NAME.
rebuild PACKAGE signed its maintainers, administrators (for the owner's packages, only its maintainers) build the package's newest upload again, for every release and kind of processor it is built for, as when it was imported (only the releases the site still builds for). For a package that has no builds, after a restore for example. Not while a build of that upload is queued or being built
comaintainers PACKAGE NAME... signed its maintainer, administrators set the whole list of co-maintainers. Each NAME must be an account other than the maintainer. No names: no co-maintainers
keywords PACKAGE WORD... signed its maintainers, administrators set the words it can be found by, replacing the old ones. At most 20; each is lower-case letters, digits, ., _, + or -. No words: none
disown PACKAGE signed its maintainer only give it up. The first co-maintainer becomes the maintainer; without one, it has no maintainer and anyone may adopt it
adopt PACKAGE signed anyone become the maintainer of a package that has none

The site only imports from addresses that begin with one of the sources, if that setting is set (see the Settings Reference).

Taking part

Command Kind Who may What it does
vote PACKAGE signed anyone vote for a package
unvote PACKAGE signed anyone take your vote back
comment PACKAGE signed anyone add a comment. Type it, press Enter, then Ctrl+D. comment PACKAGE < FILE takes it from a file. At most 5000 bytes, and one comment a second. Text only: no control character but line ends and tabs (no escape sequences, no carriage returns)
flag PACKAGE REASON signed anyone say that a newer version of the software is out. The reason is required, at most 300 bytes (a plain letter is one byte, an accented one two or more). A new flag replaces the old one
unflag PACKAGE signed who set the flag, its maintainers, administrators take the flag off
request PACKAGE orphan REASON signed anyone ask that the package be freed, so someone else can adopt it
request PACKAGE delete REASON signed anyone ask that it be removed from the site
request PACKAGE merge OTHER REASON signed anyone ask that it be folded into the package OTHER
reject PACKAGE ID signed who asked, its maintainer, reviewers close a request without doing anything. Reviewers may close any request, except one about the owner's package

A request's reason is required, at most 300 bytes. One person may have one open request per package. The site answers with the request's ID: Your request is open: PACKAGE ID.

Your account

Command Kind Who may What it does
key list read-only anyone your SSH keys, numbered. key alone does the same
key add < FILE.pub signed anyone add an SSH key: the one line of a .pub file. A key that any account or build node has already is refused. So is anything that holds a private key (that is a private key. It never leaves your computer: send the public key, the one line of the file ending in .pub, also for a PuTTY key file), more than one line (that is more than one line: send one SSH public key, the one line of a .pub file), or more than 8 KB (that is too large to be an SSH public key (send the one line of a .pub file)). vouch and admin node add also refuse an SSH key that is in use, and anything that holds a private key, with their own words: that is a private key. It never leaves your computer: send the public keys, the one line of the file ending in .pub, then the PGP public key. The key is read up to the end of what is sent, so type Ctrl-D after pasting one
key remove NUMBER signed anyone remove one key, by its number from key list. Your only key cannot be removed
pgp show read-only anyone the fingerprint of your GPG (PGP) key: every change you ask for is checked against it, and so are your commits. pgp alone does the same
pgp set < KEY.asc signed anyone with a GPG key on their account replace it: exactly one PGP public key. The request is signed with the key it replaces, as every change is. A private key is refused (anything that says PRIVATE KEY or SECRET KEY, in any case: that is a private PGP key. It never leaves your computer: send the public key (folio-mykeys export, or gpg --armor --export)). For example: folio-mykeys export | folio pgp set. It answers Your PGP key is now FPR. From now on, sign with it (folio and the desktop program use the key ~/.config/folio/pgp names: folio-mykeys use FPR). An account with no key cannot set its first one itself (a stolen SSH key would be enough for that): an administrator does, with admin pgp NAME
pgp remove signed anyone take it off your account. Your account can then only look, until an administrator sets a new key (admin pgp NAME)
request-info read-only anyone what a signed request to this site holds, for programs: site: FPR (the site's key), account: NAME, time: SECONDS (the site's clock) and pgp: FPR (your account's GPG key, or none)
mail show read-only anyone where notifications go, if anywhere. mail alone does the same
mail set ADDRESS signed anyone have notifications mailed to ADDRESS. A code is mailed there first
mail confirm CODE signed anyone the code from that mail. Only then are notifications mailed
mail remove signed anyone no more mail
vouch NAME < KEYS signed vouchers make a new account, NAME, with the new person's two public keys on standard input: the one line of their SSH .pub file, then their PGP public key: cat their-key.pub their-key.asc | folio vouch NAME. It starts as a member. A name is 3 to 32 lower-case letters, digits, ., _, + or -. It answers Account NAME created (vouched for by YOU), with the GPG key FPR. Without the PGP key it is refused: send both of the new person's keys: the one line of their SSH .pub file, then their PGP public key (cat KEY.pub KEY.asc | folio vouch NAME). Without a PGP key an account could only look
signed REQUEST SIGNATURE signed anyone with a GPG key on their account how folio and the desktop program send a change: the request and its signature, each in base64 on one word, with the command's input on standard input. The site checks it and then runs exactly the signed command. People do not type it; see How It Works

Reviewers, as well

Accounts with the role maintainer, administrators and the owner.

Command Kind Who may What it does
accept PACKAGE ID signed reviewers; for the owner's package, the owner carry a request out. Not your own request; administrators may accept their own. orphan takes the maintainer and co-maintainers off. delete takes the package off the record, the pages and the archive. merge does the same and gives its votes to the other package
reject PACKAGE ID signed reviewers; for the owner's package, the owner close any request without doing anything
admit OWNER/PROJECT signed reviewers let a project found on the watched forge in. It is imported now and followed from then on, with no maintainer until someone adopts it, in the unreviewed part (unsafe). The package's name is the project's, in lower case, with _ turned into -
admit OWNER/PROJECT NAME signed reviewers the same, under the package name NAME
decline OWNER/PROJECT signed reviewers turn a found project down. A reason may follow, at most 300 bytes. It is not built, and no longer shown as waiting. It stays in found, marked declined, and can still be let in. Declining is not written into the record

Administrators, as well

People

Command Kind Who may What it does
admin role NAME ROLE signed administrators set an account's role: member, maintainer or administrator (owner is the owner's own command, below). Not the owner's account. The owner is always an administrator too, so the site is never left without one
admin voucher NAME on signed administrators put an account in the vouching group, so that it may vouch for new people. off to take it out. The owner and administrators may vouch in any case, by their role. A member or maintainer may vouch only in the vouching group (admin voucher NAME on). For an administrator or the owner it is allowed but changes nothing now, and the answer says so: NAME is now in the vouching group. As an administrator, NAME may vouch in any case, so this changes nothing now; it counts only if their role becomes member or maintainer again.
admin suspend NAME REASON signed administrators lock an account out. The reason is required, at most 300 bytes. Not the owner
admin unsuspend NAME signed administrators let it back in
admin remove-comment PACKAGE ID signed administrators remove a comment, with its ID from comments PACKAGE ids. It stays in the record's history. Not the owner's comments
admin pgp NAME < KEY.asc signed administrators; on the owner's account only the owner, signed with their current key (the same as pgp set) set the GPG key of an account: one that has none (made before keys were needed, or after pgp remove), or whose person lost theirs, had it stolen, or renewed one that ran out. Exactly one PGP public key on standard input: folio admin pgp NAME < their-key.asc. The person is notified (by mail, if they turned mail on). It answers NAME's GPG key is now FPR: changes are signed with it from now on.

Packages, builds, nodes and mirrors

Command Kind Who may What it does
approve PACKAGE signed administrators; for the owner's package or an upload the owner made, the owner approve the package's newest upload, so that it is published in the reviewed part (main). Administrators may approve their own (what the owner imports, and what an administrator imports to a package that is not the owner's, is published there without approval anyway; what an administrator imports to the owner's package waits for the owner's approval). Anyone else is told only an administrator or the owner can approve an upload; an administrator, for the owner's, that upload is the owner's; only OWNER can approve it. An approval counts while whoever gave it is still an administrator or the owner
admin move PACKAGE main signed administrators put a package in the reviewed part. unsafe for the unreviewed part. What is published of it moves along at once where it may be published there: always into unsafe; into main only an upload that is approved, or was the owner's, or an administrator's to a package that is not the owner's. Otherwise it says What is published of it stays in unsafe until its newest upload is approved (approve PACKAGE) and built., and it moves when that is done
admin build remove NUMBER... signed administrators take builds off the list, with their logs and pages. Several numbers may follow; if one cannot be removed, none is. Not a build that is being built, and not one that is published. It cannot be undone
admin node add NAME < KEYS signed administrators let a build node in, to build for amd64, with both its keys on standard input: the one line of its SSH .pub file, then its GPG public key (cat folio-node.pub folio-node.asc | folio admin node add NAME). The SSH key lets it in; the GPG key signs every claim and result (recorded as nodes/NAME/pgp.asc and pgp = in nodes/NAME/node). The name is 3 to 32 lower-case letters, digits, ., _, + or -. It answers The build node NAME may come in (it builds for: amd64), and signs with the GPG key FPR. Without the GPG key: send both of the build node's keys: the one line of its SSH .pub file, then its GPG public key (cat node.pub node.asc | folio admin node add NAME ...). A node signs every claim and result with its GPG key; without one the site takes nothing from it
admin node add NAME ARCH... < KEYS signed administrators the same, for the kinds of processor named (arm64, or amd64 arm64)
admin node key NAME < KEY.asc signed administrators set the GPG key a build node signs with: for a node let in before nodes had one, or a new key after the old one ran out, was lost or the node was stolen. It answers The build node NAME signs with the GPG key FPR from now on.
admin node disable NAME signed administrators switch a node off: its key stops working, and what it was building goes back into the queue
admin node enable NAME signed administrators switch it on again
admin mirror add NAME URL signed administrators list a copy of the site kept elsewhere. The address starts with https:// (http:// is refused), at most 200 characters
admin mirror remove NAME signed administrators take it off the list

The record and the settings

Command Kind Who may What it does
admin settings read-only administrators every setting, as it is
admin releases read-only administrators what the mirrors of the distributions the site builds for say of their releases: for each, which release is oldoldstable, oldstable, stable, testing and unstable and whether the site builds it, and each release the site builds that is none of those ((none)), has gone from the mirror ((gone)) or could not be asked about ((?)). From the last daily check, made again first if it is more than an hour old. The owner and administrators are mailed once of a new release, a release that changed, and one that has gone; nothing is changed by it. See Settings Reference
admin set KEY VALUE signed administrators change a setting. Only the settings in the Settings Reference. Changing name, short-name or address also writes the archive's description and setup.sh again. Leaving a release out of releases, or a kind of processor out of architectures, says what will be taken out of the archive (excalibur will no longer be built, and its packages will be taken out of the archive: hello, treasure.) and takes it out at once; its builds that had not started are not made. Adding one queues every package's newest upload for it (Each package's newest upload is queued for gryphon too: 3 builds, of hello, treasure, unryu.). A release must be a release of a distribution the site has a mirror and keys for (distribution-RELEASE, mirror-DIST, keyring-DIST). Changing short-name (or name, when there is no short name) also says the site's word, and what changes when the word does: see Settings Reference
admin set KEY signed administrators remove a setting
admin log read-only administrators the latest 20 changes to the record: code, time (UTC), who, what
admin log NUMBER read-only administrators the latest NUMBER changes, at most 500
admin undo CHANGE signed administrators take one change back, by at least 7 characters of its code from admin log. The undoing is itself a change. Not the change that made the site, and not a change that later changes build on. What only the owner may do, only the owner may undo: an administrator cannot undo a change the owner made, nor one of the owner's account, of the owner's comments, or of the meta or upload of the owner's packages (whose maintainer is the owner now, or was before or after the change)
admin verify read-only administrators check the site's signature on every change in the record, and count them: signed by the site's key; by one of its signing keys replaced since, while it counted; not signed; signed by a key this server does not have, so they cannot be checked (listed; a lost or replaced site key, after a restore from the forge for example); signed by a signing key later revoked as stolen, before it was revoked, and accepted by the owner since (listed); signed by a signing key later revoked as stolen, before it was revoked, and not accepted yet (each listed with its code, date, author, what it was and the files it changed:); and with a signature that does NOT hold (listed, with why). It fails for the last two. The same counts follow on one line, as folio-audit prints them from a copy of the record: signatures: good N, replaced N, unsigned N, unknown key N, doubtful N, accepted N, not holding N (the two count with the same code, folio-verify.sh). Then it shows the site's key, its signing key, when that runs out and from when renewal is due, and what is due about the key

The forge

The forge is where the projects live. See Forge Setup for the whole of it.

Command Kind Who may What it does
admin watch-forge ADDRESS signed administrators look at a whole forge (https://forge.example.org) and list every public project there as waiting to be let in. Nothing is fetched or built by this
admin unwatch-forge signed administrators stop looking. Packages already let in stay
admin publish-to ADDRESS signed administrators the first of two steps: fetch the SSH host key of the forge's server at ADDRESS (ssh://git@forge.example.org/you, or ssh://git@forge.example.org:2222/you), at every address its name has, keep it as pending, and print its fingerprint (SHA256:... (ED25519)), to compare with the server's own (ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub there). Nothing is recorded or sent. When the key cannot be fetched: the SSH host key of the forge's server could not be fetched from HOST (port PORT), at any address that name has: is the address right, and does that server answer there? Nothing was changed
admin publish-to ADDRESS FINGERPRINT signed administrators the second step: confirm that key, by the fingerprint you compared. Only then are publish-to and publish-host-key recorded and the key kept as the one ssh trusts there (see Forge Setup, B1). It prints the key the forge must let in. A fingerprint the server did not show for that address: FINGERPRINT is not the fingerprint of a key the forge's server at HOST (port PORT) showed; nothing was changed. Fetch its key again with: admin publish-to ADDRESS
admin publish-key read-only administrators print that key again, and the forge's host key the site trusts: The forge's SSH host key, as an administrator confirmed it: SHA256:... (or that it was trusted on first use, or is not confirmed yet). admin settings shows the same line after the settings
admin publish-now signed administrators send what changed now, and say what happened
admin publish-off signed administrators stop sending. What is on the forge stays
admin registry-to ADDRESS signed administrators also put published packages into the forge's own package list, under the account ADDRESS (https://forge.example.org/you: the forge's name, perhaps with :PORT, and the account's name, nothing more). A token given before is for the address it was given for: after a change, nothing is uploaded until a token is given again
admin registry-token < FILE signed administrators the forge's access token for that: one line, in a file. It is kept for the package list registry-to names now, and sent there alone; it is kept in the private folder (then by the site's signer) and never shown again. Refused while no package list is named
admin registry-off signed administrators stop that, and delete the token

The owner only

Command Kind Who may What it does
admin role NAME owner signed the owner hand the site over: NAME becomes the owner and you become an administrator. NAME must not be suspended
admin erase comment PACKAGE ID REASON signed the owner take a comment out of the record's whole history
admin erase account NAME REASON signed the owner take an account and every trace of its name out of the record's history. It must look after no package. Not the owner's own account
admin erase package NAME REASON signed the owner take a package that was already removed out of the record's history
admin verify accept CODE... signed the owner after an emergency: accept, as the site's own, changes that admin verify lists as signed by a signing key later revoked as stolen, before it was revoked. Look at each first. Accepting means "the owner has reviewed this change", not "this change is fine": a forged change is undone first (admin undo CODE; it stays in the history, so it is still listed) and then accepted as reviewed. Written in the record (verify/accepted: the change, the key that signed it, who accepted it and when), signed with the signing key that signs now; admin verify then counts them as accepted. A change signed with a stolen key after it was revoked cannot be accepted
admin verify accept all signed the owner the same, for every change admin verify lists as not accepted yet; each one it accepts is listed back

The reason for erasing is required, at most 300 bytes, and is published. Erasing cannot be undone, and is refused while admin verify finds changes that do not hold or that the owner has not accepted. See the Owner and Administrator Guide.

What the site refuses

You try It answers
git push or git clone with the site's address folio: this site hosts no repositories. Put your project on your forge, then: watch https://forge.example.org/you (or, for one repository: follow ADDRESS). These two are read-only in kind (git-receive-pack, git-upload-pack): no signature is asked for, and they are always refused. They count against no limit
a word it does not know folio: unknown command: WORD (try: help), signed or not
a command that changes something, with plain ssh folio: that changes something, so it must come as a request signed with your GPG key: run it with the folio command (folio WORDS), or from the desktop program. Plain ssh can only look
a command that changes something, from an account with no GPG key folio: your account has no GPG key: it can look, but every change must be signed with your own GPG key. Make one (folio-mykeys pgp), send its public key (folio-mykeys export) to an administrator, and ask them to set it on your account (admin pgp NAME)
a signed request the site does not take (wrong account, wrong site, clock off, another key, input changed, sent twice, a key that ran out or was revoked) a line that ends nothing was changed. Each one, with its cause and fix, is in Troubleshooting
admin and a word it does not know folio: unknown admin command (try: help) (to an account that is not an administrator: folio: only an administrator may do that)
a command your role may not use a line saying who may, for example folio: only an administrator may do that
too many of one kind of action in an hour folio: that is N times in an hour, the most this site allows for this; try again later (see the Settings Reference)
anything that would change the record, while the site's signing key has run out folio: the site's signing key ran out on DATE, so the site takes no changes until the owner renews it (on the owner's computer: folio-site-key renew, then on the server: folio-key import BUNDLE). Commands that only read still work, and so do those that change nothing in the record (rebuild, decline, mail, admin build remove, admin registry-token, admin publish-now)
the same, while the site's signing key has been revoked and no other signs after it folio: the site's signing key has been revoked and none signs after it, so the site takes no changes until the owner makes a new one (on the owner's computer: folio-site-key emergency, then on the server: folio-key import BUNDLE)

Build nodes

A build node is a computer that builds packages for the site. Its SSH key reaches a different, smaller door, which knows only these commands. People do not type them; the program folio-node does. claim and result must come as a request signed with the node's own GPG key (the form people's requests have, with the account node:NAME), sent as signed REQUEST SIGNATURE; a result's request names the sha256 of the tar archive sent with it. The site checks it as it checks a person's request: the node that came in, this site, five minutes, the node's key, a new nonce. alive is not signed: it only says the node is still at a build it holds.

Command What it does
help says which node this is and the kinds of processor it builds for
request-info what a signed request here holds: site: FPR, account: node:NAME, time: SECONDS, pgp: FPR (or none)
claim (signed) take the oldest waiting build this node can do. The answer is nothing, or the build's facts as key = value lines
alive NUMBER say the build is still going. The answer is go on, or stop if the build is no longer wanted
result NUMBER STATE (signed) hand in a build. STATE is succeeded, failed, waiting or error; the files arrive as a tar archive on standard input. error means the node's own trouble: the build goes back into the queue, the third time not (it is failed then). waiting means what the build needs could not be installed; the archive then holds a file missing, a line for each thing, absent:NAME (not in the release) or present:NAME, alternatives on one line, and the site decides: failed if the release lacks something no package of the site builds for it, waiting if one of the site's packages builds it (queued again once that is published), failed otherwise. waiting without the file missing, or with nothing usable in it, counts as error (the site could not tell what the build waits for): the build's message says NODE could not build it: it handed the build in as waiting without saying what is missing (THE NODE'S MESSAGE). The answer's last line is build NUMBER: STATE (for waiting: the state the site chose, and the line before it says why), build NUMBER is queued again (for waiting, when what it waited for was published while it was built), build NUMBER is back in the queue (for error; the line before it says how many tries are left), build NUMBER: failed (for the third error of a build; the line before it says why), or build NUMBER is no longer wanted; nothing was taken

What the node door refuses, each ending in nothing was taken:

When It says
claim or result unsigned folio: a claim and a result must come as a request signed with this build node's GPG key (folio-node signs them, with the key its settings name: pgp = FINGERPRINT); nothing was taken
the node has no GPG key on record folio: the build node NAME has no GPG key, so the site takes neither its claims nor its results: a node signs each with a GPG key of its own. Make one on the node (see the Build Node Guide), and have an administrator add it: admin node key NAME < KEY.asc
signed with another key folio: this request is not signed with the build node NAME's GPG key (FPR); nothing was taken
signed for another account folio: this request is signed for ACCOUNT, but the SSH key that came in is the build node NAME's (node:NAME); nothing was taken
the archive is not the one signed folio: what came on standard input is not the result that was signed (its sha256 is another); nothing was taken
sent before folio: this request was sent before (its nonce was used already), and a signed request counts once; nothing was taken
the node's key ran out, or was revoked folio: the build node's GPG key FPR has run out (or the part of it that signs has), so the site takes nothing it signs. ... / ... has been revoked ...
for another site, or outside five minutes folio: this request was made for another site (this site's key is FPR); nothing was taken, folio: this request was signed at ..., more than five minutes from the site's clock (...): check the node's clock; nothing was taken

On the server

These run on the server itself. The guided setup runs as root (sudo ...). The others run as the user folio (sudo -u folio ...), except where a line says root: folio-key import of a bundle that holds signing keys, and folio-backup save when it is to take the signer's keys along.

Program What it does
/usr/lib/folio/folio-install the guided setup, as root. --data FOLDER for a folder other than /srv/folio; --yes to ask nothing
/usr/lib/folio/folio-setup --owner-pgp KEY.asc /srv/folio as the user folio: set the owner's GPG key, for an owner who lost theirs or a site made before keys were needed. It answers NAME's GPG key is now FPR: the owner signs changes with it from now on. The record says the owner's GPG key, set on the server, signed by the site's key. It is the one change made without a signed request: only the owner can reach the server
/usr/lib/folio/folio-key show the site's key: which parts are on the server, the signing key that signs and when it runs out, a new one that waits or an old one not yet revoked, the keyring package's version, and what is due (Due: lines). When the record's copy of the key is not the one the server holds: Due: the record's verify/site-key.asc is not the key this server holds (after a restore or a move?): folio-key record
/usr/lib/folio/folio-key record [OLD-KEY.asc] check every change of the record against the site's key as the record names it (OLD-KEY.asc, the old site's public key, when that is not the key this server holds) and refuse a record that does not hold (the record does NOT hold with the site's key ...); then write the key the server holds into the record (verify/site-key.asc), as a signed change of the site's key, after a restore or a move: above all after the record was brought back from the forge alone onto a server with a new key. It says The record's verify/site-key.asc is the key this server holds now (FINGERPRINT)., or that it is already. folio-backup restore does this by itself
/usr/lib/folio/folio-key merge [FILE] merge the newest the site can know of its key: FILE (the owner's public key, gpg --armor --export MASTER, or a bundle) and the forge's record's verify/site-key.asc. Only the site's own key, only its public part: a revocation made anywhere counts here too, and the site signs nothing with a key revoked there (it says so, loudly). A restore and every folio-key import do this by themselves
/usr/lib/folio/folio-key import BUNDLE take a bundle the owner made with folio-site-key on their own computer: new signing keys, a renewal, revoked keys or an emergency. Run as root (sudo) when it holds signing keys: they go to the site's signer, never to the user folio. It checks that the step may come now, publishes the keyring package and writes the change into the record. A bundle that holds the master, or that would revoke a signing key that signs now, is refused
/usr/lib/folio/folio-key switch step 2 of changing the signing keys: the new ones sign from now on, without waiting for their day. Needs no master
/usr/lib/folio/folio-key master-gone CODE on a site whose master (or its revocation certificate) is still on the server: delete them here, once the owner has them (folio-site-key adopt FILE shows CODE)
/usr/lib/folio/folio-key master-out FILE a site of the older kind: write the whole key, with the master's revocation certificate, to FILE, and take the master part off the server (the certificate stays until master-gone)
/usr/lib/folio/folio-key new-signing-key, revoke-old, renew, emergency a site of the older kind whose master is still on the server: the same steps, made there. Elsewhere they say to make them on the owner's computer (folio-site-key); a master's file is never brought back to the server
sudo /usr/lib/folio/folio-install --migrate FILE a site of the older kind: make its signer (the user folio-sign), hand it the signing keys and the forge's key and token, and write the whole key into FILE for the owner (folio-site-key adopt FILE). The master is deleted on the server by folio-key master-gone CODE
/usr/lib/folio/folio-signer ... the site's signer, run as folio-sign through the one sudo rule; not run by hand. It signs only an apt Release file with the archive's signing key (`release KEY clear
/usr/lib/folio/folio-backup save FILE.tar [--small] [--encrypt-to KEY] the whole site into one file, made exclusively (never written over, never in a folder anyone may write to unless it is sticky). As root it holds the signer's keys too. --encrypt-to KEY (a public key file, or an account's fingerprint; it must be able to encrypt) encrypts it; without it the file holds every key unencrypted. Never the master. --small: without the builds and the archive; after a restore, everything is built again
/usr/lib/folio/folio-backup restore FILE.tar bring a site back into a folder that holds none
/usr/lib/folio/folio-fetch --all look at every followed repository, watched account and the watched forge, and import what is new, now; then mail the owner if the signing key is due to be renewed, and let a new signing key take over if its day has come. While the signing key has run out it imports nothing, and notes that in the activity log, one line each run
/usr/lib/folio/folio-mirror now send what changed to the forge, now, and say what happened
/usr/lib/folio/folio-publish put finished builds into the archive and sign its lists, now; make the keyring package again if the key changed. Publishes nothing while the signing key has run out
/usr/lib/folio/folio-mail --list the mail that is waiting: to whom, and what about
/usr/lib/folio/folio-mail --show the mail that is waiting, in full. Sends nothing
/usr/lib/folio/folio-mail send the waiting mail
/usr/lib/folio/folio-keys /srv/folio/record /srv/folio/private/sshd/authorized_keys /usr/lib/folio/folio-door write sshd's list of keys again from the record
folio-generate /srv/folio/record /srv/folio/site write every page again

On your own computer

The site's key (the owner)

folio-site-key, in the package folio-client, keeps the site's master on the owner's computer (--home DIR for a GnuPG folder of its own; --no-passphrase for a master without one, not advised; --lifetime DAYS for new or renewed signing keys; -o FILE for the bundle's name; --new FINGERPRINT, twice, for the new signing keys of a change, as folio-key show on the server lists them, when the folder does not say which they are). Each command writes a bundle, to bring to the server (sudo /usr/lib/folio/folio-key import BUNDLE) and delete afterwards.

Command What it does
folio-site-key init NAME make the site's key: the master (it asks for its passphrase twice), a signing key for the archive and one for the record; the bundle for folio-install (FOLIO_SITE_KEY)
folio-site-key show the key, its signing keys, what each is for, and when each runs out
folio-site-key new-signing-key step 1: new signing keys for both. Run again before the change is done, it gives the same ones again
folio-site-key switch says that step 2 is done on the server (folio-key switch, or by itself)
folio-site-key revoke-old step 3: revoke the old signing keys, as replaced: exactly those that counted when step 1 made the new ones, as this folder noted then (folio-change-MASTER), never told by the keys' creation times. Only once the server says Old signing key:. A folder without that note (a change begun with an older folio-site-key) needs --new ARCHIVE --new RECORD
folio-site-key renew every signing key that counts lasts --lifetime days (365) from today
folio-site-key emergency revoke every signing key the server held, as stolen, and make new ones
folio-site-key adopt FILE take a master that was on the server (from folio-key master-out or folio-install --migrate) into this GnuPG folder, with its revocation certificate; shows the code for folio-key master-gone

The other programs

Program What it does
folio COMMAND [WORD...] run one of the site's commands. A read-only one goes as it is; a signed one is made into a request, signed with your GPG key and sent. What the command reads comes on standard input (package folio-client)
folio --kind COMMAND [WORD...] say what kind a command is: look, sign, sign input (it reads standard input) or unknown
folio --request SITE ACCOUNT TIME NONCE INPUT COMMAND [WORD...] print the request folio would sign, for checking. INPUT is a file, or none
folio --site NAME COMMAND [WORD...] the same, on the site NAME rather than the one in use (FOLIO_SITE=NAME folio COMMAND... does the same)
folio --sites list your sites: short name, name shown, address, web address, and whether it has its own certificate authority. * marks the one in use
folio --use NAME make NAME the site in use (it is noted in ~/.config/folio/current)
folio --add-site NAME --ssh folio@HOST --web https://HOST [--port N] [--key FILE] [--pgp FINGERPRINT] [--gnupg FOLDER] [--name "SHOWN"] [--ca FILE --ca-sha256 FINGERPRINT] add a site. In a terminal, what is not given is asked. --key is your SSH private key, for example ~/.ssh/id_ed25519; left out, your usual key is used. Given the .pub file, folio keeps the private key file beside it and says so (folio: Uses your SSH key ~/.ssh/id_ed25519 (the private half of id_ed25519.pub, which never leaves this computer).); a .pub file with no private key beside it, a file that is no key, and a private key file others can read are refused, each with what to do (see Troubleshooting). The private key never leaves your computer: the site sends a random challenge, your computer signs it with the key, and the site checks the signature with your public key. --ca is the site's own certificate authority, taken only if its fingerprint is the --ca-sha256 given (see the Member Guide). The first site added is the one in use
folio --remove-site NAME forget a site, with the SSH keys and certificate authority kept for it. Nothing changes on the site
folio [--site NAME] --host-keys fetch the site's SSH keys again from its pages and, if they are not the ones kept, show the fingerprints trusted until now and the ones listed now, and ask Trust the new keys? Type yes, or anything else to keep the old ones:. For after the site's owner changed them (a break-in, or a move)
folio --shown show standard input as folio shows what a site answers: control characters but the tab written out (\033 for an escape)
folio --help how to use it, and the sites' files
folio-mykeys show your keys, and offer to make what is missing
folio-mykeys show only show them, and what to do with them
folio-mykeys ssh make an SSH key
folio-mykeys pgp make a PGP key (--name "Your Name" --email you@example.org). It signs every change you ask for, and your uploads
folio-mykeys export print your PGP public key
folio-mykeys use FINGERPRINT if you hold several PGP keys: say which one is yours here. folio and the desktop program sign with it (it is noted in ~/.config/folio/pgp)
folio-audit [--key FILE] [--builds FOLDER] [--tsv] RECORD check a copy of a site's record (a clone of SHORT-record, or record/ from a backup) with public keys alone: every change signed by the site's key, every person's change carrying their own signed request for exactly that change, every change the site made by itself naming what authorised it; with --builds, each build's signed claim and result. Exit status 0 only if everything holds. See Auditing a Site
folio-desktop the desktop program
folio-node run be a build node, until stopped
folio-node once do at most one build, then stop
folio-node check show the limits on each build, the site's key the node trusts (site-key-fpr), and that the sandbox of the steps before a build hides the node's own files
folio-node trust-host-keys after the site's owner changed the site's SSH keys: fetch them from the site's pages, show their fingerprints beside the old ones, and trust them if you answer yes