How to list all assigned labels

Been out of the running for quite a while. Only did self health monitoring and failing most of the time. :wink:

Where does one use your command, is this linux CLI or API code?