LinuxCommandLibrary

youtube-viewer

Terminal YouTube search and playback client

TLDR

Search videos

$ youtube-viewer [search query]
copy
Play video URL
$ youtube-viewer [https://youtube.com/watch?v=...]
copy
Audio only
$ youtube-viewer -n [query]
copy
Download video
$ youtube-viewer -d [query]
copy
Play with specific player
$ youtube-viewer --player=[vlc] [query]
copy
Search channels
$ youtube-viewer -c [channel_name]
copy
Show trending
$ youtube-viewer -t
copy

SYNOPSIS

youtube-viewer [-n] [-d] [--player player] [options] query

DESCRIPTION

youtube-viewer is a command-line client for searching, streaming, and downloading YouTube videos directly from the terminal. It queries the YouTube API, presents numbered search results, and launches your chosen media player for playback.
Multiple video players are supported including mpv, VLC, and MPlayer, configurable with the --player option. Audio-only mode (-n) streams just the audio track, reducing bandwidth usage. The -d flag downloads videos locally instead of streaming them.
Channel browsing (-c) lists uploads from specific creators, and -t shows currently trending videos. Resolution can be controlled with -r and fullscreen playback enabled with -f.

PARAMETERS

-n, --non-interactive

Audio only.
-d, --download
Download video.
--player PLAYER
Video player.
-c, --channel NAME
Search channel.
-t, --trending
Trending videos.
-r, --resolution RES
Video resolution.
-f, --fullscreen
Fullscreen playback.

CAVEATS

Requires working YouTube API. May break with YouTube changes. Player must be installed.

HISTORY

youtube-viewer was created as a command-line YouTube client. It provides terminal access to YouTube content.

SEE ALSO

yt-dlp(1), mpv(1), vlc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community