0.0.0-alpha.1 • Published 2 years ago
notion-toolkit v0.0.0-alpha.1
Notion Toolkit
Some handy tools for working with Notion including both a command-line utility and a NodeJS API.
Command Line Usage
Authentication
The command-line uses a token, which you can set with the NOTION_TOKEN
environment variable or using the --token
(-t
for short) flag.
$ notion-toolkit help
Help utility surfacing documentation and options.
To dig into a particular command/namespace, you can do that with $ notion-toolkit help [command]
.
$ notion-toolkit database prune-empty [databaseId]
A utility for cleaning empty records from a database.
$ notion-toolkit database new-page-from-template [databaseId] [templateId]
A utility for creating new records from a template in a database.
Use-cases
- Creating pages within databases from a template.
- Removing empty pages from databases.
0.0.0-alpha.1
2 years ago