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. The command reads POSTGRES_DATABASE_URL when –db-url is empty.
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-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”)