GoodMem
ReferenceCLI

System Migrate

System Migrate CLI command reference

goodmem system migrate

Run database schema migration

Synopsis

Run database schema migration by sending the schema to the server, which will use Liquibase to generate a diff and apply DDL changes to the database. This ensures the database schema is updated to match the provided schema file.

goodmem system migrate [flags]

Examples

  # Run migration with schema file
  goodmem system migrate --schema schema.sql

  # Preview changes without applying them
  goodmem system migrate --schema schema.sql --dry-run

Options

      --dry-run         Show planned changes without applying them
  -h, --help            help for migrate
  -s, --schema string   Path to schema file for migration

Options inherited from parent commands

      --api-key string   API key for authentication (can also be set via GOODMEM_API_KEY environment variable)
      --server string    GoodMem server address (gRPC API) (default "https://localhost:9090")

SEE ALSO