notion-cli-tool-0.1.0 is not a library.
notion-cli
A fast and simple Notion CLI written in Rust. Manage your Notion pages and databases from the terminal.
Features
- 🔍 Search - Find pages and databases instantly
- 📖 Read - View page content with syntax highlighting
- ✏️ Create - Create new pages with content
- 📝 Append - Add text, code blocks, headings, lists, bookmarks
- 🔄 Update - Modify titles and icons
- 🗃️ Query - Filter and sort database entries
- 📦 Move - Relocate pages to different parents
- ⚡ Fast - Written in Rust, minimal overhead
- 🔄 Auto-retry - Handles rate limits automatically
Installation
From crates.io (Recommended)
From source
Requirements
- Rust 1.70+ (for building from source)
- Notion Integration Token
Quick Start
1. Get your API key
- Go to Notion Integrations
- Click "New integration"
- Copy the "Internal Integration Token"
- Important: Share your pages with the integration!
2. Configure
# Interactive setup (recommended)
# Or set environment variable
# Or create config file manually
3. Start using
Configuration
API key is resolved in this order:
--api-keycommand line optionNOTION_API_KEYenvironment variable~/.config/notion-cli/config.toml
# View current config
# Update config
Usage
Search
Read
Create
Append Content
# Text
# Code block
# Heading
# Bulleted list
# Bookmark
# Divider
Update
Delete
Query Database
# All entries
# With filter
# With sort
# Limit results
Filter format: PropertyName=value or PropertyName:type=value
Supported types: title, rich_text, select, checkbox, number
Move Page
Other Commands
Global Options
API Version
Uses Notion API 2025-09-03 (latest).
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT License - see LICENSE for details.