New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@cli4ai/notebooklm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cli4ai/notebooklm

NotebookLM CLI - create projects, upload documents, ask questions, generate media

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

NotebookLM CLI

CLI tool for Google NotebookLM - create projects, upload documents, ask questions, and generate media.

Installation

cli4ai add notebooklm

Prerequisites

  • Chrome browser with the cli4ai/chrome package
  • Logged into Google NotebookLM in the managed Chrome browser
# Start the managed Chrome browser
cli4ai run chrome launch

# Navigate to NotebookLM and log in
cli4ai run chrome navigate https://notebooklm.google.com

Commands

List Notebooks

cli4ai run notebooklm list

Create Notebook

cli4ai run notebooklm create "My Research Project"

Open Notebook

cli4ai run notebooklm open <notebook-id>

Add Sources

# Add URL source
cli4ai run notebooklm add-url <notebook-id> "https://example.com/article"

# Add text source
cli4ai run notebooklm add-text <notebook-id> "Your content here..."

List Sources

cli4ai run notebooklm sources <notebook-id>

Ask Questions

cli4ai run notebooklm ask <notebook-id> "What are the key points?"

Generate Media

# Generate audio overview (AI podcast)
cli4ai run notebooklm generate <notebook-id> audio

# Generate with custom prompt
cli4ai run notebooklm generate <notebook-id> audio --prompt "Focus on key insights"

# Other media types
cli4ai run notebooklm generate <notebook-id> video
cli4ai run notebooklm generate <notebook-id> slides
cli4ai run notebooklm generate <notebook-id> quiz
cli4ai run notebooklm generate <notebook-id> flashcards
cli4ai run notebooklm generate <notebook-id> mindmap
cli4ai run notebooklm generate <notebook-id> infographic
cli4ai run notebooklm generate <notebook-id> report
cli4ai run notebooklm generate <notebook-id> table

Check Status

cli4ai run notebooklm status <notebook-id>

Download Generated Content

cli4ai run notebooklm download <notebook-id> audio

List Media Types

cli4ai run notebooklm types

Media Types

TypeDescription
audioAI-generated podcast discussion
videoVideo overview presentation
slidesSlide deck
quizKnowledge quiz
flashcardsStudy flashcards
mindmapVisual mind map
infographicVisual data summary
reportDetailed written report
tableStructured data table

Example Workflow

# Create a new notebook
cli4ai run notebooklm create "AI Research"
# Returns: { id: "abc-123", name: "AI Research", url: "..." }

# Add sources
cli4ai run notebooklm add-url abc-123 "https://en.wikipedia.org/wiki/Artificial_intelligence"
cli4ai run notebooklm add-text abc-123 "Additional context about AI..."

# Ask questions
cli4ai run notebooklm ask abc-123 "What is artificial intelligence?"

# Generate an audio overview
cli4ai run notebooklm generate abc-123 audio --prompt "Make it engaging and educational"

# Check status
cli4ai run notebooklm status abc-123

# Download when ready
cli4ai run notebooklm download abc-123 audio

Notes

  • NotebookLM has no public API - this tool uses browser automation
  • User must be logged into Google in the managed Chrome browser
  • Audio/video generation can take several minutes
  • File upload is not supported (use URLs or paste text instead)

License

BUSL-1.1

Keywords

cli4ai

FAQs

Package last updated on 22 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts