Skip to content

gald3r db

All CLI commands

Keep your local task/bug database in sync with the .gald3r/ files.

gald3r db [flags]

gald3r db backfill

Import files into a legacy SQLite board. After migration, use gald3r db rebuild --apply to refresh generated files.

gald3r db backfill [flags]

Command flags include --json, --prune, --strict.

gald3r db backfill-uuids

Preview missing legacy task/bug UUIDs; --apply persists recoverable identities.

gald3r db backfill-uuids [flags]

Command flags include --apply, --json.

gald3r db backup

Write a verified full backup (pg_dump custom format) of the local PostgreSQL database gald3r.

gald3r db backup [--keep N] [flags]

Command flags include --json, --keep.

gald3r db backups

List the backups of the local PostgreSQL database gald3r, newest first.

gald3r db backups [--all] [flags]

Command flags include --all, --json.

gald3r db filing-policy

Show or change a project's filing policy (filing_gate, backlog_freeze, fit_out) in the local PostgreSQL database.

gald3r db filing-policy [flags]

gald3r db filing-policy set

Change one filing policy value (on / off for a switch, maintainer / standard for fit_out, unset to clear).

gald3r db filing-policy set <filing_gate|backlog_freeze|fit_out> <value|unset> --project <uuid> --actor <uuid> [--reason <text>] [flags]

Command flags include --actor, --project, --reason.

gald3r db filing-policy show

Print the project's filing policy, the effective switches and every change.

gald3r db filing-policy show --project <uuid> --actor <uuid> [flags]

Command flags include --actor, --project.

gald3r db import-board

Import a project's sqlite board (.gald3r/gald3r.db) into the local PostgreSQL database.

gald3r db import-board [--source <project dir or .gald3r dir>] [--dry-run] [--wipe-project] [--owner-account <uuid>] [--prefer-file-status] [--rekey] [--yes] [--report <file>] [flags]

Command flags include --dry-run, --other-project, --owner-account, --prefer-file-status, --rekey, --report, --source, --wipe-project, --yes.

gald3r db import-foreign

Import a project from another task system (a gald3r import manifest) into PostgreSQL; list and close its gaps.

gald3r db import-foreign <manifest> [--validate | --dry-run | --yes] | --gaps | --close-gap <item> --code <gap> [flags]

Command flags include --close-gap, --code, --dry-run, --gaps, --json, --note, --validate, --yes.

gald3r db import-markdown-history

Import task/bug Status History rows that exist only in the markdown into status_history (dry run unless --apply)

gald3r db import-markdown-history [flags]

Command flags include --apply, --json.

gald3r db move-project-account

Move a project of the local PostgreSQL database to another account (every row, one transaction).

gald3r db move-project-account --project <uuid> --to-account <uuid> --actor <uuid> [--yes] [flags]

Command flags include --actor, --project, --to-account, --yes.

gald3r db port

Show the port of gald3r's database, or move it to another port and start it there.

gald3r db port [<number>] [flags]

gald3r db query

Inspect the legacy SQLite board. On PostgreSQL use the board commands for the records you need.

gald3r db query [sql] [flags]

Command flags include --json, --limit, --param, --root, --schema, --stdin, --timeout.

gald3r db rebuild

Preview regenerating project board files and indexes from the database. Pass --apply to write them.

gald3r db rebuild [flags]

Command flags include --apply, --json, --skip-index.

gald3r db regen-drain

Preview pending DB-first projection debt; --apply repairs files.

gald3r db regen-drain [flags]

Command flags include --apply, --json.

gald3r db regenerate-index

Regenerate a project index from board records.

gald3r db regenerate-index [flags]

Command flags include --apply, --json, --kind.

Link member boards' repository ids to their controller's repositories (after a workspace is imported).

gald3r db relink-workspace-repos --project <uuid> --actor <uuid> [--yes] [flags]

Command flags include --actor, --project, --yes.

gald3r db render-history

Write complete status_history and op_log snapshots to .gald3r/history/

gald3r db render-history [flags]

Command flags include --json.

gald3r db reset

DEVELOPMENT ONLY: drop and recreate database gald3r, then apply every migration again.

gald3r db reset --yes-destroy-all-data [--including-data] [flags]

Command flags include --including-data, --yes-destroy-all-data.

gald3r db restore

Restore a legacy board. Use gald3r db restore-backup for a PostgreSQL backup.

gald3r db restore [flags]

Command flags include --apply, --at-commit, --at-time, --json.

gald3r db restore-backup

Restore a backup into a NEW database (default), or replace database gald3r with it (--replace).

gald3r db restore-backup <file> [--into NAME] [--replace [--yes]] [flags]

Command flags include --into, --replace, --yes.

gald3r db restore-snapshot

Restore a legacy SQLite snapshot. Use gald3r db restore-backup for PostgreSQL.

gald3r db restore-snapshot [snapshot-path] [flags]

Command flags include --apply, --latest.

gald3r db snapshots

List legacy SQLite snapshots. Use gald3r db backups for PostgreSQL.

gald3r db snapshots [flags]

Command flags include --json.

gald3r db start

Start the local PostgreSQL server (initialise it on first use) and apply schema migrations.

gald3r db start [flags]

gald3r db status

Show whether the local PostgreSQL server is running, its version, port, data directory, migrations, function files and tables.

gald3r db status [flags]

Command flags include --json.

gald3r db stop

Stop the local PostgreSQL server.

gald3r db stop [flags]

gald3r db switch

Switch this machine's gald3r programs to the PostgreSQL board store (or back with --back). Without --yes it only shows what it would do.

gald3r db switch [--yes] | switch --back [--yes] [flags]

Command flags include --back, --yes.

gald3r db switch-state

Print which board store this machine uses (sqlite or postgresql) and the imported projects. Read-only.

gald3r db switch-state [flags]

gald3r db sync-status

Show local versus world_tree task/bug counts per board (read-only).

gald3r db sync-status [flags]

Command flags include --json, --server-url, --verify.

gald3r db upgrade-project

Upgrade a project made by an older gald3r into the local PostgreSQL database (works on a copy).

gald3r db upgrade-project [--source <project dir or .gald3r dir>] [--dry-run] [--stop-processes] [--owner-account <uuid>] [--rekey] [--yes] [--report <file>] [flags]

Command flags include --dry-run, --keep-copy, --leave-unreadable-files, --other-project, --owner-account, --prefer-file-status, --rekey, --report, --settle-sqlite-changes, --source, --stop-processes, --stop-wait, --wipe-project, --work-dir, --yes.

gald3r db verify

Compare the board with its generated files.

gald3r db verify [flags]

Command flags include --full-tree, --json, --schema.

gald3r db world-tree-sync

Bring this project's task/bug board down from world_tree, then send this machine's changes up.

gald3r db world-tree-sync [flags]

Command flags include --backfill, --json, --pull-only, --push-only, --server-url.

gald3r db writes-since-import

Count the rows of this project written in PostgreSQL since its import (what going back to sqlite would lose). Read-only.

gald3r db writes-since-import [flags]

Command flags include --json.