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.
Usage
arctl db migrate [command]Available Commands
| Command | Description |
|---|---|
| down | Roll back the N most-recent applied migrations for the selected source |
| force | Mark version V as applied without running its SQL |
| status | Show how many migrations are applied vs pending across all sources |
| up | Apply all pending migrations across every registered source |
| version | Print the highest applied migration version |
Command-specific flags
--db-url string: PostgreSQL connection URL (defaults to value of AGENT_REGISTRY_DATABASE_URL env var).
--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.Global flags
-h, --help: Display help information for the command.
-n, --namespace string: Registry namespace to operate in (defaults to value of ARCTL_NAMESPACE env var, else "default").