Writing Your First dbt Package
Nov 11, 2022

Summary
This post details how to create and publish dbt packages, providing a comprehensive guide with working code examples and an open-source repository. It covers defining package types (internal vs. external), when to write a package, basic concepts like installation and namespacing, creating a dbt package project, defining raw data using variables, considering compatibility issues with cross-database macros, using variables to control model behavior, local testing strategies, and the process of publishing a package to GitHub and dbt hub.