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
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:
kagent db migrate down- Roll back the latest N migrationskagent db migrate goto- Move one source to version Vkagent db migrate status- Show migration statuskagent db migrate up- Apply all pending migrationskagent db migrate version- Show the applied migration version
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”)