Skip to content

Commit

Permalink
Update metricflow-commands.md (#6819)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Jan 23, 2025
2 parents 1c6f692 + bf41f7a commit 541ab21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions website/docs/docs/build/metricflow-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,15 @@ limit 10
</TabItem>
<TabItem value="eg7" label=" Export to CSV">
Add the `--csv file_name.csv` flag to export the results of your query to a csv.
Add the `--csv file_name.csv` flag to export the results of your query to a csv. The `--csv` flag is available in dbt Core only and not supported in dbt Cloud.
**Query**
```bash
# In dbt Cloud
<!-- # In dbt Cloud
dbt sl query --metrics order_total --group-by metric_time,is_food_order --limit 10 --order-by -metric_time --where "is_food_order = True" --start-time '2017-08-22' --end-time '2017-08-27' --csv query_example.csv
-->
# In dbt Core
mf query --metrics order_total --group-by metric_time,is_food_order --limit 10 --order-by -metric_time --where "is_food_order = True" --start-time '2017-08-22' --end-time '2017-08-27' --csv query_example.csv
Expand Down

0 comments on commit 541ab21

Please sign in to comment.