WP CLI not outputting anything

This is due to not proper installing of wp CLI uninstall the old one and install it again.
https://make.wordpress.org/cli/handbook/guides/installing/