Xblock lists how to show

Similar to the code in edx to show the list of installed xblocks

/edx/bin/pip.edxapp list

Is there a simple way of doing the same in tutor. I wanted to be able to provide a list of available options for others developing courses in tutor.

I believe this is what you are looking for?

tutor local run lms pip list

See the docs here.

Thank you that worked I was overthinking the command with

tutor local run lms bash pip list

thank you very much

To clarify, the pip list command will list all installed packages, not just xblocks. To obtain the actual list of installed xblocks, run:

tutor local run --no-deps lms python -c "import pkg_resources
for entrypoint in pkg_resources.iter_entry_points('xblock.v1'):

Thank you to be honest only having used Tutor for about a month I don’t think I would have found that off the top of my head. Just to let you know its a great product and I’m getting to grips with it now.

Thanks again for your help

1 Like