# How to extract DBT metadata shown through list commands to a file for further data analysis

**URL:** https://discourse.getdbt.com/t/how-to-extract-dbt-metadata-shown-through-list-commands-to-a-file-for-further-data-analysis/9218
**Category:** Help
**Tags:** dbt-core
**Created:** [July 20, 2023, 6:16am UTC](https://discourse.getdbt.com/t/how-to-extract-dbt-metadata-shown-through-list-commands-to-a-file-for-further-data-analysis/9218 "2023-07-20T06:16:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mounika](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mounika](https://discourse.getdbt.com/u/mounika)
#### Post date: [July 20, 2023, 6:16am UTC](https://discourse.getdbt.com/t/how-to-extract-dbt-metadata-shown-through-list-commands-to-a-file-for-further-data-analysis/9218/1 "2023-07-20T06:16:41Z")

</div>

## The problem I’m having:

I am trying to export the dbt metadata shown through ls command to file(csv / json).

## The context of why I’m trying to do this:

This files can be used to create reporting metrics on dbt models(when and what models ran)

## What I’ve already tried :

Using custom dbt packages to write customized metadata to table using macros in a model.
