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. Connection settings come from the CLI configuration or explicit database flags.

kagent db migrate [command]

Subcommands:

Flags:

  • --db-role string - Stable PostgreSQL role to assume after authentication
  • --db-url string - PostgreSQL connection URL
  • --db-url-file string - File containing the 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
  • --config string - Configuration file (default: user config directory/kagent/config.yaml)
  • --log-level string - Log level: debug, info, warn, error (default “info”)
  • --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”)