Prerequisites:
- A
clisma.hclconfig file in the current directory, or pass--config
Commands
run
Apply pending migrations.status
Show applied and pending migrations.create
Create a new migration file.--name, the CLI will prompt you.
Migration filenames use the YYYYMMDDhhmmss_<name>.sql format.
checksum
Print the SHA-256 checksum for a migration file.Flags
-
--env <name> — environment from config file.Example:--env production -
--config <path> — path to config file.Example:--config ./clisma.hcl -
--var <key=value> — set variable value (repeatable).Example:--var ttl_days=30 --var replication_factor=3 -
--env-file <path> — load env vars from file.Example:--env-file .env