Skip to content

Latest commit

 

History

History
381 lines (274 loc) · 5.74 KB

File metadata and controls

381 lines (274 loc) · 5.74 KB

Command Reference

Authentication Commands

nlm login

Authenticate with NotebookLM by launching Chrome and extracting session cookies.

nlm login
nlm login --check
nlm login --profile <name>

Requirements:

  • Google Chrome must be installed
  • Requires user interaction in browser

nlm auth status

Check if current session is valid.

nlm auth status

nlm auth list

List all authenticated profiles.

nlm auth list

nlm auth delete

Delete a specific profile.

nlm auth delete <profile> --confirm

Notebook Commands

nlm notebook list

List all notebooks.

nlm notebook list
nlm notebook list --json
nlm notebook list --quiet
nlm notebook list --title
nlm notebook list --full

nlm notebook create

Create a new notebook.

nlm notebook create "Notebook Title"

nlm notebook get

Get notebook details.

nlm notebook get <notebook-id>

nlm notebook describe

Get AI-generated summary of notebook.

nlm notebook describe <notebook-id>

nlm notebook query

Chat with sources in notebook (one-shot question).

nlm notebook query <notebook-id> "Your question here"

nlm notebook delete

Delete a notebook.

nlm notebook delete <notebook-id> --confirm

Source Commands

nlm source list

List sources in a notebook.

nlm source list <notebook-id>
nlm source list <notebook-id> --drive
nlm source list <notebook-id> --drive -S

nlm source add

Add a source to a notebook.

nlm source add <notebook-id> --url "https://example.com/article"
nlm source add <notebook-id> --url "https://youtube.com/watch?v=..."
nlm source add <notebook-id> --text "Your content here" --title "Source Title"
nlm source add <notebook-id> --drive <document-id>

nlm source describe

Get AI summary of a source.

nlm source describe <source-id>

nlm source content

Get raw text content of a source.

nlm source content <source-id>

nlm source stale

List outdated Google Drive sources.

nlm source stale <notebook-id>

nlm source sync

Sync Google Drive sources.

nlm source sync <notebook-id> --confirm

Content Generation Commands

All content generation commands require --confirm or -y flag.

nlm audio create

Generate audio overview (podcast).

nlm audio create <notebook-id> --confirm

nlm report create

Generate briefing doc or study guide.

nlm report create <notebook-id> --confirm

nlm quiz create

Generate quiz questions.

nlm quiz create <notebook-id> --confirm

nlm flashcards create

Generate flashcards.

nlm flashcards create <notebook-id> --confirm

nlm mindmap create

Generate mind map.

nlm mindmap create <notebook-id> --confirm

nlm slides create

Generate slide deck.

nlm slides create <notebook-id> --confirm

nlm infographic create

Generate infographic.

nlm infographic create <notebook-id> --confirm

nlm video create

Generate video overview.

nlm video create <notebook-id> --confirm

nlm data-table create

Extract data as table.

nlm data-table create <notebook-id> "description" --confirm

Studio Commands

nlm studio status

List all generated artifacts in a notebook.

nlm studio status <notebook-id>

nlm studio delete

Delete a generated artifact.

nlm studio delete <notebook-id> <artifact-id> --confirm

Chat Commands

nlm chat start

Start interactive REPL session.

nlm chat start <notebook-id>

REPL Commands:

  • /sources - Show sources
  • /clear - Clear conversation
  • /help - Show help
  • /exit - Exit session

nlm chat configure

Configure chat goal and response style.

nlm chat configure <notebook-id>

Research Commands

nlm research start

Start research to discover and import sources.

nlm research start "search query" --notebook-id <id>
nlm research start "search query" --notebook-id <id> --mode deep
nlm research start "search query" --notebook-id <id> --source drive

nlm research status

Check research progress.

nlm research status <notebook-id>

nlm research import

Import discovered sources from research.

nlm research import <notebook-id> <task-id>

Alias Commands

nlm alias set

Create an alias for a UUID.

nlm alias set <alias-name> <uuid>

nlm alias list

List all aliases.

nlm alias list

nlm alias get

Resolve an alias to its UUID.

nlm alias get <alias-name>

nlm alias delete

Delete an alias.

nlm alias delete <alias-name>

Configuration Commands

nlm config show

Show current configuration.

nlm config show

nlm config get

Get a specific configuration value.

nlm config get <key>

nlm config set

Update a configuration value.

nlm config set <key> <value>

Utility Commands

nlm --ai

Output comprehensive documentation for AI assistants.

nlm --ai

nlm --install-completion

Install shell tab completion.

nlm --install-completion

nlm --show-completion

Show completion script for manual installation.

nlm --show-completion

Output Format Options

Rich Table (Default)

nlm notebook list

JSON

nlm notebook list --json

Quiet (IDs Only)

nlm notebook list --quiet

Title Format

nlm notebook list --title

Full Details

nlm notebook list --full

URL Format

nlm source list --url

Profile Options

Most commands support --profile flag:

nlm notebook list --profile <profile-name>
nlm audio create <id> --profile <profile-name> --confirm