Aller au contenu

Quickstart from source

Ce contenu n’est pas encore disponible dans votre langue.

The adminium CLI bundles the server, the dashboard build, and the meta migrations.

  • 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.
Terminal window
git clone https://github.com/MoSofi/Adminium.git
cd Adminium
pnpm install
pnpm build

The CLI entry point is apps/server/dist/cli/index.js. This page and the CLI reference write adminium for brevity — set an alias:

Terminal window
alias adminium="node $PWD/apps/server/dist/cli/index.js"

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.

Terminal window
export ADMINIUM_SECRET=$(openssl rand -hex 32)
Terminal window
adminium

Run with no command and Adminium starts the interactive setup wizard. It walks you through:

  1. 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.
  2. Source — the engine (PostgreSQL, MySQL, or SQLite) and either a full DSN or host/port/user/password/database fields.
  3. Test — a live probe reporting latency, server version, and whether your role is read-only.
  4. Tables — which tables to include. Blank or all takes everything; otherwise a comma-separated list.
  5. 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:4600

Open it, create the first super admin, and you have an admin panel.

Once configured, skip the wizard:

Terminal window
adminium start

start applies any pending meta migrations, then boots. Useful flags:

Terminal window
adminium start --port 8080 --host 127.0.0.1
adminium start --log-level debug

Full flag list: CLI reference.

For a scripted or containerized install, set the environment instead of answering questions:

Terminal window
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/adminium
export PORT=4600
adminium migrate # apply meta migrations (idempotent)
adminium start

Connections are then added through the Studio UI or the REST API rather than the wizard. Every environment variable: Environment variables.

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.