TubeOnAITubeOnAIDevelopers
Skip to Content
TubeOnAITubeOnAIDevelopers
CLI

Command reference

This reference is generated from the monorepo CLI build. For commands and flags in the published npm release, run npx tubeonai@latest --help.

tubeonai: transcripts, library, projects and publishing for supported sources

Usage:
  tubeonai login
  tubeonai logout
  tubeonai account
  tubeonai transcript <url> | --id <id> [options]
  tubeonai transcript --file <path> | --upload-id <id> [options]
  tubeonai podcast <feed-or-episode-url> | --id <discovery-id> [--json]
  tubeonai transcript --podcast-feed <feed-url> --episode-guid <guid> [options]
  tubeonai follows [--json]
  tubeonai follow <channel-or-feed-url> [--topic <name>] [--no-digest] [--json]
  tubeonai follow-update <follow-id> [delivery options] [--json]
  tubeonai unfollow <follow-id> [--json]
  tubeonai library list [--query <words>] [--kind <kind>] [--status <status>] [--cursor <c>] [--limit <n>]
  tubeonai library get <item-id>
  tubeonai library add <url>... [--allow-paid]
  tubeonai library delete <item-id> --yes [--idempotency-key <key>]
  tubeonai project list [--query <words>] [--cursor <c>] [--limit <n>]
  tubeonai project create <name> <url-or-item-id>... [--idempotency-key <key>]
  tubeonai project get <project-id>
  tubeonai project rename <project-id> <name> [--idempotency-key <key>]
  tubeonai project add <project-id> <url-or-item-id>... [--idempotency-key <key>]
  tubeonai project remove <project-id> <item-id> --yes [--idempotency-key <key>]
  tubeonai project delete <project-id> --yes [--idempotency-key <key>]
  tubeonai destination list
  tubeonai post create --text <text> --to <destination-id> [--to ...] [--at YYYY-MM-DDTHH:mm --timezone <IANA> [--offset-minutes <n>]] [--wordpress-status publish|draft] [--idempotency-key <key>] --yes
  tubeonai post list [--from-ms <ms>] [--to-ms <ms>] [--cursor <c>] [--limit <n>]
  tubeonai post get <post-id>
  tubeonai post reschedule <delivery-id> --revision <n> --at YYYY-MM-DDTHH:mm --timezone <IANA> [--offset-minutes <n>] --yes
  tubeonai post cancel <delivery-id> --revision <n> --yes
  Every command takes --json. Deleting, publishing, rescheduling and cancelling need --yes.
  library --kind: youtube, article, podcast, media, upload, text; --status: ready, processing, waiting, failed

transcript options:
  --media-url <url>       Process a public video or audio URL
  --format text|segments|srt   output format (default text)
  --json                       one JSON object with metadata
  -o, --output <file>          write to a file instead of stdout
  --allow-paid                 agree to paid speech-to-text when there are no captions
  --allow-ocr                  agree to AI OCR charges for an uploaded PNG, JPEG or scanned PDF
  --page                       first page only (default follows all pages)
  --poll                       with --id: read the item as it is, never start another attempt or pay
  --id <id>                    continue an earlier item
  --file <path>                upload a local file and extract its text
  --encoding <charset>         text files only: windows-1252 or iso-8859-1
  --upload-id <id>             resume a transferred file while it is being verified
  --podcast-feed <url>          public feed returned by podcast discovery
  --episode-guid <guid>         exact selected episode; no automatic feed import

follow-update options:
  --digest | --no-digest       include this source in digests
  --pause | --resume           pause or resume new-upload delivery
  --notify | --no-notify       in-app alerts for new uploads
  --topic <name>               change the topic
  --skip-shorts | --no-skip-shorts   skip YouTube Shorts
  --min-length <minutes>       skip uploads shorter than this
  --keywords <a,b,c>           only keep uploads matching these (empty clears)

Environment:
  TUBEONAI_API_KEY   API key; overrides stored login
  TUBEONAI_API_URL   API base URL (default https://beta.app.tubeonai.com)

Exit codes: 0 ok, 1 failed, 2 auth needed, 3 consent needed, 4 rate limited
With --json, a failure prints one line {"error":{code,message,retryable,action,retry_after_sec,request_id}} to stdout.