Publish a Rune

Runes are published from the CLI. The website verifies the manifest, deduplicates blobs against existing storage, and serves them. You authenticate with a personal access token from your dashboard.

1. authenticate

Create a CLI token in the dashboard, then save it on your machine:

rune login

The token is stored under ~/.config/rune/token and sent as Authorization: Bearer rune_pat_*.

2. pack

From your Rune directory:

rune publish

The CLI resolves your file list, computes SHA-256 hashes for each file, and builds the canonical manifest. Identical content always produces the same manifest hash.

3. upload

The CLI sends the manifest to the registry, receives pre-signed R2 PUT URLs for any blobs not already in storage, and uploads them directly to R2. Blobs are content-addressed: two Runes that ship the same file dedupe to one storage object.

4. finalize

Once every blob is in R2, the CLI calls finalize. The registry verifies presence, atomically registers the version, and returns the canonical install string. A half-uploaded publish is never visible.

capability disclosure

Every host privilege your Rune asks for goes in the manifest's capabilities array. These appear on the detail page before the install command, weight-graded by trust cost. Capabilities are part of the manifest hash, so they are part of the version's identity: adding a capability requires a new version.

yanking

If you ship a broken version, you can soft-delete it:

rune yank @<scope>/<name>@<version> --reason "broken on 1.21.4"

Yanked versions remain installable for operators who pinned them, but disappear from the default resolver and show a warning banner on the detail page.