# Traefik command line to list vhost?

**URL:** <https://community.traefik.io/t/traefik-command-line-to-list-vhost/17259>\
**Category:** Traefik v2\
**Tags:** cli\
**Created:** [January 24, 2023, 3:40pm UTC](https://community.traefik.io/t/traefik-command-line-to-list-vhost/17259 "2023-01-24T15:40:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aukfood](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/aukfood/32/4292_2.png) [@aukfood](https://community.traefik.io/u/aukfood)\
**Post date:** [January 24, 2023, 3:40pm UTC](https://community.traefik.io/t/traefik-command-line-to-list-vhost/17259/1 "2023-01-24T15:40:54Z")

</div>

Hello,  
there is a way to request traefik via a command line to list vhost for exemple like with "apachectl -S".

What I want is all vhost managed by traefik and service pointed by this vhost, so all informations in traefik web interface but from a command line ?

Do you have some idea ??

Regards

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [January 24, 2023, 4:04pm UTC](https://community.traefik.io/t/traefik-command-line-to-list-vhost/17259/2 "2023-01-24T16:04:47Z")

</div>

You can use `curl` with the [Traefik api](https://doc.traefik.io/traefik/operations/api/). [Traefik dashboard](https://doc.traefik.io/traefik/operations/dashboard/) uses the API, too.
