CLI
Create and package Runes from your terminal. Set up an existing server with the Rune plugin and manage Runebook packages.
Authentication
Run rune login to open Runebook in your desktop browser. On a headless server or over SSH, enter the terminal code at the displayed URL on another device. Add --device to use that flow from a desktop.
rune login
rune login --device
rune whoami
rune logoutFor CI, create a personal access token in your dashboard and pass it through RUNE_TOKEN or rune login --token. Browser-issued credentials expire after 30 days.
Project lifecycle
rune init
Scaffold a new Rune project in the current directory.
rune init hello
rune init hello-js --language javascript
rune init hello-py --language python
cd hello
rune check
rune packCreates rune.toml, .runeignore, a README, and a player-join example in src/. rune check validates your manifest and checks whether the entry point will be packed.
rune pack
Build a publishable archive. Computes per-file sha256 hashes, assembles the canonical manifest, and writes a zstd-compressed archive into the output directory.
rune pack # writes to ./dist/
rune pack --out ./build # custom output dir
rune pack --dir ./scripts/guild-ranks # pack a different projectThe archive is content-addressed — pack the same source twice and the hashes match. Useful for verifying a published artifact: rune pack locally, compare the hash on the Runebook detail page.
rune publish
Pack and upload in one step. The CLI sends the manifest first, gets pre-signed R2 URLs for any blobs the registry hasn't seen, uploads them, then finalizes.
rune publish # ship as a stable version
rune publish --draft # publish but pre-yank for testing
rune publish --yes # skip the confirmation prompt
rune publish --registry https://... # alternate registryServer-side commands
rune setup
Install the Rune plugin into an existing Paper server and create its scripts directory. Setup finds the server from your current directory, or you can pass the server folder explicitly.
rune setup
rune setup "/path/to/paper"
rune setup --startPaper generates Rune’s config and types when it starts.
rune add
Install a published Rune into plugins/Rune/scripts/. Resolves the latest stable version unless you pin one.
rune add guild-ranks
rune add guild-ranks@0.1.0
rune add @yourname/foo
rune add guild-ranks --scripts ./plugins/Rune/scripts
rune add guild-ranks --force
rune list
rune updaterune remove
Uninstall a Rune by name. The CLI deletes its script directory; rune.store() data is preserved by default.
rune remove guild-ranks
rune remove guild-ranks --yes # skip confirmationIn-server commands
Some commands are run inside Paper, against the running host, not the CLI:
/rune reload— re-evaluate every script. The iteration loop. Doesn't restart the server./rune list— show every script the host is currently running, with its version./rune info <name>— show a script's manifest, declared capabilities, and current uptime./rune new <name> [language]— scaffold a new script directly inside the server (convenience equivalent to runningrune initfrom the scripts dir).