Docs
Build command examples

Build command examples

Explore examples of using y42 build for common scenarios.

Using the plus (+) operator

Select a specific model

Select model_1 only.

CLI

y42 build -s model_1

Select all downstream assets

Select model_1 and all of its downstream dependencies.

CLI

y42 build -s model_1+

Select all upstream assets

Select model_2 and all of its upstream dependencies.

CLI

y42 build -s +model_2

Select all upstream and downstream assets

Select model_1 and all of its upstream and downstream dependencies.

CLI

y42 build -s +model_1+

Combining flags and operators

Select the intersection of two options

Select assets that are upstream from model_3 (inclusive) but also downstream from model_1 (inclusive).

CLI

y42 build -s +model_3,model_1+

Select and exclude assets simultaneously

Select all upstream and downstream assets from model_1 but exclude a specified source, src_shopify

CLI

y42 build -s +model_1+ --exclude source:src_shopify

Other operators

Select assets that are N edges away

Select src_shopify and assets that are up two 2 edges away.

CLI

y42 build -s source:src_shopify+2

Select an asset's children and all the parents of its children

Select src_hubspot and all of its children, plus all the upstream assets of its children

CLI

y42 build -s @source:src_hubspot+