Documentation Index
Fetch the complete documentation index at: https://docs.automagik.dev/llms.txt
Use this file to discover all available pages before exploring further.
Database Commands
Thegenie db command group manages the embedded PostgreSQL instance (pgserve) that backs Genie’s task store, agent registry, schedules, and more.
Genie requires pgserve >=1.1.10 (bumped 2026-04-20).
genie db status
Show pgserve health, port, data directory, and table counts.
genie db migrate
Run pending database migrations.
genie db query
Execute arbitrary SQL and print results.
genie db backup
Dump the database to a compressed snapshot file.
~/.genie/snapshot.sql.gz.
genie db restore
Restore the database from a backup snapshot.
| Option | Description |
|---|---|
--yes | Skip confirmation prompt |
~/.genie/snapshot.sql.gz.
genie db url
Print the PostgreSQL connection URL for direct access with external tools.
| Option | Description |
|---|---|
--quiet | Print only the URL with no extra formatting |
Danger zone
genie-wipe
Fresh-start local Genie state — wipes the embedded PostgreSQL data directory (and optionally worktrees, teams, state, logs, wishes, brainstorms, and/or user config) to emulate a new-user experience.
genie-wipe is a repo-local script, not a top-level genie subcommand. Invoke it with bun from a Genie checkout:
| Flag | Description |
|---|---|
| (none) | Dry-run (default). Prints the wipe manifest with sizes; no writes. |
--apply | Actually wipe. Requires typing the interlock phrase I UNDERSTAND FRESH INSTALL at the prompt. |
--full | Also wipe ~/.genie/{worktrees,teams,state,spawn-scripts,logs,wishes,brainstorms}. |
--config | Also wipe ~/.genie/config.json, pgserve.port, serve.pid, and brain-version-check.json. |
--help, -h | Show the built-in help. |
- Always:
~/.genie/data/pgserve(full DB reset — migrations re-run on next connect). - With
--full:~/.genie/worktrees,teams,state,spawn-scripts,logs,wishes,brainstorms. - With
--config:~/.genie/config.json,pgserve.port,serve.pid,brain-version-check.json.
--config is passed): ~/.genie/config.json, tmux.conf, installer-owned scripts, shell history, and any repos outside ~/.genie/worktrees.
genie <verb> call (e.g. genie serve start) auto-starts a fresh pgserve and re-runs all migrations. If --full was used, genie team ls and genie task list will come up empty — you are effectively a new user.