Human DX
Semantic terminal UI
Color-coded headers, IDs, warnings, and command groups make interactive exploration fast. Automatically degrades when NO_COLOR or YT_CLI_NO_TUI is set.
An open-source Go CLI and Agent Skill for the YouTube Data API v3—combining semantic terminal output for operators with pure --json streams, headless OAuth, and --dry-run upload safety for AI coding agents.
Built around the Dual-Experience (DX & AX) CLI architecture: human operators get high-signal Lipgloss styling and grouped help, while autonomous agents get strict JSON streams, scoped queries, and actionable recovery hints on stderr.
Semantic terminal UI
Color-coded headers, IDs, warnings, and command groups make interactive exploration fast. Automatically degrades when NO_COLOR or YT_CLI_NO_TUI is set.
Deterministic JSON & safety
Every subcommand accepts --json for unpolluted stdout payloads, truncates or scopes list queries to protect context windows, and supports --dry-run validation before mutating state.
Errors and diagnostic hints always route to stderr so JSON parsers never break.
~/.config/yt-cli/client_secret.jsonPlace your Desktop OAuth client_secret.json in ~/.config/yt-cli/ or export YT_CLIENT_ID and YT_CLIENT_SECRET for headless workflows.
yt-cli channel videos --mine --limit 5 --jsonRetrieve channel statistics, filter uploads by privacy status (public, unlisted, private), and emit structured JSON.
yt-cli video upload ./demo.mp4 --title "Demo" --dry-runVerify file paths and snippet metadata locally before performing any mutative YouTube API upload.
Once your dry-run payload checks out, drop --dry-run to upload privately.
yt-cli video upload ./demo.mp4 --title "Demo" --jsonLive uploads default to private visibility so you or your human operator can review the video in YouTube Studio before publishing.
yt-cli channel info [channel-id] [--mine] [--json]Retrieve channel title, ID, subscriber count, and total views for a channel ID or the authenticated user.yt-cli channel videos [channel-id] [--mine] [--limit] [--filter]List uploads from a channel playlist with --limit, --detailed metadata, and privacy status filtering.yt-cli video channel-info <video-id> [--json]Resolve the owning channel ID and channel title for any YouTube video ID (alias: video info).yt-cli video upload <filepath> --title <title> [--dry-run]Upload an .mp4 video with private-by-default visibility and --dry-run parameter validation.skills/yt-cli/SKILL.mdBundled agentskills.io specification teaching coding agents how to invoke yt-cli safely.~/.config/yt-cli/client_secret.jsonXDG-compliant credential and token caching with YT_CLIENT_ID and YT_CLIENT_SECRET environment fallback.