Skip to content

CLI tool to export Notion pages to PDF files.

License

Notifications You must be signed in to change notification settings

senz/notion-easy-export-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notion Easy Export CLI

CLI tool to export Notion pages to PDF files. Wrapper around notion-easy-export package.

Uses yargs. Ahoi!

Requirements

wkhtmltopdf is required to export PDF files.

nodejs >= 22 is version this tool tested with.

Installation

Using DevContainer

  1. Use VSCode or any other editor that supports DevContainer to open the project in a container.
  2. Wait until postCreateCommand finishes. It will install all the dependencies.
  3. Invoke the command in container shell. See Usage section for more details.

Manual

git clone ...
cd notion-easy-export-cli
npm install

Usage

Usage: index.js <pageId>

Commands:
  index.js single  Single mode. It allows users to generate a separate PDF for e
                   ach of the HTML pages.
  index.js merge   It allows users to generate a single PDF for the entire expor
                   t. It concatenates each of the notion pages smartly to genera
                   te a single document.

Options:
      --help     Show help                                             [boolean]
      --version  Show version number                                   [boolean]
  -t, --token    Notion token_v2                             [string] [required]
  -p, --pageId   Notion page id                              [string] [required]

See notion-easy-export for more details.

About

CLI tool to export Notion pages to PDF files.

Topics

Resources

License

Stars

Watchers

Forks