Spaces:
Sleeping
Download src/notebooklm_tools/data/references/command_reference.md from marqueeH/notebooklm-mcp-cli: direct link, hf CLI and curl.
- Browser
- Download file 17.7 kB
-
https://huggingface.co/spaces/marqueeH/notebooklm-mcp-cli/resolve/main/src/notebooklm_tools/data/references/command_reference.md
- Command line
-
hf download hf://spaces/marqueeH/notebooklm-mcp-cli/src/notebooklm_tools/data/references/command_reference.md
-
curl -L -o command_reference.md https://huggingface.co/spaces/marqueeH/notebooklm-mcp-cli/resolve/main/src/notebooklm_tools/data/references/command_reference.md
NotebookLM CLI - Complete Command Reference
This document contains the complete command signatures and all available options for every nlm command.
Table of Contents
- Global Options
- Authentication
- Notebook Commands
- Source Commands
- Research Commands
- Generation Commands
- Studio Commands
- Download Commands
- Export Commands
- Sharing Commands
- Note Commands
- Chat Commands
- Alias Commands
- Config Commands
Global Options
nlm --version, -v # Show version and exit
nlm --ai # Output AI-friendly documentation
nlm --install-completion # Install shell completion
nlm --show-completion # Show completion script
nlm --help # Show help and exit
Authentication
nlm login
Authenticate with NotebookLM using Chrome DevTools Protocol.
nlm login [OPTIONS]
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Profile name for multiple accounts |
--check |
Validate current credentials without re-authenticating | |
--provider |
Auth provider: builtin (default) or openclaw |
|
--cdp-url |
CDP endpoint URL for external provider mode (default: http://127.0.0.1:18800) |
|
--legacy |
-l |
Use browser-cookie3 fallback (not recommended) |
--browser |
-b |
Browser for legacy mode (chrome, firefox, edge) |
--manual |
-m |
Import cookies from file |
--file |
-f |
Cookie file path for manual mode |
Note: Each profile gets its own isolated Chrome session, so you can be logged into multiple Google accounts simultaneously.
nlm login profile list
List all authentication profiles with their associated email addresses.
nlm login profile list
nlm login profile delete
Delete an authentication profile and its credentials.
nlm login profile delete <profile>
nlm login profile rename
Rename an authentication profile.
nlm login profile rename <old-name> <new-name>
nlm login switch
Switch the default profile for all commands.
nlm login switch <profile>
| Argument | Description |
|---|---|
<profile> |
Profile name to switch to |
Example:
nlm login switch work
# Output: ✓ Switched default profile to work
# Account: jsmith@company.com
Notebook Commands
nlm notebook list
List all notebooks.
nlm notebook list [OPTIONS]
| Option | Short | Description |
|---|---|---|
--json |
Output as JSON | |
--quiet |
-q |
Output IDs only |
--title |
Output as "ID: Title" | |
--full |
Show all columns | |
--profile |
-p |
Use specific profile |
nlm notebook create
Create a new notebook.
nlm notebook create <title> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Use specific profile |
nlm notebook get
Get notebook details.
nlm notebook get <notebook-id> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Use specific profile |
nlm notebook describe
Get AI-generated notebook summary with suggested topics.
nlm notebook describe <notebook-id> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Use specific profile |
nlm notebook query
Ask a question about notebook sources.
nlm notebook query <notebook-id> <question> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--source-ids |
Limit to specific sources (comma-separated) | |
--conversation-id |
Continue existing conversation | |
--profile |
-p |
Use specific profile |
nlm notebook rename
Rename a notebook.
nlm notebook rename <notebook-id> <new-title> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Use specific profile |
nlm notebook delete
Delete a notebook permanently.
nlm notebook delete <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--confirm |
Required to confirm deletion |
--profile |
Use specific profile |
Source Commands
nlm source list
List sources in a notebook.
nlm source list <notebook-id> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--json |
Output as JSON | |
--quiet |
-q |
Output IDs only |
--title |
Output as "ID: Title" | |
--url |
Output as "ID: URL" | |
--full |
Show all columns (wider URL display) | |
--drive |
Show Drive sources with freshness status | |
--skip-freshness |
-S |
Skip freshness checks (faster with --drive) |
--profile |
-p |
Use specific profile |
nlm source add
Add a source to a notebook.
nlm source add <notebook-id> [OPTIONS]
URL Source:
| Option | Description |
|---|---|
--url |
URL to add (web page or YouTube) |
Text Source:
| Option | Description |
|---|---|
--text |
Text content to add |
--title |
Title for text source |
Drive Source:
| Option | Description |
|---|---|
--drive |
Google Drive document ID |
--type |
Drive doc type: doc, slides, sheets, pdf |
--title |
Display title |
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Use specific profile |
nlm source get
Get source metadata.
nlm source get <source-id> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Use specific profile |
nlm source describe
Get AI-generated source summary with keywords.
nlm source describe <source-id> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Use specific profile |
nlm source content
Get raw text content of a source.
nlm source content <source-id> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--output |
-o |
Export to file path |
--profile |
-p |
Use specific profile |
nlm source stale
List stale (outdated) Drive sources.
nlm source stale <notebook-id> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Use specific profile |
nlm source sync
Sync Drive sources with latest content.
nlm source sync <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--confirm |
Required to execute sync |
--source-ids |
Specific source IDs to sync (comma-separated) |
--profile |
Use specific profile |
nlm source delete
Delete a source permanently.
nlm source delete <source-id> [OPTIONS]
| Option | Description |
|---|---|
--confirm |
Required to confirm deletion |
--profile |
Use specific profile |
Research Commands
nlm research start
Start a research task to discover new sources.
nlm research start <query> [OPTIONS]
| Option | Description |
|---|---|
--notebook-id |
Required - Target notebook ID |
--mode |
fast (default, deep ( |
--source |
web (default) or drive |
--force |
Override pending research |
--profile |
Use specific profile |
nlm research status
Check research task progress.
nlm research status <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--task-id |
Check specific task (auto-detected if omitted) |
--max-wait |
Max seconds to wait (default: 300, 0=single check) |
--full |
Show full details |
--profile |
Use specific profile |
nlm research import
Import discovered sources into notebook.
nlm research import <notebook-id> <task-id> [OPTIONS]
| Option | Description |
|---|---|
--indices |
Comma-separated indices of sources to import (default: all) |
--profile |
Use specific profile |
Generation Commands
All generation commands share these common options:
| Option | Short | Description |
|---|---|---|
--confirm |
-y |
Required to execute generation |
--source-ids |
Limit to specific sources (comma-separated) | |
--language |
BCP-47 language code (en, es, fr, de, ja) | |
--profile |
-p |
Use specific profile |
nlm audio create
Generate audio overview (podcast).
nlm audio create <notebook-id> [OPTIONS]
| Option | Values | Default |
|---|---|---|
--format |
deep_dive, brief, critique, debate |
deep_dive |
--length |
short, default, long |
default |
--focus |
Focus text/topic |
nlm report create
Generate written report.
nlm report create <notebook-id> [OPTIONS]
| Option | Values | Default |
|---|---|---|
--format |
"Briefing Doc", "Study Guide", "Blog Post", "Create Your Own" |
"Briefing Doc" |
--prompt |
Custom prompt (required for "Create Your Own") |
nlm quiz create
Generate quiz questions.
nlm quiz create <notebook-id> [OPTIONS]
| Option | Values | Default |
|---|---|---|
--count |
Number of questions | 2 |
--difficulty |
1-5 (1=easy, 5=hard) | 2 |
--focus |
Focus text/topic |
nlm flashcards create
Generate flashcards.
nlm flashcards create <notebook-id> [OPTIONS]
| Option | Values | Default |
|---|---|---|
--difficulty |
easy, medium, hard |
medium |
--focus |
Focus text/topic |
nlm mindmap create
Generate mind map.
nlm mindmap create <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--title |
Display title for the mind map |
nlm mindmap list
List existing mind maps.
nlm mindmap list <notebook-id> [OPTIONS]
nlm slides create
Generate slide deck.
nlm slides create <notebook-id> [OPTIONS]
| Option | Values | Default |
|---|---|---|
--format |
detailed, presenter |
detailed |
--length |
short, default |
default |
--focus |
Focus text/topic |
nlm infographic create
Generate infographic.
nlm infographic create <notebook-id> [OPTIONS]
| Option | Values | Default |
|---|---|---|
--orientation |
landscape, portrait, square |
landscape |
--detail |
concise, standard, detailed |
standard |
--focus |
Focus text/topic |
nlm video create
Generate video overview.
nlm video create <notebook-id> [OPTIONS]
| Option | Values | Default |
|---|---|---|
--format |
explainer, brief |
explainer |
--style |
auto_select, classic, whiteboard, kawaii, anime, watercolor, retro_print, heritage, paper_craft |
auto_select |
--focus |
Focus text/topic |
nlm data-table create
Extract structured data as a table.
nlm data-table create <notebook-id> <description> [OPTIONS]
Note: <description> is a required positional argument describing what data to extract.
Studio Commands
nlm studio status
List all generated artifacts in a notebook.
nlm studio status <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--json |
Output as JSON |
--full |
Show all details |
--profile |
Use specific profile |
nlm studio delete
Delete a generated artifact.
nlm studio delete <notebook-id> <artifact-id> [OPTIONS]
| Option | Description |
|---|---|
--confirm |
Required to confirm deletion |
--profile |
Use specific profile |
Download Commands
nlm download
Download generated artifacts to local files.
nlm download <type> <notebook-id> [OPTIONS]
Available types: audio, video, report, mind-map, slides, infographic, quiz, flashcards, data-table
| Option | Description |
|---|---|
--id |
Specific artifact ID (uses latest if omitted) |
--format |
Output format for quiz/flashcards: json, markdown, html |
--profile |
Use specific profile |
Examples:
nlm download audio <nb-id> --output podcast.mp3
nlm download video <nb-id> --output video.mp4
nlm download report <nb-id> --output report.md
nlm download quiz <nb-id> --output quiz.html --format html
nlm download flashcards <nb-id> --output cards.json --format json
Export Commands
nlm export
Export artifacts to Google Docs or Sheets.
nlm export <type> <notebook-id> <artifact-id> [OPTIONS]
Available types: docs, sheets
| Option | Description |
|---|---|
--title |
Title for the exported document |
--profile |
Use specific profile |
Examples:
nlm export sheets <nb-id> <artifact-id> --title "Data Table Export"
nlm export docs <nb-id> <artifact-id> --title "My Report"
Sharing Commands
nlm share status
Get current sharing settings for a notebook.
nlm share status <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--profile |
Use specific profile |
nlm share public
Enable or disable public link sharing.
nlm share public <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--off |
Disable public sharing (default: enable) |
--profile |
Use specific profile |
Examples:
nlm share public <nb-id> # Enable public link
nlm share public <nb-id> --off # Disable public link
nlm share invite
Invite a collaborator by email.
nlm share invite <notebook-id> <email> [OPTIONS]
| Option | Description |
|---|---|
--role |
viewer (default) or editor |
--profile |
Use specific profile |
Examples:
nlm share invite <nb-id> user@example.com
nlm share invite <nb-id> user@example.com --role editor
Note Commands
nlm note create
Create a note in a notebook.
nlm note create <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--content |
Note content (required) |
--title |
Note title |
--profile |
Use specific profile |
nlm note list
List all notes in a notebook.
nlm note list <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--json |
Output as JSON |
--profile |
Use specific profile |
nlm note update
Update an existing note.
nlm note update <notebook-id> <note-id> [OPTIONS]
| Option | Description |
|---|---|
--content |
New content |
--title |
New title |
--profile |
Use specific profile |
nlm note delete
Delete a note permanently.
nlm note delete <notebook-id> <note-id> [OPTIONS]
| Option | Description |
|---|---|
--confirm |
Required to confirm deletion |
--profile |
Use specific profile |
Chat Commands
nlm chat start
Start interactive chat REPL session.
nlm chat start <notebook-id> [OPTIONS]
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Use specific profile |
REPL Commands:
/sources- List available sources/clear- Reset conversation context/help- Show available commands/exit- Exit the REPL
nlm chat configure
Configure chat behavior for a notebook.
nlm chat configure <notebook-id> [OPTIONS]
| Option | Description |
|---|---|
--goal |
default, learning_guide, custom |
--prompt |
Custom system prompt (required when goal is custom) |
--response-length |
default, longer, shorter |
--profile |
Use specific profile |
Alias Commands
nlm alias set
Create or update an alias for a UUID.
nlm alias set <name> <uuid>
Type is auto-detected (notebook, source, artifact, task).
nlm alias get
Resolve an alias to its UUID.
nlm alias get <name>
nlm alias list
List all aliases.
nlm alias list
nlm alias delete
Delete an alias.
nlm alias delete <name>
Config Commands
nlm config show
Display current configuration.
nlm config show [OPTIONS]
| Option | Description |
|---|---|
--json |
Output as JSON instead of TOML |
nlm config get
Get a specific configuration value.
nlm config get <key>
nlm config set
Set a configuration value.
nlm config set <key> <value>
Available Configuration Keys:
| Key | Default | Description |
|---|---|---|
output.format |
table |
Default output format (table, json) |
output.color |
true |
Enable colored output |
output.short_ids |
true |
Show shortened IDs |
auth.browser |
auto |
Browser for login (auto, chrome, chromium) |
auth.default_profile |
default |
Profile to use when --profile not specified |
Example: Set default profile to avoid typing --profile for every command:
# Preferred method (simpler)
nlm login switch work
# Alternative method (via config)
nlm config set auth.default_profile work