Skip to content

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 goto

Page as Markdown

Move the selected source’s schema to version V

Move the selected source’s schema to version V (forward or backward). V=0 is the special “empty schema” target: every applied migration in the source is rolled back.

Refuses to run while the source’s tracking table is dirty; clear it with ‘force’ first.

kagent db migrate goto V [flags]

Flags:

  • -h, --help - help for goto

Global Flags:

  • --db-url string - PostgreSQL connection URL (defaults to value of POSTGRES_DATABASE_URL env var)
  • --kagent-grpc-ca-file string - CA certificate file for KAgent gRPC
  • --kagent-grpc-server-name string - TLS server name for KAgent gRPC
  • --kagent-grpc-tls - Use TLS for KAgent gRPC
  • --kagent-grpc-url string - KAgent gRPC target (default “localhost:8084”)
  • --source string - Migration source name for per-source ops (down/goto/force/version); inferred when only one source is registered. Not applicable to up or status — those aggregate across every registered source.