EchoNextv1.5
CLI
Stable v1.5.0

Database commands

Create, inspect, apply, and review Atlas migrations from the EchoNext CLI.

Database commands

EchoNext's database commands wrap common Atlas workflows.

echonext db init
echonext db migrate:status
echonext db migrate:diff add_users
echonext db migrate --dry-run
echonext db migrate

Review generated SQL before applying it. Use environment-specific database URLs outside source control and back up production data before changes that can remove or transform information.

Additional commands create empty migrations, lint migration directories, inspect schemas, and roll back where a safe down migration exists. See Database contrib for repository and transaction helpers.

On this page