Skip to content
This documentation covers the kagent 1.0 alpha. For the latest 0.x release, see the 0.x docs.

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

kagent db migrate

Page as Markdown

Apply, roll back, and inspect database migrations.

Apply, roll back, and inspect database migrations. The command reads KAGENT_POSTGRES_DATABASE_URL and KAGENT_POSTGRES_DATABASE_ROLE when their flags are empty.

kagent db migrate [command]

Subcommands:

Flags:

  • --db-role string - Stable PostgreSQL role to assume after authentication
  • --db-url string - PostgreSQL connection URL
  • -h, --help - help for migrate
  • --source string - Migration source for down, goto, or version

Global Flags:

  • --ca-file string - CA certificate file for KAgent endpoints
  • --server-name string - TLS server name for KAgent endpoints
  • --user-id string - Caller identity used to select the server-side data partition (default “admin@kagent.dev”)