Skip to content

fonts

Manage private fonts stored in the R2 archive.

Use fonts to list, publish, and remove OpenType fonts in the private font archive. Configure the archive credentials before using commands that access it.

Runtime configuration

Archive commands require an explicit bucket in this machine’s config.toml:

[fonts]
bucket = "my-private-fonts"

This table is preserved by config wizard. OUTFITTING_PRIVATE_FONTS_BUCKET overrides the TOML bucket. Without either, archive commands use the bucket stored by configure-endpoint from a bucket URL. There is no implicit bucket default. Font commands do not read outfitting.deploy.json or OUTFITTING_DEPLOY_CONFIG; provisioning settings cannot select a runtime font target. Plain fonts list reads only the sync inventory and does not require a bucket.

Environment variables take precedence over native font credentials on every host:

Variable Purpose
OUTFITTING_S3_ENDPOINT Bare HTTPS S3 endpoint or Cloudflare account ID.
OUTFITTING_S3_ACCESS_KEY Archive access key ID.
OUTFITTING_S3_SECRET_KEY Archive secret access key.

Set both key variables together. An incomplete or blank environment credential pair fails before native credential access; it is never combined with a stored key. Without key overrides, the existing outfitting-fonts native credentials remain in use. In Amp orbs (AMP_ORB=1), all three variables are required and native storage is not used. Ordinary hosts can still configure native credentials with the commands below.

The inventory API uses the separate sync configuration. Publish, remove, and repopulate print the selected bucket and inventory API, including during dry runs. Verify they belong together before writing. repopulate and list --repopulate rewrite the inventory without a confirmation prompt; use repopulate --dry-run to review first.

The bucket must contain releases/fonts.tar.gz, with font files under fonts/, and releases/fonts.tar.gz.sha256. The sidecar contains the compressed archive’s SHA-256 followed by two spaces and fonts.tar.gz. The archive object also needs sha256 custom metadata matching those same compressed bytes. The publisher writes these values; repopulate only repairs the sync inventory, not a missing sidecar or metadata.

configure-endpoint

Syntax: outfitting-manager fonts configure-endpoint [<endpoint>]

Save the archive endpoint for later font commands. Enter an HTTPS endpoint, a 32-character Cloudflare account ID, or the bucket URL Cloudflare shows on the bucket page, such as https://<account>.r2.cloudflarestorage.com/my-private-fonts. A bucket URL is split: the bare endpoint and the bucket are stored as separate outfitting-fonts native entries. Saving an endpoint without a bucket clears a previously stored bucket. [fonts].bucket and OUTFITTING_PRIVATE_FONTS_BUCKET still take precedence over the stored bucket.

URLs with more than one path segment, a query, or a fragment are rejected. A stored or OUTFITTING_S3_ENDPOINT endpoint that includes a bucket path is rejected; rerun configure-endpoint with the bucket URL to split it.

outfitting-manager fonts configure-endpoint

configure-credentials

Syntax: outfitting-manager fonts configure-credentials

Prompt for and save the archive access keys for later font commands.

outfitting-manager fonts configure-credentials

list

Syntax: outfitting-manager fonts list [--repopulate]

List the available font faces. Use --repopulate to refresh the list from the archive first.

outfitting-manager fonts list
outfitting-manager fonts list --repopulate

repopulate

Syntax: outfitting-manager fonts repopulate [--dry-run]

Refresh the font list from the archive. --dry-run shows what would change without saving the refreshed list.

outfitting-manager fonts repopulate
outfitting-manager fonts repopulate --dry-run

publish

Syntax: outfitting-manager fonts publish <dir> [flags]

Add OpenType fonts from a directory to the private archive. Review the planned changes before confirming the upload, or use --dry-run to preview them.

outfitting-manager fonts publish ~/fonts
outfitting-manager fonts publish ~/fonts --dry-run
Option Description
--dry-run Preview changes without uploading fonts.
--yes Upload without asking for confirmation.
--replace Replace an existing archive file.
--keep-names Use sanitized source filenames for archive names.
--allow-system-names Allow reserved system font names.

Each archive upload includes lowercase SHA-256 hex in the R2 object’s sha256 custom metadata in the same PUT as the gzip bytes. The machines installer’s /fonts Worker reads the archive and this metadata together, while desktop installers still hash the downloaded bytes before use. The publisher continues writing the .sha256 sidecar because its baseline checks depend on it; KV inventory is updated separately and is not part of this read snapshot. Upgrade all font publishers before deploying a Worker that requires this metadata.

remove

Syntax: outfitting-manager fonts remove <name...> [flags]

Remove one or more font faces by full face name, archive path, or PostScript name. Use --family to remove every face in a family by its slug.

outfitting-manager fonts remove "Example Sans Regular"
outfitting-manager fonts remove example-sans --family --dry-run
Option Description
--family Remove every face in each named family.
--dry-run Preview changes without modifying the archive.
--yes Remove faces without asking for confirmation.
Navigation

Type to search…

↑↓ navigate↵ selectEsc close