Adom Google
Public Made by Adomby adom
Drive your whole Google Workspace from the terminal, run by your AI. Read Gmail, write Google Docs, build Google Sheets and Google Slides, search Google Drive, manage Google Calendar and Google Tasks, and post to Google Chat, plus any Google API and a zero-setup personal Gmail.
Feature: YouTube upload support (scope, API enablement, audit, onboarding)
Feature request: first-class YouTube upload
What happened. We needed to upload a video to our org's YouTube channel ([email protected]) as unlisted from a container. There is no YouTube helper, only the generic api passthrough, and it hit three walls in a row:
- Scope.
youtube/youtube.uploadaren't in the default "full" scope set.adom-google --account media scopes --require youtube.upload youtube --auto-widenworked fine (one Allow click, existing scopes kept). - API not enabled. Every call then returned:
YouTube Data API v3 has not been used in project 432727599812 before or it is disabled.Project 432727599812 is Adom's shared OAuth client (theadom-googleapp behind the gateway). - Audit restriction (not hit yet, but expected). Per YouTube API Services policy,
videos.insertuploads from an unaudited API project are locked to private, soprivacyStatus: unlistedwould not stick until the project passes YouTube's API compliance audit.
We fell back to driving YouTube Studio in pup, which also needs a native file dialog because pup has no file-input verb.
Asks
adom-google youtube upload <file> --title --description --privacy unlisted|private|public [--playlist] [--thumbnail]: a resumable upload (the video endpoint needs a resumable/multipart upload, not the JSON passthrough), printing the watch URL and the privacy status YouTube actually applied, and warning loudly if it was forced to private.- Optional YouTube scope bundle. Keep YouTube out of the default set, but make
--require youtubea documented, supported widen with a clear message. - Enable YouTube Data API v3 on Adom's shared client (project 432727599812), and decide whether to submit that project for the YouTube API audit so unlisted/public uploads work.
- Onboarding. Have
adom-google-onboardingenable YouTube Data API v3 in each new org's own Google Cloud project, and document the audit step, so other orgs get the same capability without a surprise. - Doctor/hint. When the passthrough gets
SERVICE_DISABLEDfor any API, print which project, which API, and the console link, and say whether it's Adom's shared client (Adom admin fixes it once) or the org's own client (the org's admin fixes it).
Scope of the fix
Enabling the API on project 432727599812 fixes it for everyone who signs in through Adom's shared client. Orgs onboarded with their own Google Cloud client need it enabled in their own project, which is why the onboarding change matters.