nlm
NotebookLM CLI (nlm)
Manage Google NotebookLM notebooks, sources, notes, chat, and generated content (audio/video overviews, slide decks, apps, reports) via the nlm command-line tool.
Requires: nlm on PATH (nix-managed, built from upstream tmc/nlm). Install/update via cd ~/nix && nix run .#build-switch.
Check: command -v nlm || echo "MISSING: nlm CLI not installed"
Command structure: the CLI uses subcommand groups —
nlm <group> <action>(e.g.nlm notebook list,nlm source add,nlm audio create). The older flat aliases (nlm list,nlm add,nlm audio-create, …) were removed in upstream's parser migration. When unsure of exact syntax, runnlm --helpornlm <group> --help— it's authoritative. Thereferences/*.mdfiles predate the migration and may be stale.
Authentication
Before first use, authenticate with Google:
nlm auth login -all
This connects to Chrome via CDP (Chrome DevTools Protocol) to extract cookies from an active NotebookLM session. Credentials are stored in ~/.nlm/env.