Skip to content

Commit

Permalink
Update metricflow-commands.md
Browse files Browse the repository at this point in the history
add dbt list saved queries command and  --show-exports flag per recent eng update: https://linear.app/dbt-labs/issue/SL-1655/cloud-cli-list-exports-in-dbt-sl-list-saved-queries#comment-aae9ef8f
  • Loading branch information
mirnawong1 authored Feb 8, 2024
1 parent 2b6e531 commit 40c70b0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions website/docs/docs/build/metricflow-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ You can use the `dbt sl` prefix before the command name to execute them in the d
- [`list dimensions`](#list) — Lists unique dimensions for metrics.
- [`list dimension-values`](#list-dimension-values) — List dimensions with metrics.
- [`list entities`](#list-entities) — Lists all unique entities.
- [`list saved queries`)(#list-saved-queries) — Lists available saved queries. Use the `--show-exports` flag to display each export listed under a saved query.
- [`query`](#query) — Query metrics, saved queries, and dimensions you want to see in the command line interface. Refer to [query examples](#query-examples) to help you get started.

<!--below commands aren't supported in dbt cloud yet
Expand Down Expand Up @@ -174,6 +175,34 @@ Options:
--help Show this message and exit.
```

### List saved queries

This command lists all available saved queries:

```bash
dbt sl list saved-queries
```

You can also add the `--show-exports` flag (or option) to show each export listed under a saved query:

```bash
dbt sl list saved-queries --show-exports
```

**Output**

```bash
[*main}[~/git/jaffle-sl-template]$ ../dbti/dbt sl list saved-queries --show-exports
WARNING: version 0.35.23 of the dbt Cloud CLI is now available. During beta, old versions are not supported.

The list of available saved queries:
- new_customer_orders
exports:
- Export(name_customer_orders, exportAS=TABLE)
- Export(name_customer_orderss, exportAS=VIEW)
- Export(name_customer_ordersss, alias=test, schemas=lfg, exportAS=TABLE)
```
### Validate-configs
The following command performs validations against the defined semantic model configurations.
Expand Down

0 comments on commit 40c70b0

Please sign in to comment.