tb build¶
Builds your project and checks that all the resources are valid.
Pass the --watch
flag to watch for changes and rebuild the project automatically. When in watch mode you can run SQL queries against the project and also run commands.
Use tb dev
as an alias for tb build --watch
.
Difference with tb deployment create¶
While similar, tb build
and tb deployment create
have different purposes:
tb build
command is a stateless command that checks that project datafiles are valid.tb deployment create --check
checks that you can successfully create the deployment.
For example, when updating a data project in a workspace, tb build
checks that the new version of your project is valid, while tb deployment create --check
verifies that you can successfully migrate from the old version to the new one.