Documentation
What Moorage is, where everything is, and the commands you will use most.
On this page
How to install Moorage, run it, and deploy apps to it. This documentation describes Moorage 0.10.1; the design documents describe how it works inside and where it is going.
Start here#
- Getting started: from nothing to an app with a URL, a preview and a rollback, in ten minutes.
- Concepts: apps, environments, releases, gates and roles, on one page.
- The examples: complete apps, ready to deploy.
Deploying apps#
- With git push: the production branch deploys, and the push shows the build
- From a forge: connect a repository on GitHub, GitLab or Gitea, with a preview for each pull request
- Go
- Python, with uv
- Node.js, with npm
- Static sites
- In containers: a
Containerfile, or an image from a registry - Anything else: your own build, a script, an app that is already built
Running apps#
- The web console: the apps, what happened, and getting started.
- Releases, rollbacks and scaling: how a release takes over, what happens when one fails, and going back
- Variables and secrets
- Previews and environments: a place of its own for every branch, staging, promoting, locks and sleeping
- Cron jobs and one-off commands
- Getting into an app: a terminal, a console in the browser, and the data directory
- Logs: what apps say, followed and searched
- Metrics: charts in the console, and for Prometheus
- Notifications: told when something goes wrong, in the console, by webhook, in chat and by email
- Who can reach an app: passwords, signing in, share links and lists of addresses
- Your own domains, and paths: hostnames of your own, several apps on one hostname, and servers with no wildcard DNS
Running a server#
- Installing Moorage: get
moor, configure the server, run it as a service, back it up. - Server configuration: every setting of
server.toml. - Running a server: the first week, what to look at, and what changes as it grows.
- TLS and trusting the server: the certificates, and
moor trust. - Behind a TLS proxy: nginx or anything else in front of Moorage.
- Accounts and access: claiming a server, signing in, users, API tokens and SSH keys.
- How people sign in: single sign-on with your identity provider, and signing in through a proxy.
- How apps are kept apart: a user of its own for each app, limits and a sandbox
- Backups: on demand and on a schedule, to a directory or a bucket, and restoring them
- Sending telemetry elsewhere: logs to syslog, OTLP or HTTP, metrics over OTLP, and thresholds
- Services: a database for each environment, which an app asks for in its manifest
- Coding agents:
moor mcp, connecting Claude Code, Codex, Kiro and others, and what limits them - When something is wrong:
moor server doctor, stopping everything, and logs.
How it works#
- Architecture: one process and its small helpers, how a request and a push go, and where everything is kept.
- Security: what Moorage protects, what it does not, and how to report a problem.
Reference#
moorage.toml: every setting of the app manifest.- The command line: every command and its flags.
- The API: authentication, lists, errors, and the OpenAPI document.
The commands you will use most:
| Command | What it does |
|---|---|
moor deploy [DIR] | Builds and deploys the source in DIR; prints the app's URL |
moor deploy --image REF | Runs an image, pinned to its digest |
moor git remote | Adds the app's git remote: git push moorage main deploys |
moor keys add | Registers your SSH key, so that you can push over SSH |
moor registry login HOST | Keeps a private container registry's credentials on the server |
moor trust | Trusts the server's CA on this machine |
moor server doctor | Checks the server and what it depends on, and says how to fix what it finds |
moor apps | Lists the apps; create, info, move, rename and delete one |
moor events | Shows what happened on the server; -f follows it |
moor deployments | Lists an app's deployments; show and follow one |
moor releases | Lists an app's releases; show one, and diff two |
moor rollback [vN] | Serves an earlier release again, in a moment |
moor environments | Lists an app's environments; create and delete one |
moor previews | Lists the previews of branches; create, pin, unpin and destroy one |
moor promote --from ENV | Releases what one environment runs to another, without building it again |
moor lock, moor unlock | Stops deployments to an environment, and lets them go on |
moor sleep, moor wake | Stops an environment's instances until a request wakes it, and starts them |
moor access | Shows who can reach an environment; set changes it |
moor share | Makes a link that lets someone reach an environment; list and revoke them |
moor domains | Lists an environment's own hostnames; add, verify and remove one |
moor redeploy | Builds the current release's source again, and rolls it out |
moor ps | Lists the app's instances: status, health, port, PID |
moor logs [-f] | Shows the app's output, and with --source its builds, requests and events; --grep, --since and --problems narrow it down |
moor restart [PROCESS] | Replaces the instances without downtime |
moor run -- COMMAND | Runs a command in the current release, and ends with its exit status |
moor run -it -- /bin/sh | A terminal in the current release |
moor files | What is in the data directory |
moor metrics | Shows requests, response times, CPU and memory over a range |
moor cron | Lists the cron jobs; run one now, runs and log show how they went |
moor scale [PROCESS=N ...] | Shows or changes how many instances of each process run |
moor env | Lists and changes variables and secrets; reveal reads a secret |
moor manifest explain | Shows how Moorage will build and run the app |
moor server status | Shows the server and its service |
moor login [URL] | Signs in to a server, approving it in a browser |
moor whoami | Shows who you are signed in as |
moor password | Changes your password |
moor projects | Lists your projects; create, show, set, add-member, remove-member and delete them |
moor audit | Shows who did what, for administrators |
moor tokens | Lists your API tokens; create and revoke them |
moor server users | Lists the users; create, invite, role, disable and enable them |
An app is chosen with --app, $MOOR_APP, [app].name in the moorage.toml of the current directory, or the repository's moorage git remote.
How Moorage works, in brief#
- The server is the
moorbinary, run as a service. It keeps its state in one SQLite database and one data directory, and answers every app's hostname (<app>.<domain>) itself. - A deploy uploads the app's source, or pushes it to the app's git repository on the server. The server works out how to build it, installs the toolchains it needs (checked against their published checksums) and builds it in the directory it will run from.
- A release is a build with its variables. A new release takes over only once its instances answer their health checks; the old ones finish their requests first.
moor rollbackbrings an earlier release back. - Each instance runs under a small supervisor of its own, which restarts it when it fails and keeps it running while the server restarts.