Skip to content

About

A beautiful command-line interface for YouTube search, powered by ytsearch.js — search videos, channels, playlists, movies, and live streams from your terminal.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

YTSearch CLI — YouTube Search from the Terminal

A command-line interface for YouTube search powered by ytsearch.js.

YTSearch CLI (ytsearch-cli) is the official command-line interface for ytsearch.js, a TypeScript and Node.js library for searching YouTube videos, channels, playlists, and retrieving video and playlist data.

Search YouTube directly from your terminal with formatted output, JSON support, detailed metadata, and an interactive search mode.

Install YTSearch CLI

Install the YouTube search CLI globally with npm:

npm install -g ytsearch-cli

Run help:

ytsearch --help

Features

  • Search YouTube videos, channels, and playlists from the command line
  • Retrieve YouTube video details and playlist videos by ID
  • Choose rich table, compact, detailed, or link-friendly output
  • Export search results as JSON for scripts and automation
  • Use interactive watch mode for repeated searches
  • Works with Node.js 14 and later

YouTube Search CLI Usage

Search YouTube Videos

ytsearch video "never gonna give you up"

Search YouTube Channels

ytsearch channel "RickAstleyVEVO"

Search YouTube Playlists

ytsearch playlist "Top Hits 2026"

Get YouTube Video Details

ytsearch details <videoId>

Get Videos from a YouTube Playlist

ytsearch playlist-videos <playlistId>

Search All Types

ytsearch search "lofi hip hop"

CLI Options

  • -l, --limit <n> → Number of results (default: 10)
  • -s, --sort <type> → relevance, upload_date, view_count, rating
  • -m, --mode <type> → default, compact, online, detailed
  • -j, --json → Output raw JSON
  • -w, --watch → Interactive mode

Example:

ytsearch video "javascript tutorial" -l 5 -m compact

Display Modes

  • default → Rich tables with info
  • compact → Minimal quick view
  • online → Clickable links
  • detailed → Full metadata

Interactive YouTube Search Mode

Run:

ytsearch --watch

Features:

  • Arrow key navigation
  • Continuous search
  • Live settings update

Tech Used


Related

ytsearch.js is the core library powering YTSearch CLI. Use it directly in your Node.js or TypeScript projects when you need programmatic YouTube search and playlist data.


License

MIT License © 2026

About

A beautiful command-line interface for YouTube search, powered by ytsearch.js — search videos, channels, playlists, movies, and live streams from your terminal.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Sponsor this project

Contributors

Languages