# `mix prom_ex.dashboard.publish`
[🔗](https://github.com/akoutmos/prom_ex/blob/master/lib/mix/tasks/prom_ex.dashboard.publish.ex#L1)

This mix task will publish dashboards to Grafana for a PromEx module. It is
recommended that you use the functionality that is part of the PromEx supervision
tree in order to upload dashboards as opposed to this, given that mix may not
always be available (like in a mix release). This is more so a convenience for
testing and validating dashboards without starting the whole application.

The following CLI flags are supported:
```md
-m, --module   The PromEx module which will be used to render the dashboards.
               This is needed to fetch any relevant assigns from the
               `c:PromEx.dashboard_assigns/0` callback and to get the Grafana
               configuration from app config.

-t, --timeout  The timeout value defines how long the mix task will wait while
               uploading dashboards.
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
