# \# promtool check web-config web.yml promtool: error: expected command but got "web-config", try --help

**URL:** <https://discuss.prometheus.io/t/promtool-check-web-config-web-yml-promtool-error-expected-command-but-got-web-config-try-help/1168>\
**Category:** Prometheus server\
**Created:** [August 31, 2022, 3:20am UTC](https://discuss.prometheus.io/t/promtool-check-web-config-web-yml-promtool-error-expected-command-but-got-web-config-try-help/1168 "2022-08-31T03:20:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamaszl](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/tamaszl/32/506_2.png) [@tamaszl](https://discuss.prometheus.io/u/tamaszl)\
**Post date:** [August 31, 2022, 3:20am UTC](https://discuss.prometheus.io/t/promtool-check-web-config-web-yml-promtool-error-expected-command-but-got-web-config-try-help/1168/1 "2022-08-31T03:20:05Z")

</div>

```auto
# promtool check web-config web.yml
promtool: error: expected command but got "web-config", try --help

```

Anybody know why i’m getting this error? pretty much no search results and every documentation says to run this to check your web.yml

---

<div class="post-metadata">

**Author:** ![zarubto4](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/zarubto4/32/776_2.png) [@zarubto4](https://discuss.prometheus.io/u/zarubto4)\
**Post date:** [August 16, 2023, 5:05pm UTC](https://discuss.prometheus.io/t/promtool-check-web-config-web-yml-promtool-error-expected-command-but-got-web-config-try-help/1168/2 "2023-08-16T17:05:32Z")

</div>

Same issue… are you doing that on Digital Ocean from Already made Docker image?
