TubeOnAITubeOnAIDevelopers
Skip to Content
TubeOnAITubeOnAIDevelopers
CLI

CLI quickstart

Sign in to TubeOnAI from your terminal and save a transcript.

Install Node.js 22 or later. Set the API URL before signing in so login and transcript requests use the same environment. The published npm release 0.1.0 defaults to the office preview. The current repository build defaults to the V2 beta.

export TUBEONAI_API_URL="https://beta.app.tubeonai.com"

npx tubeonai@latest login
npx tubeonai@latest account
npx tubeonai@latest transcript "https://www.youtube.com/watch?v=dQw4w9WgXcQ" > transcript.txt

Confirm the code shown in the terminal in your browser. The last command writes the transcript to transcript.txt. To authenticate scripts, set TUBEONAI_API_KEY instead. The key takes precedence over stored login.

Use --format srt for timed subtitles or --json for structured output. To process a local file, use transcript --file ./your-file.pdf.

For options in the installed npm release, run npx tubeonai@latest --help. The repository build also includes podcasts, follows, library, projects, and publishing commands.

If the CLI asks you to sign in again, check that the API URL matches your login environment. Exit code 3 means the operation needs consent. Review the quoted cost before allowing paid transcription or OCR. See the command reference for the full options and exit codes.