Ask AI

edgedb watch

This CLI feature is compatible with EdgeDB server 3.0 and above.

Start a long-running process that watches for changes in schema files in your project’s dbschema directory and applies those changes to your database in real time. Starting it is as simple as running this command:

edgedb watch

If a schema change cannot be applied, you will see an error in the edgedb watch console. You will also receive the error when you try to run a query with any EdgeDB client binding.

To learn about our recommended development migration workflow using edgedb watch, read our intro to migrations.

If you want to apply a migration in the same manner as watch but without the long-running process, use edgedb migrate --dev-mode. See edgedb migration apply for more details.