You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add --output/-o flag for all commands, bump to v6.2.0
Add --output <format> string flag as alternative to boolean flags (--json,
--csv, etc). Supports: json, compact-json, csv, markdown, table, raw, pretty.
Invalid values return structured error envelope with suggestions.
Also fixes publish workflow to report platform package failures instead of
silently ignoring them with || true.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -107,12 +107,20 @@ jobs:
107
107
env:
108
108
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
109
109
run: |
110
+
FAILED=0
110
111
for pkg in npm/notion-cli-*/; do
111
112
echo "Publishing $pkg..."
112
113
cd "$pkg"
113
-
npm publish --access public || true
114
+
if ! npm publish --access public; then
115
+
echo "::warning::Failed to publish $pkg"
116
+
FAILED=1
117
+
fi
114
118
cd ../..
115
119
done
120
+
if [ "$FAILED" -eq 1 ]; then
121
+
echo "::error::One or more platform packages failed to publish. Check that the NPM_TOKEN has write access to the @coastal-programs scope and that the token owner is an org member with publish permissions."
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
## [6.2.0] - 2026-03-02
11
+
12
+
### Added
13
+
-**`--output` / `-o` flag**: All commands now accept `--output <format>` (or `-o <format>`) as an alternative to boolean flags like `--json`, `--csv`, etc. Valid formats: `json`, `compact-json`, `csv`, `markdown`, `table`, `raw`, `pretty`. Invalid values return a structured error with suggestions.
14
+
-**Platform binary packages on npm**: First publish of all 5 platform-specific packages (`@coastal-programs/notion-cli-darwin-arm64`, `-darwin-x64`, `-linux-x64`, `-linux-arm64`, `-win32-x64`). Users on supported platforms now get a native binary via npm's optional dependency resolution instead of relying on the postinstall GitHub Release fallback.
15
+
16
+
### Fixed
17
+
-**Publish workflow**: Platform package publish failures are no longer silently ignored (`|| true` removed). The workflow now reports explicit errors with guidance when platform packages fail to publish.
Copy file name to clipboardExpand all lines: package.json
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@coastal-programs/notion-cli",
3
-
"version": "6.1.2",
3
+
"version": "6.2.0",
4
4
"description": "Unofficial Notion CLI optimized for automation and AI agents. Single-binary Go implementation with intelligent caching, retry logic, structured error handling.",
0 commit comments