Tuber is a CLI frontend for YouTube, PeerTube, SoundCloud and other sites, powered by the fantastic NewPipeExtractor java library.
Moreover, tuber is suitable for usage as a backend since all its output is in JSON format.
Please read Tuber Developer Manual to learn how to make use of it.
Tuber is release under GNU GPLv3