For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
arctl db migrate
Apply, roll back, and inspect database migrations.
Apply, roll back, and inspect database migrations independently
of server startup. Reads AGENT_REGISTRY_DATABASE_URL from the environment when
--db-url is omitted.
Command-specific flags
--db-url string PostgreSQL connection URL (defaults to value of AGENT_REGISTRY_DATABASE_URL env var)Global flags
-h, --help Display help information for the command.
--registry-token string Registry bearer token (defaults to value of ARCTL_API_TOKEN env var)
--registry-url string Registry URL (overrides ARCTL_API_BASE_URL env var; defaults to http://localhost:12121)See also
- arctl db - Database operations (migrations, inspection)
- arctl db migrate down - Roll back the N most-recent applied migrations for the selected source
- arctl db migrate force - Mark version V as applied without running its SQL
- arctl db migrate goto - Move the selected source’s schema to version V
- arctl db migrate status - Show how many migrations are applied vs pending across all sources
- arctl db migrate up - Apply all pending migrations across every registered source
- arctl db migrate version - Print the highest applied migration version