Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 805 Bytes

README.md

File metadata and controls

44 lines (27 loc) · 805 Bytes

notion-md

Convert and download notion pages command tool.

Notion token

  • Create a notion token

  • Share your page to the integration

  • Then save token as your os environment variable

    export NOTION_TOKEN="{your integration token key}"

Install

  • Use npm or yarn

    $ npm install -g notion-md

Usage

  • Download pages

    notion-md download <your notion page url>
    
    notion-md download <database id>
    
    notion-md download <page id>
    
    
  • Specify the output directory

    notion-md download <your notion page url> --path <output directory>
    
    notion-md download <database id> --path <output directory>
    
    notion-md download <page id> --path <output directory>