init¶
kedro_dagster.cli.commands.init(env, force, silent)
¶
Scaffold or refresh Dagster integration files for the current Kedro project.
Creates or updates the Dagster configuration and entry points so the project
can be run from Dagster. Existing files are preserved unless --force is used.
The Python package name is inferred from the Kedro project metadata.
Created/updated templates:
* conf/<env>/dagster.yml: Dagster run parametrization for Kedro-Dagster.
* src/<python_package>/definitions.py: Dagster Definitions entry-point.
* dg.toml: Dagster dg CLI configuration (Dagster >= 1.10.6 only).
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
env
|
str
|
Kedro environment under |
required |
force
|
bool
|
Overwrite existing files without prompting. Defaults to |
required |
silent
|
bool
|
Suppress success messages for a quieter output. Defaults to |
required |
Examples¶
Basic initialization in the base config environment:
Force overwrite existing integration files:
Run silently (no success messages):