Skip to content

Commit 829f7a6

Browse files
authored
feat: implement dbt commands (#25)
1 parent 1d4a4e3 commit 829f7a6

File tree

5 files changed

+676
-2
lines changed

5 files changed

+676
-2
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: "sup dbt"
3+
description: "dbt to Superset synchronization"
4+
---
5+
6+
🔄 dbt to Superset synchronization
7+
8+
## Key Features
9+
10+
- Model sync: dbt models → Superset datasets with schema & metrics
11+
- Database sync: dbt profiles → Superset database connections
12+
- Exposures: Superset charts/dashboards → dbt exposures
13+
- Selective sync: Use --select and --exclude for model filtering
14+
- Metadata preservation: Keep Superset customizations with --preserve-metadata
15+
16+
17+
## Supported Sources
18+
19+
- dbt Core: Local manifest.json from dbt compile/run
20+
- dbt Cloud: Remote manifest via API integration
21+
22+
23+
## Common Workflows
24+
25+
- Initial setup: Import database, sync all models
26+
- Development: Sync specific models during iteration
27+
- Documentation: Write exposures back to dbt project
28+
29+
## Usage
30+
31+
```bash
32+
sup dbt [COMMAND] [OPTIONS]
33+
```
34+
35+
## Subcommands
36+
37+
| Command | Description |
38+
|---------|-------------|
39+
| `sup dbt core` | Sync a dbt Core project to Superset |
40+
| `sup dbt cloud` | Sync a dbt Cloud project to Superset |
41+
| `sup dbt list-models` | List dbt models from a manifest file |
42+
43+
## Examples
44+
45+
import { Tabs, TabItem } from '@astrojs/starlight/components';
46+
47+
<Tabs>
48+
<TabItem label="Basic usage">
49+
```bash
50+
sup dbt
51+
```
52+
</TabItem>
53+
</Tabs>

docs-site/src/content/docs/commands/user.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ sup user [COMMAND] [OPTIONS]
1717
|---------|-------------|
1818
| `sup user list` | List all users in the current or specified workspace |
1919
| `sup user info` | Show detailed information about a user |
20-
| `sup user export` | Export users, roles, and permissions to files |
21-
| `sup user import` | Import users, roles, and permissions from files |
2220

2321
## Examples
2422

0 commit comments

Comments
 (0)