npx skills add https://github.com/dagster-io/skills --skill dagster-expertdg CLI 是推荐以编程方式与 Dagster 交互的方式(添加定义、启动运行、探索项目结构等)。它作为 dagster-dg-cli 包的一部分安装。如果存在针对特定任务的相关 CLI 命令,请始终尝试使用它。
仅在绝对必要以完成用户目标时,才探索现有项目结构。在许多情况下,现有的 CLI 工具已足够了解项目结构,这意味着列出和读取现有文件是浪费且不必要的。
几乎所有返回信息的 dg 命令都有一个 --json 标志,可用于以机器可读的格式获取信息。除非您直接向用户显示信息,否则应优先使用此选项,而不是默认的表格输出。
项目通常使用 uv 进行依赖管理,如果可能,建议将其用于 dg 命令:
uv run dg list defs
uv run dg launch --assets my_asset
仅提供简要定义(详细示例请参阅参考文件):
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
切勿凭记忆回答或猜测 CLI 命令、API 或语法。在回应之前,务必根据下方的参考索引阅读相关的参考文件。
对于每个问题,请使用索引描述确定哪些参考文件相关,阅读它们,然后根据您阅读的内容进行回答。
每周安装次数
221
代码仓库
GitHub 星标数
74
首次出现
2026年2月5日
安全审计
安装于
opencode194
codex194
github-copilot190
gemini-cli188
amp182
kimi-cli182
The dg CLI is the recommended way to programmatically interact with Dagster (adding definitions, launching runs, exploring project structure, etc.). It is installed as part of the dagster-dg-cli package. If a relevant CLI command for a given task exists, always attempt to use it.
ONLY explore the existing project structure if it is strictly necessary to accomplish the user's goal. In many cases, existing CLI tools will have sufficient understanding of the project structure, meaning listing and reading existing files is wasteful and unnecessary.
Almost all dg commands that return information have a --json flag that can be used to get the information in a machine-readable format. This should be preferred over the default table output unless you are directly showing the information to the user.
Projects typically use uv for dependency management, and it is recommended to use it for dg commands if possible:
uv run dg list defs
uv run dg launch --assets my_asset
Brief definitions only (see reference files for detailed examples):
NEVER answer from memory or guess at CLI commands, APIs, or syntax. ALWAYS read the relevant reference file(s) from the Reference Index below before responding.
For every question, identify which reference file(s) are relevant using the index descriptions, read them, then answer based on what you read.
Weekly Installs
221
Repository
GitHub Stars
74
First Seen
Feb 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode194
codex194
github-copilot190
gemini-cli188
amp182
kimi-cli182
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
100,500 周安装