The october CLI
The CLI creates tenants and pushes their schemas to an october server. It is a thin client of the server's admin API.
Install
Your october server serves the CLI as one script. Download it and make it executable:
curl -fsSL https://october.sombra.so/cli/october -o october && chmod +x october
Use your server's URL. That saves the script as october in the current
directory, so run it as ./october; to type just october, move it to a
directory on your PATH (one you already have: /usr/local/bin,
~/.local/bin, wherever you keep your tools). The examples in these docs
assume you did. The script needs
Babashka (bb) on
your PATH. To update the CLI, run the same command again, where the
script is.
$ october version
october 0.1.0 (server build 4d15de6)
october --version prints the same. With --json:
{"version": "0.1.0", "build": "4d15de6"}. The build is the server's
build that served the script; it is also in the script's first lines.
curl -I https://october.sombra.so/cli/october shows the script's headers (its ETag)
without downloading it.
Usage
october login --url URL [--email EMAIL [--label NAME] [--code CODE] | --token TOKEN]
october whoami
october init SLUG [--schema FILE] [--demo] [--claude|--no-claude]
october check [FILE]
october plan SLUG [--schema FILE]
october push SLUG [--schema FILE] [--yes] [--allow-destructive]
october pull SLUG [--schema FILE]
october origins SLUG [--add ORIGIN]... [--remove ORIGIN]...
october demo SLUG [on|off]
october events SLUG [--limit N]
october roles SLUG [list]
october roles SLUG grant ROLE EMAIL [--scope ID]
october roles SLUG grant ROLE --user ID [--scope ID]
october roles SLUG revoke GRANT-ID
october erase SLUG EMAIL [--yes]
october export SLUG [--out FILE]
october dev [--schema FILE] [--port 8787] [--data mem|DIR] [--seed FILE] [--tenant SLUG]
[--allow-destructive] [--origin ORIGIN]... [--jar FILE]
october dev reset
october version
october with no command, or an unknown one, prints the usage and exits
with status 2. october --help prints it and exits with status 0.
Options
Every command takes:
| Option | Meaning |
|---|---|
--url URL |
the server, for example https://october.sombra.so. Default: the server you logged in to last. |
--token TOKEN |
an admin token. Default: the token saved for that server. |
--schema FILE |
the schema file. Default: schema.edn in the current directory. |
--json |
print the API's JSON answer instead of text |
push also takes --yes (don't ask) and --allow-destructive (retire
removed attributes).
Exit status
| Status | Meaning |
|---|---|
| 0 | done (also for a plan that shows destructive changes) |
| 1 | the server refused, check found errors, or you answered "no" |
| 2 | bad usage: no slug, no schema file, not logged in |
A refusal prints the HTTP status, the error type and the server's message:
Refused (409 slug-taken): Tenant slug scratch is taken; pick another
Two refusals read differently, since they are about what your token may reach (see Admin tokens):
No tenant acme that you administer. Run october whoami for the tenants you do.
Refused: This account can administer up to 5 apps, and administers 5 already. ...
Admin tokens
Accepted from the waitlist? The email that told you so has everything
below in three steps. The server is the one in that email (the hosted
october is https://october.sombra.so): install the CLI from
https://october.sombra.so/cli/october (it needs Babashka),
then october login --url https://october.sombra.so --email <the address you joined with>
and type the six-digit code emailed to you (10 minutes). That address is
the one that has the invite; another address gets the same answer and no
code. october whoami then says you administer no tenants yet: create
your first with october init SLUG (the README
walks through it).
You get an admin token (it starts with oct_) by signing in with your
email, where the server lets it sign in (october login --url URL --email EMAIL, below), or as a token the server's owner gives you. On a server
you run yourself, its owner issues admin tokens from the server's shell.
Your token administers the tenants you create and the ones you are
granted: their schemas, origins, demo mode, roles and version log. Keep
it secret. It is not a user token: it doesn't work on a tenant's GraphQL
API.
- You may create tenants, up to a limit the server sets (5 by default). Creating one makes you its admin.
- Other tenants don't exist for your token. Every command on a
tenant you don't administer answers as for a slug that doesn't exist
(
404 not-found), andoctober whoamiand the tenant listing show only yours. A slug someone else holds is still taken (409 slug-taken), the same answer whoever holds it. - The server decides the rest: whether a tenant's sign-in codes are emailed, its send limits, its status. On the hosted service these are set by the service.
october login
october login --url URL first asks the server how it lets you log in
(GET /admin/auth/methods, below). Every server takes
an admin token. A server that also signs in by email (the hosted october
does) asks for your email when you run it in a terminal; press Enter
there to paste a token instead. Without a terminal (a script, CI, an
agent) it reads a token from stdin unless you pass --email.
With your email, where the server lets it sign in (any address where sign-up is open; elsewhere, once you are invited):
$ october login --url https://october.sombra.so --email you@example.com
If you@example.com may sign in, a code is on its way there (it expires in 10 minutes).
Enter the code: 418093
Logged in to https://october.sombra.so as you@example.com (laptop); saved to /home/you/.config/october/cli.edn
You administer no tenants yet; create one with: october init SLUG
The server emails a six-digit code; type it when asked (or pass
--code CODE to a second run). You get a new token, labelled with your
machine's name (--label NAME to choose another), so each machine has
its own, and one can be revoked without the others. Your first sign-in
creates your admin user. Codes expire after 10 minutes, work once, and
stop working after 5 wrong tries; you can ask for a new one every 30
seconds, and the server limits how many it sends to an address, a
network and in all. An email that may not sign in gets the same answer
and no code, so nothing tells who has an account or an invite.
On a server with open sign-up, any address works: the CLI says
Sign-up is open on this server: a new address gets an admin account with its first code, and your first code makes your account. Then
create your first tenant with october init SLUG. The server takes a
limited number of new accounts a day, in all and from one network, and
none at a disposable-email domain. Past the daily limit, no code comes,
or, if one came, the sign-in says Not now: This server has taken all the new sign-ups it takes today. Try again tomorrow (UTC). (status 1). A
wrong or expired code: That code is wrong or has expired, status 1.
Where sign-up is by invite the CLI says Signing in by email needs an invite on this server, or an admin account already, and a wrong
code, an expired one or no invite reads That code is wrong or has expired, or you@example.com has no invite. Where sign-up is closed:
Sign-up is closed on this server: only its existing admins get a code.
On a server that doesn't sign in by email, --email stops with URL doesn't sign in by email and asks for nothing; log in with a token.
With a token for the server:
$ october login --url http://localhost:8931 --token "$ADMIN_TOKEN"
Logged in to http://localhost:8931 as you@example.com (laptop); saved to /home/you/.config/october/cli.edn
You administer shop
Without --token, the CLI asks for the token on stderr and reads it from
stdin, so you can pipe it in: echo "$TOKEN" | october login --url URL.
--token always works, on any server, and asks the server nothing else.
Login checks the token with the server, then saves it:
- in the file named by
$OCTOBER_CLI_CONFIG, else~/.config/october/cli.edn, with file mode 600; - per server, so you can log in to several servers. The last one becomes the default.
{:current "http://localhost:8931",
:servers {"http://localhost:8931" {:token "oct_...", :email "you@example.com"}}}
--json prints who the token belongs to and what it administers:
{"email": "you@example.com", "label": "laptop", "tokenId": "b9563baa-9803-4dfa-a907-4c7b41c0d22d",
"tenants": ["shop"]}
A wrong token: Refused (401 unauthenticated): Admin token required: Authorization: Bearer <admin token>, status 1.
october whoami
Shows who your token belongs to and the tenants it administers:
$ october whoami
you@example.com (laptop) on https://october.sombra.so: you administer shop, staging-shop
With no tenants yet: you administer no tenants yet; create one with: october init SLUG. --json prints the same as login --json.
Commands
october init SLUG
Creates the tenant SLUG with the schema file. If the file doesn't exist,
init first writes a starter schema to it:
;; An october app schema: merged over the built-in system schema ($users ...).
{:entities {:items {:attrs {:name {:type :string :min 1 :max 100}}
:permissions {:view true
:create [(authenticated? ?user)]}}}}
It also writes an AGENTS.md next to the schema file, for the coding agent
you build the app with, unless one is there already (init never changes
it). It names the server and the tenant, links the server's
raw docs and /llms.txt, and gives the rules an agent must
not get wrong: the schema file is the source of truth, and a change goes
plan, then push; pull only brings back a change made elsewhere.
When init writes AGENTS.md and there is no CLAUDE.md next to it, it
asks whether to write one too: a single line, @AGENTS.md, which imports
AGENTS.md into Claude Code. Claude Code reads AGENTS.md on its own only
when no CLAUDE.md exists in the folder or any folder above it. Enter
(or y) writes it. Only a terminal is asked: run by an agent, a pipe or
CI, init doesn't ask and doesn't write it unless you pass --claude.
--no-claude skips the question. An existing CLAUDE.md is never
changed.
$ october init shop
Also write CLAUDE.md for Claude Code? [Y/n]
Created tenant shop with schema.edn; its API is /t/shop/graphql
Wrote AGENTS.md: where this server's docs are, for your coding agent
Wrote CLAUDE.md: points Claude Code at AGENTS.md
--json:
{"slug": "shop", "hash": "3968cfc78b359493ca49355d6a410c53dde82104ecca8cceba6eae82ba7f17ce"}
The slug must match ^[a-z][a-z0-9-]{1,30}$, and each refusal names the rule
it hit — a legal slug is not a malformed one, and the server's own app is not a
reserved name:
Refused (400 bad-tenant): Tenant slug must match ^[a-z][a-z0-9-]{1,30}$
Refused (400 bad-tenant): Tenant slug admin is one of the slugs october uses for itself: ("admin" "control" "default")
Refused (400 bad-tenant): Tenant slug demo is the app this october ships: its pages and its reset name it, so it is not yours to create
The third is the site tenant's slug: the app that build installs (see
october demo, the reset endpoint below, and the pages it serves), named by that
build's config — a deployment names its own with OCTOBER_SITE_CONFIG (an EDN
file with :slug, :schema-file or :schema-resource, :admins, optional
:dataset and :demo?), and :prod with no such file installs none.
october dev is the exception: there the app tenant is yours to create, because
it is the app.
A slug that is already taken, by you or anyone, is
Refused (409 slug-taken): Tenant slug shop is taken; pick another. Past
your limit of tenants (5 unless the server sets another), init is refused
with 403 tenant-limit and the limit. When the server has no room for
more tenants, init is refused with 403 server-full
(Refused: This server has no room for another tenant now; try again later.).
--demo creates the tenant in demo mode (see
october demo); without it, demo mode is off.
An invalid schema is refused with the reason (400 bad-schema), and no
tenant is created. The tenant's API is at <server>/t/<slug>/ (see
api.md).
october check [FILE]
Checks the schema file (FILE, else --schema, else schema.edn) for
every error that plan, push and init would refuse it with, all at once.
It changes nothing and needs no tenant, so it works before init too.
$ october check
schema.edn has 3 errors:
Ref attr :items/owner points at unknown entity :people
Attr :items/n has :min 5 greater than :max 2
Permission :view of :items calls unknown rule owner?. Built-ins: authenticated?, created-by, has-role-on?, has-role?, self?; define others under the schema's :rules (see /docs/schema#named-rules-and-built-in-rules)
It exits 1 when there are errors, and 0 when there are none:
$ october check
schema.edn is valid
Warnings:
nobody can read Item: items has no :view rule, and a missing rule means no access, so its lists are always empty
The warnings are the ones plan shows about the schema itself (see schema.md). Plan also warns about a tenant's data and the fields new to it, which check can't know.
The checks run on the server, so check gives what the server you push to
would give. It uses the server you logged in to (or --url and
--token). When you aren't logged in, it uses the
october dev running in the current directory.
Fix the errors in the order shown. Some checks run only when the earlier ones pass: the shape of each attribute first, then the shape of the whole schema, then references, constraints and permission rules. So a fixed file can show new errors. Run check until it says the file is valid.
--json prints {valid, errors, warnings}: errors is a list of
messages, and each warning is {ident, kind, reason}.
october plan SLUG
Shows what pushing the schema file would change. It changes nothing.
$ october plan lists
Plan a0c43ec4d852 -> fd68405b15af
Add:
$users/display-name
items/done
items/list
lists/id
lists/members
lists.color/blue
october.spec/lists
...
Alter:
october.spec/items
Indexes:
adds an index on Item.rank
Permissions:
items: view true -> [(on-list? ?e ?user)]
on-list?: rule added
Destructive:
:items/name is in the database but no longer in the schema [push with --allow-destructive to retire it]
Warnings:
:items/name: 1 stored value(s) fail the new constraint; their entities refuse writes until those values are fixed
When nothing changes it prints No changes.. The two hashes identify the
tenant's current schema and the planned one. They cover the whole schema,
permissions and rules included, so a change to a rule alone is a change. For what each group means,
see schema.md; for Indexes,
schema.md.
--json:
{
"currentHash": "a0c43ec4d852cf693fe3bcaa2173ed19ddf0b4da9357e46b78059a6c4b10ab43",
"newHash": "fd68405b15af926e0975365d0a3746b95ad8d8286a35c3b70f65d29a09966335",
"additive": ["$users/display-name", "items/done", "items/list", "lists/id", "lists.color/blue", "october.spec/lists"],
"alter": ["october.spec/items"],
"permissions": [{"ident": "items", "kind": "permission", "reason": "view true -> [(on-list? ?e ?user)]"},
{"ident": "on-list?", "kind": "rule", "reason": "rule added"}],
"api": [],
"destructive": [{
"ident": "items/name",
"kind": "removed",
"reason": ":items/name is in the database but no longer in the schema",
"retirable": true
}],
"warnings": []
}
permissions and api list changes that touch no attribute, each
{ident, kind, reason}: kind is permission (ident: the entity),
view (the attribute) or rule (the rule's name) in permissions, and
graphql/type, private?, reverse or default in api. They are
never destructive.
Each destructive change and warning is {ident, kind, reason, retirable}.
kind is one of removed, changed, enum-type, enum-values-removed,
required-on-populated (destructive) or nonconforming (warning). Only
removed is retirable.
An invalid schema gives status 1 and the reason, with every error when
there is more than one (the errors october check
gives):
Refused (400 bad-schema): Permission :view of :items calls unknown rule owner?. Built-ins: authenticated?, created-by, has-role-on?, has-role?, self?; define others under the schema's :rules (see /docs/schema#named-rules-and-built-in-rules)
Refused (400 bad-schema): 2 errors in the schema:
Attr :items/a has :many?, which is only valid on :type :ref
Ref attr :items/b can't take :optional?: refs are optional by default, use :required? true
october push SLUG
Plans, shows the plan, asks, and applies.
$ october push shop
Plan 576b8590c8ea -> 861281b14bcd
Alter:
items/note2
Apply to shop? [y/N] y
Applied 861281b14bcd to shop
--yesskips the question. Use it in scripts: without it, any answer butyoryes(and an empty stdin) givesNot applied.and status 1.- If nothing changes:
No changes., status 0. - If your schema is unchanged but a server default it relies on changed
(users became closed by default, see
schema.md), plan lists it under
Permissions after
No schema changes. Already in effect, because the server's defaults changed (push to acknowledge):, and push applies the unchanged schema to acknowledge it, after which plan no longer shows it. - If the plan has a destructive change other than a removed attribute:
Refused: the plan has destructive changes (listed above), which push can't apply. Undo them in the schema file, status 1. Nothing is applied. - If the plan removes attributes:
Refused: removed fields would be retired. Pass --allow-destructive to do that (their data is kept), status 1. With--allow-destructive, removed attributes are retired: october stops serving them, and their data stays in the database. - Apply is tied to the plan's hashes. If someone else pushed in between,
the server refuses with
409 stale-plan("plan again"); run push again.
--json prints only the apply result (not the plan):
{"hash": "3968cfc78b359493ca49355d6a410c53dde82104ecca8cceba6eae82ba7f17ce",
"added": ["lists/owner-note"], "altered": [], "retired": ["lists/invite-code"]}
or, when nothing changes:
{"hash": "fd68405b15af926e0975365d0a3746b95ad8d8286a35c3b70f65d29a09966335", "unchanged": true}
Always pass --yes with --json: the question is printed to stdout and
would break the JSON.
After a push, the tenant serves the new schema, rules included, from its next request. Open live streams are closed then; subscribe again (see api.md).
october pull SLUG
Writes the tenant's applied schema to the schema file, overwriting it.
$ october pull shop --schema pulled.edn
Wrote shop's schema (576b8590c8ea) to pulled.edn
The text is exactly what was last applied, comments included. --json
prints {"schema": "<EDN text>", "hash": "..."} (and still writes the
file).
october origins SLUG
Lists, adds or removes the origins a browser page may call the tenant's
API from (CORS; see api.md).
--add and --remove can be repeated; with neither, it lists.
$ october origins shop --add http://localhost:5173 --add https://App.Example.com
Origins allowed on shop:
http://localhost:5173
https://app.example.com
$ october origins shop --remove http://localhost:5173 --json
{
"origins" : [ "https://app.example.com" ]
}
Origins are stored normalised (lower case, no default port). Something
that isn't a bare http/https origin is refused with status 1:
Refused (400 bad-origin): Not an origin: .... The slug default is reserved
and names no tenant: the root serves no tenant API at all (OCT-28). The
server's own address and its
OCTOBER_ALLOWED_ORIGINS are allowed on every tenant on top of this list,
and aren't shown in it. A change applies at once.
october demo SLUG
Shows or sets the tenant's demo mode: on, off, or nothing to show it.
$ october demo shop on
Demo mode is on for shop: sign-in codes come back in the response, so anyone can sign in as any email
$ october demo shop
Demo mode is on for shop: sign-in codes come back in the response, so anyone can sign in as any email
$ october demo shop off --json
{
"demo" : false
}
In demo mode send_magic_code answers with the code (demo_code), so
anyone can sign in as any email: use it for demos and development only.
Outside it, codes are emailed where the tenant's sign-in email is on. On
a server with a mailer, new tenants start with it on, within daily
limits: on the hosted service, sign-in email is on for new apps. Where it
is off (the server turned it off, or the server has no mailer), codes
aren't emailed, so the tenant's users can't sign in on their own (a
server with no mailer writes them to its log; one with a mailer never
does: see api.md). Demo mode wins: a tenant in
demo mode never emails. A change applies at once. The tenant a server ships with (the slug its config
names as :site) starts in demo mode when that config says so — at its
creation only — so october demo demo off holds across restarts, and no
environment flag turns demo on for anyone.
october events SLUG
What the server did about the tenant that its admins should know,
newest first (--limit N for the newest N; the server keeps the newest
500):
$ october events shop
2026-11-08T14:02:11Z email-suppressed email gone@example.com
2026-11-08T13:40:05Z email-cap-reached cap 100, limit tenant-day
2026-11-08T09:12:44Z email-bounced email typo@exmaple.com
| kind | detail | means |
|---|---|---|
email-suppressed |
email |
your app asked for a code for an address the server no longer emails (it bounced for good, or reported email as spam); the app got the answer of a sent code, and nothing was sent |
email-cap-reached |
limit, cap |
a daily cap refused your tenant's email; once a day per cap |
email-bounced |
email |
an email of your tenant's bounced for good |
email-complaint |
email |
its recipient reported it as spam |
email-auto-disabled |
reason |
too many bounces or complaints: the server turned your tenant's email off |
Only the tenant's admins see them. The list will grow (it is the start of a tenant activity and alert stream).
october roles SLUG
Lists the roles the tenant's schema declares and who holds them, and
grants and revokes them as the tenant's admin, whatever a role's
:grant rule says: that is how the first owner or admin of an
app is made, with no email in the schema (see
schema.md).
$ october roles teams grant org-admin Ada@Example.com
Granted:
org-admin -> ada@example.com [69e64c79-6962-44fc-9563-c60aac6de43e]
$ october roles teams
Roles of teams:
editor (scoped to teams)
granted by (or-join [?scope ?user] (has-role-on? ?user :owner ?scope) (has-role? ?user :org-admin))
org-admin: Administers the organisation
granted by the tenant's admins only
owner (scoped to teams)
granted by (has-role? ?user :org-admin)
Grants:
org-admin -> ada@example.com [69e64c79-6962-44fc-9563-c60aac6de43e]
$ october roles teams grant editor bob@example.com
Refused (400 bad-request): Role editor is scoped to teams: give the id of the one it is held on
$ october roles teams grant editor bob@example.com --scope 00000000-0000-0000-0000-000000000000
Refused (404 unknown-entity): No teams entity 00000000-0000-0000-0000-000000000000
$ october roles teams revoke 69e64c79-6962-44fc-9563-c60aac6de43e
Revoked 69e64c79-6962-44fc-9563-c60aac6de43e
grant ROLE EMAIL: whoever signs in with EMAIL holds the role, from their first sign-in (or at once, if they have signed in before).grant ROLE --user IDgrants to a user by id instead.--scope IDnames the entity a scoped role is held on.- In demo mode grants by email are refused (
409 demo-mode): anyone can sign in as any email there. Andoctober demo SLUG onis refused (409 email-grants) while the tenant has grants by email. revoke GRANT-IDtakes the idoctober roles SLUGshows.
october erase SLUG EMAIL
Erases the tenant's user with that email (see
api.md): their sessions end, their email,
profile and grants go from the data and its history, and what they
created stays, its author no one. Asks first; --yes doesn't.
$ october erase shop zoe@example.com
Erase zoe@example.com from shop? Their email and profile go from the data and its history, for good. [y/N] y
Erased zoe@example.com: 1 session(s) ended, 0 role grant(s) and 0 erased-with-them entities removed. History forgets them once the database's next indexing job runs.
october export SLUG
Downloads the tenant's schema and all its data, at one point in time, to
SLUG-export.jsonl (--out FILE for another file, --out - for
stdout). The file is only written when the whole export arrived; a cut
connection writes nothing and exits 1.
$ october export shop
Wrote shop's schema and 1204 entities (basis-t 5821) to shop-export.jsonl
What an export is for
Your data is yours. An export is everything you need to leave, or to keep a copy: the schema and every entity, in a plain format you can read with any JSON tool, without october. october reads it back into an empty tenant with the same schema (the same ids, values, relationships and creators; there is no CLI command for that yet).
The format
JSON Lines: UTF-8, one JSON object per line. The first line says what the file is; the last line closes it; every line between is one entity.
{"format":"october-export","version":1,"tenant":"shop","basisT":5821,"exportedAt":"2026-11-08T12:00:00.000Z","schemaHash":"9f2c…","schema":"{:entities {...}}"}
{"type":"$users","id":"6f1e…","createdAt":"2026-11-01T09:12:44.120Z","attrs":{"display-name":"Ana","email":"ana@example.com"}}
{"type":"lists","id":"0b7d…","createdAt":"2026-11-01T09:13:02.551Z","createdBy":"6f1e…","attrs":{"name":"Groceries","owner":"6f1e…"}}
{"type":"items","id":"5a90…","createdAt":"2026-11-01T09:13:10.004Z","createdBy":"6f1e…","attrs":{"list":"0b7d…","name":"Oat milk","done":false}}
{"end":true,"entities":3}
- The header carries the format's name and
version(1), the tenant,basisT(the database's point in time: every line is the data as it was then), when it was taken, and the schema exactly as you last pushed it (schema, EDN text: the fileoctober pullwrites). - An entity is its etype (
type, as in your schema,$usersincluded), itsid, when it was made (createdAt) and by which user (createdBy, a$usersid; absent for what the service wrote), and its fields (attrs), named as in your schema. A field without a value is left out. Values: strings, numbers and booleans as they are; an instant as an ISO-8601 string; a:uuidas a string; a:jsonfield as its JSON; an enum as its value's name ("open"); a relationship as the id of the entity it points at, or a sorted array of ids for a:many?one. Database ids never appear: refer to everything byid. - The order is the order the entities were made, so a relationship usually points at a line above it (not always: one set later can point further down).
- The end line counts the entities. A file without it is not whole.
Only the current data is in it, not its history (the revisions and
asOf reads the API offers).
What it holds about your users
- Your users (
$users), with their email addresses and every field your schema gives them. They are your app's users and your data, and the export is only for the tenant's admins. Look after the file as you would the personal data in it. - An erased user (see
october erase) stays erased: a line with theiridand no fields, so what they made still points at someone, and nothing else. Their email is in no line. - Role grants (
$roleGrants):role, the user (user, an id) or theemailit is granted to, and for a scoped role the entity it is held on (scope,{"type": ..., "id": ...}).keyis a uniqueness key made of those. - Never sign-in codes, sessions or any token or hash: they mean nothing outside this server. After a move your users sign in again.
Local development
For those who run their own october. On the hosted server you don't need
this, and can't use it as is: build against your tenant there, with your
page on localhost (README).
october dev runs october on your machine for your app: a local server
with your schema file as one tenant, applied again every time you save
it. Your app talks to it exactly as it will to a server, at
http://localhost:8787/t/<slug>/... instead of
https://<server>/t/<slug>/..., so only the base URL changes.
It needs Java 21 or newer on your PATH (for example from
Adoptium). The first run downloads the october
server (about 50 MB) from the server you are logged in to (or --url),
once per server version, into ~/.cache/october/; the server has to
allow that (OCTOBER_SERVE_JAR=true where it runs). The hosted server
doesn't. Otherwise pass --jar FILE with an october.jar, built from a
checkout with clojure -T:build uber.
$ october dev --seed seed.edn
Starting october (october 4d15de6 from https://october.sombra.so); the server log is /home/you/shop/.october/server.log
[10:02:11] Created tenant shop from the schema file
[10:02:11] Seeded shop from /home/you/shop/seed.edn: 3 items, 3 new users
october dev: your app is tenant shop on http://localhost:8787 (october 4d15de6 from https://october.sombra.so)
API http://localhost:8787/t/shop/graphql
Live http://localhost:8787/t/shop/live
Sign in http://localhost:8787/t/shop/runtime/auth/send_magic_code (codes at the mail page)
Schema http://localhost:8787/t/shop/schema.json, http://localhost:8787/t/shop/schema.graphql
Mail http://localhost:8787/dev/mail
Docs http://localhost:8787/docs/
Data in memory, gone when you stop (--data DIR keeps it)
Watching the schema file: every save is planned and applied.
Type r and Enter to reset (wipe and seed again), q and Enter to stop.
-
The tenant is named after the directory (
shophere), or--tenant SLUG. Use the slug your app has on the hosted server, and the URLs differ only in their host.schema.edn(or--schema FILE) is its schema; when the file doesn't exist,october devwrites a starter schema there first. -
Every save of the schema file is planned, the plan printed as
october planprints it, and applied when it is safe:[10:05:40] The schema file changed Plan 6233b15cf297 -> 9a0e2f1c4b7d Add: items/note [10:05:40] Applied 9a0e2f1c4b7d to shopA destructive change (a changed type, say) is shown and not applied; the server keeps the last good schema until you undo it. A removed field is retired only when you started with
--allow-destructive(asoctober pushdoes). A schema the server refuses prints its message (Schema error: ...) and the last good schema keeps running: fix the file and save again. -
Sign-in codes are never emailed. Every code the local server makes is listed at
http://localhost:8787/dev/mail(the page reloads itself;/dev/mail.jsonhas the same as JSON), so your sign-in flow works end to end: ask for a code from your app, read it there, enter it. Demo mode is off, as on the hosted server: the code is not in the answer. -
Seed data.
--seed FILEwrites the file's data when the tenant is created, and again on every reset. It goes through the same checks as any write (types, constraints, required fields), and each item is recorded as made by its user, socreatedByand permissions behave as they will for real data. The format:{:users [{:email "cy@example.com" :display-name "Cy"}] ; optional: extra fields, users with no items :items [["ada@example.com" :lists {:ref :list/home :title "Home"}] ["ada@example.com" :items {:list :list/home :text "Milk"}] ["bob@example.com" :lists {:title "Bob's"}]]}Each item is
[email etype input], written in order (an email ofnilwrites it as no user:createdByis null). The input uses the schema's field names (:title, an enum value as a keyword such as:published). A ref names an earlier item by its:refkeyword (the:refitself is not stored); a field with:default :auth/user(an author) is filled with the item's user. Every email an item names becomes a user. Items are written one by one: when one doesn't fit the schema, the message says why, and the items before it stay. -
Reset. Type
rand Enter, or runoctober dev resetin another shell in the same directory: the tenant is deleted and created again with the schema it was running, then the seed file is written again. -
Persistence. By default the data is in memory and gone when you stop.
--data DIRkeeps the tenant inDIR(DIR/<slug>.edn, saved about a second after each change and when you stop) and restores it on the next start: the data, its history and who made each change. The seed file is written only when the tenant is new. -
Browser origins. A frontend on
http://localhost:3000,:5173or:8080may call the API;--origin ORIGIN(repeatable) replaces that list. -
Stopping.
qand Enter, or Ctrl-C, stops the server (and saves--data).october devkeeps its state in.october/in your project (the running server's address and token, and its log,.october/server.log); add it to your.gitignore. -
--port PORTpicks another port (default 8787); a port in use is refused.--jar FILEruns thatoctober.jarinstead of downloading one.
Locally the server is yours, and your token reaches everything on it:
every admin command works against it (october whoami --url http://localhost:8787 --token ... with the
token from .october/dev.edn), and /docs/ is served there too.
Typical session
october login --url https://october.sombra.so --token "$ADMIN_TOKEN"
october init shop # writes a starter schema.edn, creates the tenant
$EDITOR schema.edn
october check # every error at once; fix, check again
october plan shop
october push shop --yes
october pull shop --schema applied.edn # check what the server has
The admin API
The CLI calls these endpoints; you can call them with curl too. Every
request needs Authorization: Bearer <admin token>, except the three
sign-in ones.
| Method | Path | Body | Answer |
|---|---|---|---|
| GET | /admin/auth/methods |
no token | {methods: [{type, ...}]}: how to log in to this server, below |
| POST | /admin/auth/send-code |
{email}, no token |
{sent}, the same whether or not the email may sign in |
| POST | /admin/auth/verify |
{email, code, label} (label optional), no token |
{token, tokenId, email, label}; a new account past the day's sign-ups: 429 rate-limited |
| GET | /admin/whoami |
{email, label, tokenId, tenants} |
|
| GET | /admin/tenants |
{tenants: [{slug, status, managed, demo, createdAt}]}, the tenants you administer |
|
| POST | /admin/tenants |
{slug, schema, demo} (demo optional, default false) |
{slug, hash, demo} |
| GET | /admin/tenants/<slug>/schema |
{schema, hash} |
|
| POST | /admin/schema/check |
{schema} |
{valid, errors, warnings} (see october check) |
| POST | /admin/tenants/<slug>/schema/plan |
{schema} |
the plan; an invalid schema is 400 bad-schema with errors, the list check gives |
| POST | /admin/tenants/<slug>/schema/apply |
{schema, currentHash, newHash, allowDestructive} |
{hash, added, altered, retired} |
| GET | /admin/tenants/<slug>/versions |
{versions: [{hash, appliedAt, by}]} |
|
| GET | /admin/tenants/<slug>/origins |
{origins} |
|
| PUT | /admin/tenants/<slug>/origins |
{origins} (replaces the list) |
{origins} |
| GET | /admin/tenants/<slug>/events |
?limit=N |
{events: [{at kind detail}]}, newest first (see october events) |
| GET | /admin/tenants/<slug>/demo |
{demo} |
|
| PUT | /admin/tenants/<slug>/demo |
{demo} (a boolean) |
{demo}; turning it on is 409 email-grants while the tenant has role grants by email |
| GET | /admin/tenants/<slug>/roles |
{roles: [{role, scope, doc, grant, retired}], grants: [{id, role, user: {id, email}, email, scope: {id, type}, grantedBy, grantedAt}]} |
|
| POST | /admin/tenants/<slug>/roles/grants |
{role, email} or {role, userId}, plus scopeId for a scoped role |
{grant}; 409 demo-mode for an email in demo mode, 404 unknown-entity for a scope or user that doesn't exist |
| DELETE | /admin/tenants/<slug>/roles/grants/<id> |
{revoked} |
|
| DELETE | /admin/tenants/<slug>/users/<email>?confirm=<email> |
{erased, tokens, codes, grants, entities, basisT}; 404 unknown-user |
|
| GET | /admin/tenants/<slug>/export |
the export, streamed as application/x-ndjson; its basis-t also in X-October-Basis-T |
GET /admin/auth/methods lists the ways this server lets an admin log in,
in the order to offer them. It is the same for everyone, and cacheable
(Cache-Control: public, max-age=300). token is always first: an
admin token for the server. A server that signs in by email code adds
email-code, with the paths to ask for a code and to trade it, and
signup, who may sign in that way: open (anyone), invite-only (an
invited email, or an admin already) or closed (existing admins only).
It describes the server, never a given address. On the hosted october:
{"methods": [{"type": "token"},
{"type": "email-code", "sendCode": "/admin/auth/send-code",
"verify": "/admin/auth/verify", "signup": "invite-only"}]}
A server from before this endpoint answers 404; the CLI then logs in as it always did.
schema is the EDN text, as a JSON string.
Every /admin/tenants/<slug>/... endpoint answers
404 {"type":"not-found","message":"No tenant <slug> that you administer"}
for a tenant your token doesn't administer, exactly as for a slug that
doesn't exist. POST /admin/tenants answers 409 slug-taken for a taken
slug, 403 {"type":"tenant-limit","limit":5,...} past your limit, and
403 server-full when the server takes no more tenants.
$ curl -s https://october.sombra.so/admin/tenants -H "authorization: Bearer $TOKEN"
{"tenants":[{"slug":"default","status":"active","managed":false,"demo":true,"createdAt":"2026-10-18T10:48:46.587Z"},
{"slug":"scratch","status":"active","managed":true,"demo":false,"createdAt":"2026-10-18T10:49:29.895Z"}]}
$ curl -s https://october.sombra.so/admin/tenants/scratch/versions -H "authorization: Bearer $TOKEN"
{"versions":[{"hash":"a0c43ec4d852cf693fe3bcaa2173ed19ddf0b4da9357e46b78059a6c4b10ab43",
"appliedAt":"2026-10-18T10:49:29.895Z","by":"dev@localhost.test"}]}
One tenant is the server's own app: the slug its config names as :site
(demo on october's own box). It is a managed tenant like every other, so
plan, push and pull work on it: the build's schema is what it starts from
when it is first created, and after that it is yours to push. Its slug is
reserved — POST /admin/tenants with that slug is 400 bad-tenant — so no
one takes the urls it serves. The public demo's data is reset daily by the
service.
Decided by the server, not by your token: whether a tenant's sign-in
codes are emailed (api.md), its send limits and
daily caps, its notifications, and its status. A
disabled tenant's API answers
404 {"type":"unknown-tenant"}, as for a tenant that doesn't exist; its
data stays. On the hosted service these are set by the service.