Quickstart from source
Tento obsah zatím není dostupný ve vašem jazyce.
The adminium CLI bundles the server, the dashboard build, and the meta
migrations.
Requirements
Section titled “Requirements”- Node.js 22 or newer (
node -v) and pnpm 10 (corepack enable). - A database you can reach, or a schema file. Neither is required to start — the wizard will ask.
1. Get the code
Section titled “1. Get the code”git clone https://github.com/MoSofi/Adminium.gitcd Adminiumpnpm installpnpm buildThe CLI entry point is apps/server/dist/cli/index.js. This page and the
CLI reference write adminium for brevity — set an alias:
alias adminium="node $PWD/apps/server/dist/cli/index.js"2. Set a secret
Section titled “2. Set a secret”ADMINIUM_SECRET is required. It derives the key that encrypts every stored
DSN and API key at rest, so Adminium refuses to start without it and prints a
fail-fast table telling you so.
export ADMINIUM_SECRET=$(openssl rand -hex 32)3. Run the wizard
Section titled “3. Run the wizard”adminiumRun with no command and Adminium starts the interactive setup wizard. It walks you through:
- Meta placement — where Adminium’s own
adminium_*tables live. Press Enter to accept the embedded SQLite store under your data directory; it will tell you it did. See Where to put the meta store. - Source — the engine (PostgreSQL, MySQL, or SQLite) and either a full DSN or host/port/user/password/database fields.
- Test — a live probe reporting latency, server version, and whether your role is read-only.
- Tables — which tables to include. Blank or
alltakes everything; otherwise a comma-separated list. - Intent — full admin, read-only analytics, CRUD, or support console. This shapes what gets generated.
Then it introspects, generates, and starts the server:
Adminium is running at http://0.0.0.0:4600Open it, create the first super admin, and you have an admin panel.
4. Subsequent starts
Section titled “4. Subsequent starts”Once configured, skip the wizard:
adminium startstart applies any pending meta migrations, then boots. Useful flags:
adminium start --port 8080 --host 127.0.0.1adminium start --log-level debugFull flag list: CLI reference.
Non-interactive install
Section titled “Non-interactive install”For a scripted or containerized install, set the environment instead of answering questions:
export ADMINIUM_SECRET=$(openssl rand -hex 32)export ADMINIUM_META_URL='postgres://adminium:secret@meta-db:5432/adminium_meta'export ADMINIUM_DATA_DIR=/var/lib/adminiumexport PORT=4600
adminium migrate # apply meta migrations (idempotent)adminium startConnections are then added through the Studio UI or the REST API rather than the wizard. Every environment variable: Environment variables.
Where things are stored
Section titled “Where things are stored”| What | Where | Override |
|---|---|---|
| Adminium’s own tables | The meta store | ADMINIUM_META_URL, or --meta-url |
| Files, exports, the embedded SQLite meta store | ./data |
ADMINIUM_DATA_DIR, or --data-dir |
| The encrypted meta DSN, when you ask the wizard to remember it | <data-dir>/adminium.json |
— |
The meta DSN cannot live inside the meta store it points at, so when the wizard
offers to remember your choice it writes it to adminium.json,
AES-256-GCM-encrypted under ADMINIUM_SECRET.
- Connect your first database
- Run with Docker instead
- Self-hosting overview — before you put this in front of a team