Use this file to discover all available pages before exploring further.
Sources are the documents, URLs, videos, and text snippets that NotebookLM reads when answering questions or generating studio content. The nlm source commands let you manage every aspect of a notebook’s source library — from adding a PDF file to syncing stale Google Drive documents — directly from the terminal.The CLI supports two command styles:
Max seconds to wait when --wait is set (default 600)
--title
Custom title for the source (required for text sources)
--type
Drive doc type: doc, slides, sheets, pdf (default doc)
--profile
-p
Profile to use
Always pass --wait when you plan to query or generate studio content immediately after adding a source. Without it, the source may still be processing when your next command runs, leading to incomplete results.
Examples by source type
# Single URLnlm source add <notebook-id> --url "https://example.com/article" --wait# Multiple URLs in one shot (repeatable flag)nlm source add <notebook-id> \ --url "https://example.com/report" \ --url "https://example.com/appendix"
Retrieve the full text content of a source as processed by NotebookLM.
nlm source get <source-id>
nlm source get returns the raw text content of the source as indexed by NotebookLM. To get an AI-generated summary with keywords instead, use nlm source describe.
Ask the AI to generate a summary and extract keywords for a source. This is useful for quickly understanding what is in a large document without reading it yourself.
nlm source describe <source-id>
nlm source describe produces an AI-generated summary with keywords — it calls the NotebookLM AI layer. nlm source get returns the raw indexed text content without AI processing.
Check which Google Drive sources in a notebook have been updated since they were last imported — i.e., the Drive document is newer than the cached version in NotebookLM.