diff --git a/plugins/notion-cli/install-guidance.json b/plugins/notion-cli/install-guidance.json index 92ed54659..1594e46a6 100644 --- a/plugins/notion-cli/install-guidance.json +++ b/plugins/notion-cli/install-guidance.json @@ -3,11 +3,12 @@ "binary": "notion", "check": "which notion", "install_steps": [ - "brew install 4ier/tap/notion-cli", + "go install github.com/4ier/notion-cli@latest", + "Link the binary: GOBIN=$(go env GOBIN); GOPATH=$(go env GOPATH); ln -sf \"${GOBIN:-$GOPATH/bin}/notion-cli\" \"${GOBIN:-$GOPATH/bin}/notion\"", "Verify: notion --version", "Authenticate: echo 'ntn_xxxxx' | notion auth login --with-token", "Alternative auth: export NOTION_TOKEN=ntn_xxxxx", "supercli plugins install ./plugins/notion-cli --on-conflict replace --json" ], - "note": "Also available as Go binary from GitHub Releases: https://github.com/4ier/notion-cli/releases. npm: npm install -g @4ier/notion-cli. Token stored in ~/.config/notion-cli/config.json (mode 0600). Auto-detects JSON output when piped to another command." + "note": "Primary install is go install; the resulting binary is named `notion-cli`, so link or rename it as `notion` to use this plugin. Also available via Homebrew (brew install 4ier/tap/notion-cli), as a Go binary from GitHub Releases (https://github.com/4ier/notion-cli/releases), or via npm (npm install -g @4ier/notion-cli). Token stored in ~/.config/notion-cli/config.json (mode 0600). Auto-detects JSON output when piped to another command." } diff --git a/plugins/notion-cli/plugin.json b/plugins/notion-cli/plugin.json index 4f355bbad..c69791e72 100644 --- a/plugins/notion-cli/plugin.json +++ b/plugins/notion-cli/plugin.json @@ -11,7 +11,8 @@ "binary": "notion", "check": "which notion", "install_steps": [ - "brew install 4ier/tap/notion-cli", + "go install github.com/4ier/notion-cli@latest", + "Link the binary: GOBIN=$(go env GOBIN); GOPATH=$(go env GOPATH); ln -sf \"${GOBIN:-$GOPATH/bin}/notion-cli\" \"${GOBIN:-$GOPATH/bin}/notion\"", "Verify: notion --version", "Authenticate: echo 'ntn_xxxxx' | notion auth login --with-token", "supercli plugins install ./plugins/notion-cli --on-conflict replace --json" @@ -30,7 +31,7 @@ "adapterConfig": { "command": "notion", "baseArgs": ["--version"], - "missingDependencyHelp": "Install notion-cli: brew install 4ier/tap/notion-cli" + "missingDependencyHelp": "Install notion-cli: go install github.com/4ier/notion-cli@latest (binary will be notion-cli; link/rename it to notion) or brew install 4ier/tap/notion-cli" }, "args": [] }, @@ -230,7 +231,7 @@ "adapterConfig": { "command": "notion", "passthrough": true, - "missingDependencyHelp": "Install notion-cli: brew install 4ier/tap/notion-cli. Authenticate: echo 'ntn_xxxx' | notion auth login --with-token" + "missingDependencyHelp": "Install notion-cli: go install github.com/4ier/notion-cli@latest (binary will be notion-cli; link/rename it to notion) or brew install 4ier/tap/notion-cli. Authenticate: echo 'ntn_xxxx' | notion auth login --with-token" }, "args": [] } diff --git a/plugins/notion-cli/skills/quickstart/SKILL.md b/plugins/notion-cli/skills/quickstart/SKILL.md index 7c2db61d8..cafa0043f 100644 --- a/plugins/notion-cli/skills/quickstart/SKILL.md +++ b/plugins/notion-cli/skills/quickstart/SKILL.md @@ -58,11 +58,26 @@ export NOTION_TOKEN=ntn_xxxxx ## Installation +`go install` builds a binary named `notion-cli`; link it as `notion` so the plugin commands work: + +```bash +go install github.com/4ier/notion-cli@latest +GOBIN=$(go env GOBIN); GOPATH=$(go env GOPATH); ln -sf "${GOBIN:-$GOPATH/bin}/notion-cli" "${GOBIN:-$GOPATH/bin}/notion" +``` + +Or install with Homebrew: + ```bash brew install 4ier/tap/notion-cli ``` -Or download binary from [GitHub Releases](https://github.com/4ier/notion-cli/releases). +Or install with npm: + +```bash +npm install -g @4ier/notion-cli +``` + +Or download a binary from [GitHub Releases](https://github.com/4ier/notion-cli/releases). ## Key Features - **Agent-friendly**: JSON output auto-detected when piped, schema-aware, URL or ID support