Noti is a command-line interface (CLI) tool for managing Notion databases directly from your terminal. It allows you to quickly add entries, set databases, and manage your Notion integration without leaving your command line.
To install Noti globally, run: npm install -g noti-fast
After installation, you can use the noti command to interact with Noti.
Before using Noti, you need to authorize it with your Notion account: noti auth
It will open a new browser window for you to authorize the app. If not, you can manually authorize the app by clicking this link and then re-run the noti auth command.
To authorize Noti properly, please follow these steps:
- Go to https://www.notion.so/my-integrations
- Click on "New integration"
- Give your integration a name (e.g., "Curate")
- Select the associated workspace where you want to use this integration
- Click "Save" to create the integration
- On the next page, find and copy the "Internal Integration Secret". You may need to click on "Show" to see it.
- Paste the secret on the terminal when prompted
Initial setup is done. Now you need to connect the page where you want to store your databases.
- Go to your Notion workspace
- Create a new page where you want to store your databases
- Go to the page settings. 3 dot at top right corner.
- Under the Connections section, select - Connnect to.
- Select the integration you created earlier (e.g., "Curate")
Okay, now you're all set! These are just first-time setup if you don't run noti unsync.
noti unsync will remove the authorization.
To set or create a database: noti set-db <your-database-name>
This command will either connect to an existing database with the given name or create a new one.
To add a new entry to the current database: noti add <title> <url> <tag1><
58EF
/p>
i.e. noti add "My Favorite Website" https://www.google.com/ "Google,Search Engine"
To list all databases: noti db
To show all records in the selected database: noti record
To search for a record: noti search <searchText>
To delete a record: noti delete <pageId>
Note:
- Inverted commas are optional if the title contains only one word. For multiple words, you must use inverted commas.
- Tags are optional.
tag1,tag2and"tag1,tag2"are both valid.
Notion is a great tool for organizing your thoughts, ideas, and information. However, navigating through the various pages and databases can be overwhelming. As a developer, I love the terminal, and I hope you do too.
Noti makes the curating process simple and fast directly from your terminal. And as we know, Fast is fun.
Have fun curating!