Dagster CLI (dgc)
A command-line interface for Dagster+, inspired by GitHub's gh CLI.
Installation
# Install with uv (recommended - adds 'dgc' to PATH)
uv tool install dagster-cli
# Or install with pip
pip install dagster-cli
Quick Start
# Authenticate with your Dagster+ deployment
dgc auth login
# Check health status of all assets (find problems)
dgc asset health
# View details about a specific asset
dgc asset view analytics/daily_revenue
# View logs for a failed run (see stack traces)
dgc run logs abc123 --stderr
# List recent runs to find failures
dgc run list --limit 10
Note: All commands show practical examples when invoked without a subcommand; pass --help for detailed options.
MCP Server for AI Assistants
Run the MCP server without installation using uvx:
# Start MCP server for Claude Code integration
uvx --from dagster-cli dgc mcp start
Configure Claude Code by adding to your MCP settings:
{
"mcpServers": {
"dagster-cli": {
"command": "uvx",
"args": ["--from", "dagster-cli", "dgc", "mcp", "start"]
}
}
}
This enables AI assistants to:
- Check asset health and identify failures
- Investigate failed runs and view error logs
- Monitor job execution and debug issues
- Access stderr/stdout logs for troubleshooting
Working with Branch Deployments
# List all deployments including branches
dgc deployment list
# Get filtered logs from a branch deployment (e.g., for PR review)
dgc run list --deployment feat-new-feature --status FAILURE --limit 5
dgc run logs abc123 --deployment feat-new-feature --stderr
# Filter runs by job name on a specific deployment
dgc run list --deployment staging --job daily_etl --limit 10
Features
- Secure Authentication - Store credentials safely with profile support
- Job Management - List, view, and run Dagster jobs from the terminal
- Run Monitoring - Track run status, view logs, and analyze failures
- Asset Management - List, materialize, and monitor asset health
- Repository Operations - List and reload code locations
- Profile Support - Manage multiple Dagster+ deployments
- Branch Deployment Support - Access branch deployments for testing and debugging
- Deployment Discovery - List and test available deployments
- MCP Integration - AI assistant integration for monitoring and debugging
Configuration
Authentication
dgc auth login # Set up credentials
dgc auth status # View current profile
dgc auth switch staging # Switch between profiles
Multiple Profiles
dgc auth login --profile staging # Create new profile
dgc job list --profile production # Use specific profile
Environment Variables
DAGSTER_CLOUD_TOKEN- User tokenDAGSTER_CLOUD_URL- Deployment URLDGC_PROFILE- Default profileDAGSTER_CLOUD_DEPLOYMENT- Default deployment
Credentials stored in ~/.config/dagster-cli/config.json
Development
# Run tests
uv run pytest
# Format and lint
make fix
# Build package
uv build
Metadata
Release files for dagster-cli 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dagster_cli-0.9.0.tar.gz | 35.8 kB | Without provenance | Details for dagster_cli-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dagster_cli-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for dagster_cli-0.9.0-py3-none-any.whl |
Total release size: 84.4 kB
Release files / dagster_cli-0.9.0.tar.gz
| Download URL | dagster_cli-0.9.0.tar.gz |
|---|---|
| Size | 35.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
556d6c07913affa1a81cc258e90613f221be17c9a8101f5f4dcedf512e7cd529
|
|
BLAKE2b-256 checksum How to use checksums |
de183f321102e6f5f1ed1589a68100bee8dfa8a90cd942a9f088eef1da429931
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dagster_cli-0.9.0-py3-none-any.whl
| Download URL | dagster_cli-0.9.0-py3-none-any.whl |
|---|---|
| Size | 48.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc931f4266f0928cd65cd518423c13152e791b17aec7232b93f3bdbd3250b935
|
|
BLAKE2b-256 checksum How to use checksums |
4ff6a0cc984b25632e6f1b6d7e61eadd6c5b60a3e232a75d607be49beab0b0bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for dagster-cli 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.