npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@neonwatty/youtube-cli

v1.0.0

Published

CLI tool for uploading and managing YouTube Shorts

Readme

youtube-cli

CLI tool for managing YouTube Shorts.

Setup

Google Cloud Setup

  1. Create a project at Google Cloud Console
  2. Enable YouTube Data API v3
  3. Create OAuth 2.0 credentials (Web application type)
  4. Add http://localhost:3000 as authorized redirect URI

Requirements

  • Node.js 18+
  • yt-dlp (for clone command): brew install yt-dlp
  • ffmpeg (for validation): brew install ffmpeg

Installation

make install

Or manually:

npm install
npm run build
npm link

Secrets Configuration

Option A: Doppler (Recommended)

# Connect to Doppler project
make doppler-connect

# Run commands (secrets auto-injected)
make auth
make list ARGS="--max 20"

Option B: Local .env File

cp .env.example .env
# Edit .env with your credentials

Option C: Local client_secrets.json

Download OAuth credentials from Google Cloud Console as client_secrets.json.

Commands

youtube auth

Authenticate with YouTube (required before other commands).

youtube list [options]

List your channel's videos.

| Option | Description | | -------------------- | ------------------------------------ | | --max, -n <num> | Max videos to show (default: 10) | | --privacy <status> | Filter: public, private, unlisted | | --format <type> | Output: table, json (default: table) |

youtube list
youtube list --max 20 --format json
youtube list --privacy public

youtube upload <file> [options]

Upload a video as a YouTube Short.

| Option | Description | | -------------------------- | -------------------------------------------- | | --title, -t <title> | Video title (required) | | --description, -d <desc> | Video description | | --tags <t1,t2,...> | Comma-separated tags | | --privacy <status> | public, private, unlisted (default: private) | | --skip-validation | Skip Shorts requirements check | | --force | Upload even if validation fails |

youtube upload video.mp4 --title "My Short"
youtube upload video.mp4 -t "Gaming Clip" -d "Epic moment" --tags gaming,clips --privacy public

youtube update <video-id> [options]

Update metadata on an existing video.

| Option | Description | | -------------------------- | --------------------- | | --title, -t <title> | New title | | --description, -d <desc> | New description | | --tags <t1,t2,...> | Replace tags | | --privacy <status> | Change privacy status |

youtube update abc123 --title "New Title"
youtube update abc123 --privacy unlisted
youtube update abc123 -t "Title" -d "Description" --tags tag1,tag2

youtube clone <video-id> [options]

Download a video and re-upload with new metadata.

| Option | Description | | -------------------------- | ---------------------------------- | | --title, -t <title> | Title for clone (required) | | --description, -d <desc> | Description (defaults to original) | | --tags <t1,t2,...> | Tags (defaults to original) | | --privacy <status> | Privacy (default: private) | | --keep-file | Keep downloaded video file |

youtube clone abc123 --title "Cloned Video"
youtube clone abc123 -t "New Version" --privacy public --keep-file

youtube validate <file>

Check if a video meets YouTube Shorts requirements (duration, aspect ratio).

youtube validate video.mp4