AppId of all installed apps

How can I list the AppIds of all installed apps?

The webOS TV does not provide 3rd party apps’ information.