Asset-centric data orchestration · @asset · Definitions · dg CLI & Components (GA) · verified against Dagster 1.13.x (2026)

Dagster cheat sheet

Dagster orchestrates data pipelines around assets — the tables, files, and models you actually produce — rather than opaque tasks. Declare each asset as a Python function with @asset; Dagster infers the dependency graph from the arguments, giving lineage, materialization history, data-quality asset checks, and a rich UI. Wire everything into Definitions, develop with the now-GA dg CLI and reusable Components, and schedule with schedules, sensors, or declarative automation (now including freshness). This edition adds the dg CLI & Components section, partitioned asset checks, asset options/virtual assets, and deeper automation. Targets Dagster 1.13.x, Python 3.9+.

assets resources & IO automation & partitions dg CLI & Components ops, dev & ecosystem gotcha most common

Verified 2026-09-08 against the official docs at docs.dagster.io (Dagster 1.13.21 / libraries 0.29.21; Python 3.9+). Import root is import dagster as dg. Assets are the primary abstraction; ops/jobs are the lower-level layer. The dg CLI + Components are now GA and the recommended default for new projects. Companion to Airflow 3 & Prefect in this collection.

Outline

Declare @assets (deps inferred from args), attach resources & IO managers, add checks, collect into Definitions, scaffold with the dg CLI/Components, then schedule/observe in the UI.

Assets

  1. 1Install & first asset
  2. 2Dependencies & graph
  3. 3Metadata & asset checks
  4. 4Asset options

Resources & IO

  1. 5Resources & config
  2. 6IO managers

Automation

  1. 7Definitions
  2. 8Schedules & sensors
  3. 9Declarative automation
  4. 10Partitions & backfills

dg CLI & Components

  1. 11The dg CLI
  2. 12Components

Ops, dev & ecosystem

  1. 13Ops & jobs
  2. 14Test & materialize
  3. 15Integrations
  4. 16vs Airflow / Prefect

Assets

Declare what you produce; Dagster figures out the graph and tracks lineage.

1Install & first asset@asset
2Dependencies & graphinferred lineage
3Metadata & asset checksquality
4Asset optionsownership · versioning · virtual

Resources & IO

Inject external systems; let IO managers handle read/write & storage.

5Resources & configdependency injection
6IO managersread/write for you

Automation & Partitions

Collect definitions, then run assets on a schedule, on events, declaratively, or by partition.

7Definitionsthe entry point
8Schedules & sensorswhen to run
9Declarative automationconditions & freshness
10Partitions & backfillsslice by time/key

dg CLI & Components

The GA developer workflow: scaffold, inspect, and assemble pipelines from reusable building blocks.

11The dg CLIGA workflow
12Componentsreusable building blocks

Ops, Dev & Ecosystem

The lower-level layer, testing, integrations, and where Dagster sits.

13Ops & jobsthe lower level
14Test & materializelocal runs
15Integrationsthe toolbox
16vs Airflow / Prefectchoosing

Worth memorizing

import dagster as dgassets are the primary abstraction
@dg.assetfunction = a produced table/file/model
deps via arg namegraph inferred; deps= for order-only
@dg.asset_check (partitions_def=)quality tests, now per-partition
owners / code_version / is_virtualcatalog, staleness, views (preview)
ConfigurableResource + EnvVarinjected, testable, secret-safe
dg.Definitions(...)entry point; defs/ auto-loads
AutomationCondition.eager()/on_cron()/freshness_*declarative
partitions_def + backfill_policyincremental; single-run backfills
create-dagster · dg scaffold/dev/check/launch/apiGA CLI
defs.yaml + component typeComponents: integrations in YAML
dagster-dbtdbt models become assets