# How to: List all installed XBlocks?

**URL:** <https://discuss.openedx.org/t/how-to-list-all-installed-xblocks/5747>\
**Category:** Development\
**Tags:** how-to\
**Created:** [September 8, 2021, 3:18pm UTC](https://discuss.openedx.org/t/how-to-list-all-installed-xblocks/5747 "2021-09-08T15:18:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/omar/32/7275_2.png) [@omar](https://discuss.openedx.org/u/omar)\
**Post date:** [September 8, 2021, 3:18pm UTC](https://discuss.openedx.org/t/how-to-list-all-installed-xblocks/5747/1 "2021-09-08T15:18:12Z")

</div>

This code snippet lists all installed XBlocks in your installation:

You need to get into the python shell first:

- On devstack it’s `make lms-shell` then `./manage.py lms shell`
- On native production installation it’s `ssh your-machine-ip` then `/edx/bin/edxapp-shell-lms`
- On Tutor it’s: … [check @chintan’s reply below](https://discuss.openedx.org/t/how-to-list-all-installed-xblocks/5747/3)

Then paste the following code:

```auto
import pkg_resources
for ep in pkg_resources.iter_entry_points(group='xblock.v1'):
   print(ep.name)

```

You’ll get a list like this:

```auto
survey
poll
drag-and-drop-v2
staffgradedxblock
recommender
openassessment
lti_consumer
edx_sga
...

```

---

<div class="post-metadata">

**Author:** ![braden](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/braden/32/46_2.png) [@braden](https://discuss.openedx.org/u/braden)\
**Post date:** [September 9, 2021, 2:39am UTC](https://discuss.openedx.org/t/how-to-list-all-installed-xblocks/5747/2 "2021-09-09T02:39:01Z")

</div>

And if you want to know what _version_ of each is installed, check out the discussion at [What's the best way to track/show an XBlock's version? - #5 by fghaas](https://discuss.openedx.org/t/whats-the-best-way-to-track-show-an-xblocks-version/5362/5) / [this PR](https://github.com/edx/edx-platform/pull/28166)

---

<div class="post-metadata">

**Author:** ![chintan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/chintan/32/52_2.png) [@chintan](https://discuss.openedx.org/u/chintan)\
**Post date:** [September 10, 2021, 12:49pm UTC](https://discuss.openedx.org/t/how-to-list-all-installed-xblocks/5747/3 "2021-09-10T12:49:14Z")

</div>

On tutor its

`tutor local run cms ./manage.py lms shell`

or for development version

`tutor dev run cms ./manage.py lms shell`

or

you can run

`docker exec -it your_container_name_here /bin/bash`

and then proceed with normal ./manage.py stuff that we usually do
