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
dbschema directory and applies those changes to your database in
real time. Starting it is as simple as running this command:
If a schema change cannot be applied, you will see an error in the
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
watch, read our intro to migrations.
If you want to apply a migration in the same manner as
without the long-running process, use
edgedb migrate --dev-mode. See
edgedb migration apply for more details.