mirror of
https://github.com/4ier/notion-cli.git
synced 2026-09-14 20:17:00 +08:00
c66e1d34bb
30 commands covering the entire Notion API: - auth: login, status, logout - search: full-text search with type filter - page: view, list, create, delete, move, open, set, props - db: list, view, query (filter/sort), create, update, add, open - block: list, get, append, update, delete - comment: list, add - user: me, list, get - file: list, upload - api: raw escape hatch for any endpoint Features: - Auto-detect TTY: pretty tables in terminal, JSON when piped - Full Notion IDs in all output (no truncation) - URL-to-ID resolution (accepts notion.so URLs everywhere) - Filter syntax for db query: Status=Done, Date>=2026-01-01, Name~=keyword - Sort syntax: Date:desc, Name:asc - Property type auto-detection from schema - Debug mode (--debug) for API troubleshooting - Shell completion via cobra 3,239 lines of Go. Single binary. Zero dependencies at runtime.
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
MIT License
|
|
|
|
Copyright (c) 2026 Fourier
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|