Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

```
notion auth login # Interactive: open browser → OAuth flow
notion auth login --token # Paste an integration token directly
notion auth login --with-token # Read an integration token from stdin
notion auth logout
notion auth status # Show current auth state
notion auth switch # Switch between multiple workspaces
Expand Down Expand Up @@ -145,7 +145,6 @@ Like `gh api` — for anything the CLI doesn't cover yet.
```
--format json|table|text|md # Output format (default: auto-detect tty)
--workspace <name> # Use specific workspace
--token <token> # Override auth token
--no-cache # Skip local cache
--debug # Show HTTP requests/responses
--quiet # Minimal output
Expand Down Expand Up @@ -180,7 +179,7 @@ Last edited: 2 hours ago by @alice
## MVP Scope (v0.1.0)

### Must have:
1. `notion auth login --token` + `NOTION_TOKEN` env var
1. `notion auth login --with-token` + `NOTION_TOKEN` env var
2. `notion search`
3. `notion page view` + `notion page list`
4. `notion page create` (simple: title + optional text body)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Download from [GitHub Releases](https://github.com/4ier/notion-cli/releases) —

```sh
# Authenticate
notion auth login --token ntn_xxxxx
echo "ntn_xxxxx" | notion auth login --with-token

# Search your workspace
notion search "meeting notes"
Expand All @@ -82,7 +82,7 @@ notion api GET /v1/users/me

| Group | Commands | Description |
|-------|----------|-------------|
| **auth** | `login` `logout` `status` `doctor` | Authentication & diagnostics |
| **auth** | `login` `logout` `status` `switch` `doctor` | Authentication & diagnostics |
| **search** | `search` | Search pages and databases |
| **page** | `view` `list` `create` `delete` `restore` `move` `open` `set` `props` `link` `unlink` | Full page lifecycle |
| **db** | `list` `view` `query` `create` `update` `add` `add-bulk` `open` | Database CRUD + query |
Expand Down Expand Up @@ -170,7 +170,7 @@ npx skills add 4ier/notion-cli

```sh
# Token is stored in ~/.config/notion-cli/config.json (mode 0600)
notion auth login --token ntn_xxxxx
echo "ntn_xxxxx" | notion auth login --with-token

# Or use environment variable
export NOTION_TOKEN=ntn_xxxxx
Expand Down
Loading