Skip to content

Add something to your notion TODO list from the command line

License

Notifications You must be signed in to change notification settings

kevteg/notion-command-line-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notion-command-line-todo

Add something to your notion TODO list from the command line

A TODO page on notion and the terminal with the TODO command on it

Seting up the notion page

Notion share modal

  • Copy the page ID:

Example image of the page ID

Running using docker

  • Create the image and tag it:
> docker build . -t notion 
  • Run the command, make sure you have the integration token and the page ID
> docker run -it -v $(pwd):/usr/src/app notion python pytodo.py -t INTEGRATION_TOKEN -p PAGE_ID Buy almond milk
  • Create an alias, (the command above is a little ugly, isn't it? So I'd rather create an alias on the bashrc/zshrc/equivalent):
...
alias todo="docker run -it -v /Your-Directory/notion-command-line-todo:/usr/src/app notion python pytodo.py -t INTEGRATION_TOKEN -p PAGE_ID"

Then you can just do this:

> todo buy almond milk

Available commands

Add a new entry: (Default)

> todo buy brocoli 

List things on the notion page:

You will see all the TODO blocks on your notion page

> todo -l
> [X] Take out trash
  [] Buy chocolate
  [] Buy broccoli
  [] Run a 5K marathon

About

Add something to your notion TODO list from the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published