Skip to content

Commit

Permalink
Update metricflow-commands.md
Browse files Browse the repository at this point in the history
updating this as --csv flag isn't supported in dbt cloud
  • Loading branch information
mirnawong1 authored Jan 23, 2025
1 parent 1c6f692 commit bf41f7a
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 bf41f7a

Please sign in to comment.