Start here

Install and deploy

On this page

Slate runs as one Cloudflare Worker with D1, R2, a jobs queue and collaboration Durable Objects. The public source is just-every/run-slate.

On your computer

Run one line. Git is required; rer brings Node and pnpm: there is no Node or pnpm version to choose, since rer fetches the ones this checkout pins and installs the pinned dependencies itself.

curl -fsSL https://runeditrun.com/install.sh | sh -s -- dev just-every/run-slate

Already have Node 22 or later? npx -y @runeditrun/rer dev just-every/run-slate does the same. If the installer prints a line that puts rer on your PATH, run that line too. To start it again later, run the same line from the same folder, or cd run-slate && rer dev. This checkout runs the rer version pinned in package.json. In a fresh checkout rer dev alone installs the pinned dependencies and sets up a placeholder local owner; separate rer install and rer setup steps are optional. To use your own email instead, run rer setup --owner-email owner@example.test before rer dev (use your own address). Setup prepares local settings and the owner, then exits with no app running; rer dev starts Slate. When Slate is ready, open the printed RER_OPEN link to sign in as the local owner. Keep this link private. No email or outbox step is needed. On first use, name the workspace and create its first space and page at /setup. Private settings and local data survive restart; Slate creates no sample workspace. Setup reruns preserve your settings and owner. Stop dev with rer dev --stop. Use rer preview for a fixed production build.

Run Edit Run hosting

Or let Run Edit Run host it. Run Edit Run can set Slate up on your own Cloudflare account and keep it updated; sign-ups are by request for now.

Managed hosting includes mail without a Resend or SendGrid account. Run Edit Run Configure supplies the sender and relay settings and generates a private credential automatically. Free and Assisted hosting retain the options to use your own Resend or SendGrid account, verified sender and key. See Email delivery for relay acceptance and retry behavior.

Your Cloudflare account

Before deploying, you need a real Resend or SendGrid account, a verified sender and an owner mailbox you can read. Hosted Slate uses email sign-in. Supply these settings from your private vault or deployment environment:

  • CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN for your Cloudflare account.
  • SLATE_SETUP_OWNER_EMAIL: your readable owner mailbox.
  • SLATE_MAIL_PROVIDER: resend or sendgrid.
  • SLATE_MAIL_FROM: a sender verified with that provider.
  • SLATE_MAIL_API_KEY: the selected provider's API key.

See OPERATIONS.md for all inputs and credential requirements; rer generates the session secret on a first deploy. Validate and build locally, then deploy:

rer deploy --environment production --dry-run
rer deploy --environment production

Dry run makes no provider request and cannot verify your sender, API key or inbox delivery. Deployment creates resources in your Cloudflare account, applies database updates, publishes and checks health. Keep its .rer/deploy receipts.

After a healthy first deploy, rer claims SLATE_SETUP_OWNER_EMAIL as the owner using a one-time setup token, then removes the token. Open the printed address, request a sign-in email for that owner address and follow the link in your mailbox. You do not need a setup token. After signing in, name the workspace at /setup. A successful deployment alone does not prove that sign-in mail reaches your inbox. For a normal update in the same account and environment, follow the update steps below. Moving accounts or changing resource names needs a separate migration plan.

For backup and restore and confirmed reset, follow README.md. Product acceptance and inbox delivery remain separate from successful local or deployment checks.

For an optional linked identity provider, SLATE_IDENTITY_PROVIDER selects its exact HTTPS origin before initial setup; leaving it blank keeps email sign-in. Unattended first-time linking is currently unavailable for Slate's native accounts, so leave it blank on a fresh installation. Keep an existing provider selection unchanged during an update.

Update your existing wiki

Export your running wiki first. Before exporting, confirm the checkout is clean and git rev-parse HEAD matches the running wiki's /health deployment.sourceSha and the deployment receipt's source.sha. If they differ, preserve your local changes and find the deployed source revision before continuing. Sign in as its owner, confirm your email for the sensitive export, and save the single owner session cookie in an owned mode-0600 .seed/owner-session file. Replace the origin and environment below with the ones you already use:

rer export --target remote --origin https://wiki.example.com --session-file .seed/owner-session --output exports/before-update.rer
git rev-parse HEAD > exports/before-update.source
git pull --ff-only
rer deploy --environment production

Rer deploy installs the pinned dependencies automatically. rer update updates the CLI rather than your wiki source; use the health and retained-data checks below to validate this deployment.

Continue only after export succeeds. Keep the same Cloudflare account, environment, resource names, .rer/deploy receipts and private settings, including the session secret and identity-provider selection. Preserve local source edits when a pull refuses to fast-forward.

Before pulling, restore the backup into a separate empty checkout pinned to its recorded source revision and inspect it. An older archive may be refused by newer database update rules. Keep the checkout matching your backup for recovery until you have also verified restoration with the newer source.

Run rer deploy --environment production --dry-run to validate and build locally before deploying. Afterwards, check the receipt's project, environment and origin and match /health's deployment.sourceSha, fingerprint and versionId to it. Open retained pages, revision history, search, attachments and existing shared/public links with the same owner and expected access. A health response alone does not prove retained data or access.

Older deployments may record database updates in a format the exporter does not accept. If export refuses a migration record or unknown table, stop the update and preserve the database for review. See Operating Slate for compatibility details and recovery.

Remove a deployment

Export first: removal deletes the Worker and every D1 database, R2 bucket and queue rer created for that environment, with their data. Run it from the checkout that deployed it, with the same account credentials:

rer deploy --environment production --remove --yes

Rer reads back that none of them is still listed. A bucket that still holds files stays until it is empty; run the command again to finish. Resources rer did not create are never touched.

SAML single sign-on

A workspace owner can open Settings → SAML SSO and enter the identity provider’s entity ID, sign-in URL and public signing certificate. Copy Slate’s entity ID, assertion-consumer URL and metadata URL into the provider. Slate sends unsigned sign-in requests and requires signed assertions. Real Okta, Microsoft Entra and other provider acceptance has not been run for this build.

Choose the email domain and publish the TXT record shown under Domain verification. Select Check domain. Keep the record in DNS: Slate checks it daily. An unsuccessful check stops new just-in-time account creation and places a notice in each owner’s inbox; existing members can still use SAML.

New members must have a valid invitation or an exact email address in the allowlist, within the verified domain. A signed assertion alone grants no membership. Before selecting Require SAML for members, choose one active owner for the email break-glass path. Full members, including other owners, then use SAML. Guests keep email links, and only the designated owner keeps an owner email path. Previously issued member email links and sessions cannot bypass enforcement. Reassign that owner before removing them.

OIDC remains available while SAML enforcement is off. Saving SAML settings ends existing SAML sessions so people sign in under the current configuration. Backups exclude provider trust and pending sign-in authority; configure and verify SAML again after a restore.

Edit this page on GitHub