Print all available packages as JSON encoded array

tlmgr info

tlmgr info --json

click the source code to copy install tlmgr info on any operating system with command-not-found.com