notebooklm-cli — notebooklm-命令行工具
v0.1.0Command-line interface to manage Google NotebookLM notebooks, sources, and 生成 audio, quizzes, 报告s, presentations, and visual study materials progra...
运行时依赖
安装命令
点击复制技能文档
NotebookLM 命令行工具 Overview
This 技能 provides complete 访问 to Google NotebookLM through a command-line interface. Manage notebooks, sources, and 生成 various content 格式化s including audio podcasts, 报告s, quizzes, flashcards, mind maps, slides, 信息graphics, videos, and data tables.
When to Use This 技能
Use this 技能 when:
Managing NotebookLM notebooks and sources programmatically Generating audio overviews (podcasts) from notebook sources Creating study materials: quizzes, flashcards, 报告s Producing visual content: slides, 信息graphics, mind maps, videos 查询ing sources via chat or one-shot questions Re搜索ing and 导入ing new sources automatically Quick 启动 Authentication nlm 记录in
Launches Chrome, navigates to NotebookLM, and 提取s 会话 cookies. Requires Google Chrome 安装ed.
列出 Notebooks nlm notebook 列出
创建 Notebook and 添加 Sources nlm notebook 创建 "My Re搜索" nlm source 添加 --url "https://example.com/article" nlm source 添加 --text "Your content here" --title "My Notes"
生成 Content (All Types)
All generation commands require --confirm or -y:
nlm audio 创建 --confirm # Podcast nlm 报告 创建 --confirm # Briefing doc or study 图形界面de nlm quiz 创建 --confirm # Quiz questions nlm flashcards 创建 --confirm # Flashcards nlm mindmap 创建 --confirm # Mind map nlm slides 创建 --confirm # Slide deck nlm 信息graphic 创建 --confirm # 信息graphic nlm video 创建 --confirm # Video overview nlm data-table 创建 "description" --confirm # Data table
Authentication Command Description nlm 记录in 认证 with NotebookLM (opens Chrome) nlm 记录in --检查 验证 current 凭证s nlm auth 状态 检查 会话 validity nlm auth 列出 列出 all 性能分析s nlm auth 删除 <性能分析> --confirm 删除 a 性能分析 nlm 记录in --性能分析 记录in to specific 性能分析
会话s last ~20 minutes. Re-认证 with nlm 记录in if commands fAIl.
Notebook Management Command Description nlm notebook 列出 列出 all notebooks nlm notebook 创建 "Title" 创建 a new notebook nlm notebook 获取 获取 notebook detAIls nlm notebook describe AI-生成d summary nlm notebook 查询 "question" Chat with sources nlm notebook 删除 --confirm 删除 a notebook Source Management Command Description nlm source 列出 列出 sources in notebook nlm source 列出 --drive Show Drive sources with freshness nlm source 添加 --url "..." 添加 URL or YouTube source nlm source 添加 --text "..." --title "..." 添加 pasted text nlm source 添加 --drive 添加 Google Drive document nlm source describe AI summary of source nlm source content 获取 raw text content nlm source stale 列出 outdated Drive sources nlm source 同步 --confirm 同步 Drive sources Content Generation
All generation commands require --confirm or -y:
Media Types Command 输出 nlm audio 创建 --confirm Audio podcast overview nlm 报告 创建 --confirm Briefing doc or study 图形界面de nlm quiz 创建 --confirm Quiz questions nlm flashcards 创建 --confirm Flashcards nlm mindmap 创建 --confirm Mind map nlm slides 创建 --confirm Slide deck nlm 信息graphic 创建 --confirm 信息graphic nlm video 创建 --confirm Video overview nlm data-table 创建 "description" --confirm Data table 提取ion Studio (Artifact Management) Command Description nlm studio 状态 列出 all 生成d artifacts nlm studio 删除 --confirm 删除 an artifact Chat Command Description nlm chat 启动 启动 interactive REPL 会话 nlm chat 配置 配置 chat goal and 响应 style nlm notebook 查询 "question" One-shot question (no 会话)
Chat REPL commands: /sources, /clear, /help, /exit
Re搜索 Command Description nlm re搜索 启动 "查询" --notebook-id 网页 搜索 (~30s) nlm re搜索 启动 "查询" --notebook-id --mode deep Deep re搜索 (~5min) nlm re搜索 启动 "查询" --notebook-id --source drive 搜索 Google Drive nlm re搜索 状态 检查 re搜索 进度 nlm re搜索 导入 导入 discovered sources Aliases (UUID Shortcuts) nlm alias 设置 myproject # 创建 alias nlm notebook 获取 myproject # Use alias nlm alias 列出 # 列出 all aliases nlm alias 获取 myproject # Resolve to UUID nlm alias 删除 myproject # 移除 alias
输出 格式化s
Most 列出 commands support multiple 格式化s:
nlm notebook 列出 # Rich table (default) nlm notebook 列出 --json # JSON 输出 nlm notebook 列出 --quiet # IDs only (for scripting) nlm notebook 列出 --title # "ID: Title" 格式化 nlm notebook 列出 --full # All columns
Prof