# 045 API C5f3b477

> dg api / dg plus

- Skill: `tools-only/045-api-c5f3b477` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/045-api-c5f3b477`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/045-api-c5f3b477/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/tools-only/045-api-c5f3b477

---

# dg api / dg plus

API access and Dagster Plus authentication.

## dg api

Query and interact with Dagster deployments.

### dg api log get

Retrieve run logs.

```bash
dg api log get <run-id>
dg api log get <run-id> --json
dg api log get <run-id> --level ERROR
dg api log get <run-id> --limit 100
```

**Options:**

| Option            | Description                                   |
| ----------------- | --------------------------------------------- |
| `--json`          | Output as JSON                                |
| `--level <level>` | Filter: DEBUG, INFO, WARNING, ERROR, CRITICAL |
| `--limit <n>`     | Maximum entries to return                     |

---

## dg plus login

Authenticate with Dagster Plus.

```bash
dg plus login
```

After login, `dg list envs` shows deployment scope status (Dev/Branch/Full).

---

## See Also

- [launch.md](./launch.md) - Launch assets (returns run ID for log retrieval)
- [list.md](./list.md) - `dg list envs` shows Plus deployment status after login

