Skip to content

ttd db

Database utilities: location, backups, health checks, and demo data. See Data & backups.

ttd db COMMAND

Database utilities.

Commands:

  • backup: Copy the database to a timestamped backup.
  • doctor: Sanity-check the database and print summary counts.
  • migrate: Create/upgrade the schema (also happens automatically on first use).
  • path: Show the database file location.
  • seed-demo: Populate demo clients, projects, and ~3 months of entries (for trying the TUI).

db path

ttd db path

Show the database file location.

db backup

ttd db backup [ARGS]

Copy the database to a timestamped backup.

Parameters:

  • DEST, --dest: Destination file or directory

db migrate

ttd db migrate

Create/upgrade the schema (also happens automatically on first use).

db doctor

ttd db doctor

Sanity-check the database and print summary counts.

db seed-demo

ttd db seed-demo [OPTIONS]

Populate demo clients, projects, and ~3 months of entries (for trying the TUI).

Parameters:

  • --yes, --no-yes: Skip confirmation [default: False]
  • --reset, --no-reset: Delete the existing database first [default: False]