{"id":3443,"library":"dagster-dg-core","title":"Dagster DG Core","description":"dagster-dg-core is a foundational library within the Dagster ecosystem, primarily powering the `dg` command-line interface (CLI). It enables local development, project scaffolding, deployment to environments like Dagster Cloud, and programmatic interaction with Dagster entities such as assets, runs, and jobs via CLI commands. As of version 1.13.0, it supports advanced features including AI-assisted development tools and enhanced asset management capabilities. Dagster maintains a frequent release cadence, often issuing weekly or bi-weekly patches and regular minor version updates across its libraries.","status":"active","version":"1.13.0","language":"en","source_language":"en","source_url":"https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-dg-core","tags":["dagster","data orchestration","etl","cli","data pipeline","orchestrator"],"install":[{"cmd":"pip install dagster dagster-dg-core","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"Core Dagster framework, required for all functionality. Must be the exact same version as dagster-dg-core.","package":"dagster","optional":false},{"reason":"Used for building the command-line interface.","package":"click","optional":false},{"reason":"For making HTTP requests, often to Dagster Cloud APIs.","package":"requests","optional":false},{"reason":"Standard Python packaging utility.","package":"setuptools","optional":false},{"reason":"For pretty-printing tabular data in the CLI output.","package":"tabulate","optional":false},{"reason":"For parsing and generating YAML configuration files.","package":"PyYAML","optional":false}],"imports":[{"note":"Direct Python imports from `dagster_dg_core` for defining user-facing Dagster assets or ops are generally uncommon. This library primarily underpins the `dg` CLI tool. Most interaction is through command-line commands, rather than programmatic Python imports for data pipeline development.","symbol":"cli","correct":"from dagster_dg_core import cli"}],"quickstart":{"code":"pip install dagster dagster-dg-core\nmkdir my-dagster-project\ncd my-dagster-project\ndg new --name my_first_project --preset minimal\n\n# Navigate into the newly created project directory\ncd my_first_project\n\n# Start the Dagster development server and UI\ndg dev","lang":"bash","description":"This quickstart demonstrates how to initialize a new Dagster project and launch the development server using the `dg` CLI, which is powered by `dagster-dg-core`. This allows you to explore the Dagster UI and begin defining assets."},"warnings":[{"fix":"Ensure `pip install` commands specify consistent versions across all `dagster-*` packages, e.g., `pip install dagster==1.x.y dagster-dg-core==1.x.y`.","message":"All Dagster ecosystem packages (e.g., `dagster`, `dagster-webserver`, `dagster-dg-core`, and other `dagster-*` libraries) should always be installed at the exact same version number to ensure compatibility and avoid runtime errors. Mismatched versions are a very common source of issues.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Explicitly install `psycopg2-binary` in your environment: `pip install psycopg2-binary`.","message":"As of Dagster core v1.12.18 (and corresponding `dagster-dg-core` versions), the `psycopg2-binary` package is no longer a transitive dependency of `dagster-postgres`. If your project relies on `dagster-postgres` (or integrations that use it) and implicitly used `psycopg2-binary`, you must now explicitly add `pip install psycopg2-binary` to your project dependencies.","severity":"breaking","affected_versions":">= 1.12.18"},{"fix":"If encountering `typer` version conflicts, ensure you are on the latest `dagster-dg-core` version, which may have relaxed the pin, or manage `typer` explicitly if feasible in your dependency resolution strategy.","message":"Older versions of `dagster-dg-core` (e.g., v1.12.3) might have an over-conservative dependency pin on `typer < 0.17`. This can lead to conflicts with other Python packages that require a newer `typer` version (e.g., `>= 0.20.1`).","severity":"gotcha","affected_versions":"< 1.13.0 (specific patch versions might vary)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}