Commands
Every command that works on an app, in the order you meet them: create it, check and push its schema, then run it. Logging in is on the CLI's first page. Part of the october CLI.
october init NAME#
Creates the tenant named NAME with the schema file. If the file doesn't
exist, init first writes a starter schema to it.
On a server that makes slugs, as the hosted october does, NAME is the
tenant's name (lower case letters, digits and dashes,
starting with a letter, at most 25 characters), and the server makes its
slug from the name and five random characters: october init shop creates
the tenant named shop at the slug shop-k3f9q, and prints the slug.
Every other command takes the slug. Two accounts may both have a shop;
one account can't have two (409 name-taken). A server that doesn't make
slugs (one you run yourself, unless it sets OCTOBER_TENANT_SLUG_SUFFIX)
makes the slug the name itself.
Where the server has orgs, the tenant goes in an org: --org SLUG, else
your only one. In none, init stops with Create an organization first: <server>/dashboard, or: october orgs create NAME; in several, with
You're in several orgs: a, b. Pass --org. A name is then unique in its
org, and past the org's limit init is refused with 403 org-full.
The starter schema:
- Lang
- EDN
;; An october app schema: merged over the built-in system schema ($users ...). {:entities {:items {:attrs {:name {:type :string :min 1 :max 100}} :permissions {:view [(created-by ?e ?user)] :create [(authenticated? ?user)]}}}}
Like every schema, it starts closed: each person sees only the items they made. Open what your app needs.
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.
- Terminal
- october init shop
$ october init shop Also write CLAUDE.md for Claude Code? [Y/n] Created tenant shop (slug shop-k3f9q) with schema.edn; its API is /t/shop-k3f9q/graphql Wrote AGENTS.md: where this server's docs are, for your coding agent Wrote CLAUDE.md: points Claude Code at AGENTS.md
--json:
- Lang
- JSON
{"slug": "shop-k3f9q", "name": "shop", "hash": "3968cfc78b359493ca49355d6a410c53dde82104ecca8cceba6eae82ba7f17ce", "demo": false}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:
- Lang
- Text
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.
A slug that is already taken, by you or anyone, is
Refused (409 slug-taken): Tenant slug shop is taken; pick another. On
the hosted october the limit is the org's: an org has room for 1 live
tenant for now, an account owns at most 2 orgs, and init past the org's
limit is refused with 403 org-full. On a server without orgs the server
sets the limit (5 unless it sets another), and init past it 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.
- Terminal
- october check
$ 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-rules#named-rules-and-built-in-rules)
It exits 1 when there are errors, and 0 when there are none:
- Terminal
- october check
$ 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).
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.
- Terminal
- october plan lists
$ 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-attributes.md.
--json:
- Lang
- 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"], "retire": [], "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):
- Lang
- Text
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-rules#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.
- Terminal
- october push shop
$ 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-permissions.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 that hold values:
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. - Removed attributes that hold no value are listed under Retire and
retired by every push, without
--allow-destructive: nothing is lost. So a new tenant's starteritemsgoes quietly on your first push. - 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):
- Lang
- JSON
{"hash": "3968cfc78b359493ca49355d6a410c53dde82104ecca8cceba6eae82ba7f17ce", "added": ["lists/owner-note"], "altered": [], "retired": ["lists/invite-code"]}
or, when nothing changes:
- Lang
- JSON
{"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-live.md).
october pull SLUG#
Writes the tenant's applied schema to the schema file, overwriting it.
- Terminal
- october pull shop --schema pulled.edn
$ 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.
- Terminal
- october origins shop --add http://localhost:5173 --add https://App.Example.com
$ 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 any origin the server allows for every
tenant, are allowed 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.
- Terminal
- october demo shop on
$ 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-sign-in.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):
- Terminal
- october events shop
$ 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-roles.md).
- Terminal
- october roles teams grant org-admin Ada@Example.com
$ 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-mutations.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.
- Terminal
- october erase shop zoe@example.com
$ 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.
- Terminal
- october export shop
$ 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.
- Lang
- JSON
{"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.