JSPM

@umbertotancorre/youtube-cli

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q59308F
  • License MIT

CLI for YouTube transcripts, metadata, search, and downloads

Package Exports

  • @umbertotancorre/youtube-cli
  • @umbertotancorre/youtube-cli/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@umbertotancorre/youtube-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@umbertotancorre/youtube-cli

npm License: MIT Node

Zero Setup · No API Key · No Account · Open Source

A command-line tool to access YouTube from your terminal:

  • Fetch transcript (plain text or with timestamps)
  • Download transcript as .md
  • Get video metadata
  • Search within captions
  • Download video or audio

All locally, no third-party API keys.

Installation

Global install (recommended):

npm install -g @umbertotancorre/youtube-cli
youtube-cli --help

One-off use without installing:

npx @umbertotancorre/youtube-cli transcript dQw4w9WgXcQ

Commands

youtube-cli transcript <url>                  Print transcript as plain text
youtube-cli transcript <url> --timestamps     Include [MM:SS] timestamps
youtube-cli transcript <url> --save           Save as .md to Downloads
youtube-cli transcript <url> --language it    Fetch in a specific language

youtube-cli search <url> <query>              Search transcript with timestamps
youtube-cli metadata <url>                    Print title, channel, views, duration
youtube-cli metadata <url> --json             Output as JSON

youtube-cli download <url>                    Download video to Downloads
youtube-cli download <url> --quality hd1080   Choose quality
youtube-cli download <url> --audio            Download audio only (mp3)
youtube-cli download <url> --audio --format flac

youtube-cli completions                       Print bash completion script
youtube-cli completions zsh                   Print zsh completion script

Downloads always go to the platform-native Downloads folder:

OS Path
macOS ~/Downloads
Linux $XDG_DOWNLOAD_DIR or ~/Downloads
Windows %USERPROFILE%\Downloads

Shell completions (optional)

# bash
source <(youtube-cli completions)

# zsh
youtube-cli completions zsh > ~/.zsh/completions/_youtube-cli

Also available

Looking for an AI agent integration instead? See @umbertotancorre/youtube-mcp.

Disclaimer

This project only accesses publicly available YouTube data: the same captions, metadata, and streams visible in any browser. It does not bypass authentication, paywalls, or age gates.

End users are responsible for complying with YouTube's Terms of Service. This is a local tool you run on your own machine.

License

@umbertotancorre/youtube-cli is fully open source, licensed under the MIT License.