From 311bf14683fd0acd81a5fe4f3f15eb7a0474ab3b Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:50:39 +0100 Subject: [PATCH] add new command (#5855) add info on new command (`dbt sl export-all`) which allows you to run exports for multiple saved queries. slack thread here: https://dbt-labs.slack.com/archives/C051TUB7S9W/p1721667623352519 --------- Co-authored-by: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> --- .../docs/docs/build/metricflow-commands.md | 29 ++++++++++++-- .../docs/use-dbt-semantic-layer/exports.md | 39 +++++++++++++++++-- 2 files changed, 61 insertions(+), 7 deletions(-) diff --git a/website/docs/docs/build/metricflow-commands.md b/website/docs/docs/build/metricflow-commands.md index 09822fd70ad..c8ba951733c 100644 --- a/website/docs/docs/build/metricflow-commands.md +++ b/website/docs/docs/build/metricflow-commands.md @@ -67,7 +67,7 @@ MetricFlow provides the following commands to retrieve metadata and query metric -You can use the `dbt sl` prefix before the command name to execute them in the dbt Cloud CLI. For example, to list all metrics, run `dbt sl list metrics`. +You can use the `dbt sl` prefix before the command name to execute them in the dbt Cloud CLI. For example, to list all metrics, run `dbt sl list metrics`. For a complete list of the MetricFlow commands and flags, run the `dbt sl --help` command in your terminal. - [`list`](#list) — Retrieves metadata values. - [`list metrics`](#list-metrics) — Lists metrics with dimensions. @@ -76,6 +76,9 @@ You can use the `dbt sl` prefix before the command name to execute them in the d - [`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. +- [`export`](#export) — Runs exports for a singular saved query for testing and generating exports in your development environment. You can also use the `--select` flag to specify particular exports from a saved query. +- [`export-all`](#export-all) — Runs exports for multiple saved queries at once, saving time and effort. +