diff --git a/docs/examples/sqlmesh_cli_crash_course.md b/docs/examples/sqlmesh_cli_crash_course.md index 008e5e4422..0bf5780f12 100644 --- a/docs/examples/sqlmesh_cli_crash_course.md +++ b/docs/examples/sqlmesh_cli_crash_course.md @@ -161,8 +161,12 @@ Note: If you run this without making any changes, SQLMesh will prompt you to mak ### Run Data Diff Against Prod +
+ Run data diff against prod. This is a good way to verify the changes are behaving as expected **after** applying them to `dev`. +To make this easier and faster, you can run data diff against all models in the environment impacted by plan changes applied using the `-m '*'` flag example below. No need to specify the model name! Read more about options [here](../guides/tablediff.md). + === "SQLMesh" ```bash @@ -173,6 +177,10 @@ Run data diff against prod. This is a good way to verify the changes are behavin sqlmesh table_diff : --show-sample ``` + ```bash + sqlmesh table_diff prod:dev -m '*' --show-sample + ``` + === "Tobiko Cloud" ```bash @@ -183,6 +191,10 @@ Run data diff against prod. This is a good way to verify the changes are behavin tcloud sqlmesh table_diff : --show-sample ``` + ```bash + tcloud sqlmesh table_diff prod:dev -m '*' --show-sample + ``` + ??? "Example Output" I compare the `prod` and `dev` environments for `sqlmesh_example.full_model`.