yt-music-cli
v0.3.0
Published
YouTube Music player for your terminal
Downloads
446
Maintainers
Readme
yt-music-cli
YouTube Music player for your terminal. Search and stream music directly from YouTube — no browser, no ads, no distractions.
Requirements
macOS
brew install mpv yt-dlpLinux (Debian/Ubuntu)
sudo apt install mpv
pip install yt-dlpWindows
winget install mpv.mpv
winget install yt-dlp.yt-dlpInstallation
npm install -g yt-music-cliUsage
yt-musicControls
Player
| Key | Action |
|-----|--------|
| Space | Pause / Resume |
| ← / → | Seek -10s / +10s |
| N | Next track |
| P | Previous track |
| F | Toggle favorite |
| X | Toggle shuffle |
| A | Add to playlist |
| O | Open playlists |
| L | Open favorites |
| S | Back to search |
| Q / Ctrl+C | Quit |
Search
| Key | Action |
|-----|--------|
| Type + Enter | Search |
| ↑ / ↓ | Navigate results |
| Enter | Play selected track |
| L | Open favorites |
| O | Open playlists |
Playlists
| Key | Action |
|-----|--------|
| Enter | Open playlist / Play track |
| C | Create new playlist |
| R | Rename playlist |
| D | Delete playlist / Remove track |
| Q | Go back |
Features
- Search & Play — Search YouTube and stream audio directly
- Radio Mix — Auto-queues related tracks when you start playing
- Favorites — Save tracks you love, persisted across sessions
- Playlists — Create, rename, and manage playlists with full queue support
- Shuffle — Shuffle the queue with a single keypress
- History — Navigate back to previously played tracks
How it works
Plays audio directly from YouTube via yt-dlp + mpv — nothing is downloaded to disk. When you start a track, a radio mix is automatically queued in the background. Playing from a playlist queues the remaining playlist tracks first, then continues with the radio mix.
License
MIT
