dg
dg and Dagster Components are under active development. You may encounter feature gaps, and the APIs may change. To report issues or give feedback, please join the #dg-components channel in the Dagster Community Slack.
dg is a new command line interface that provides a streamlined Dagster development experience. It is a drop-in replacement for the Dagster CLI that can be used in existing projects or in new Dagster projects created with the create-dagster CLI. Once a project is set up to use dg, you can list, check, and scaffold Dagster definitions and components with ease.
Installing the create-dagster CLI
New projects can be created using the create-dagster CLI. You can install create-dagster from a package manager or via curl with our standalone installer script.
- uv
- Homebrew
- curl
First, install the Python package manager uv if you don't have it:
- Mac
- Windows
- Linux
brew install uv
powershell -ExecutionPolicy ByPass -c 'irm https://astral.sh/uv/install.ps1 | iex'
curl -LsSf https://astral.sh/uv/install.sh | sh
For more detailed uv installation instructions, see the uv
docs.
We recommend running create-dagster using uvx:
uvx -U create-dagster project my-project
This runs create-dagster in a temporary, isolated Python environment.
While it is also possible to create a virtual environment and install create-dagster into it with uv, using uvx better supports multiple Python projects and doesn't require an explicit install step.
create-dagster is available in a Homebrew tap:
brew install dagster-io/tap/create-dagster
Use curl to download a standalone installation script and execute it with sh:
curl -LsSf https://dg.dagster.io/create-dagster/install.sh | sh
Request a specific version by including it in the URL:
curl -LsSf https://dg.dagster.io/create-dagster/1.10.18/install.sh | sh
create-dagster is available starting at version 1.10.18.
Once you have create-dagster installed (or available to run via uvx), see the creating a new project guide to use it to create dg projects.