@creator-notes/cli 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "creator-notes-cli",
3
+ "version": "0.2.2",
4
+ "description": "CreatorNotes CLI — create notes, build canvases, search knowledge from the terminal",
5
+ "author": {
6
+ "name": "CreatorNotes",
7
+ "url": "https://creatornotes.app"
8
+ },
9
+ "repository": "https://github.com/creatornotes/pm-notes",
10
+ "license": "MIT",
11
+ "keywords": ["cli", "notes", "productivity", "pm", "canvas"],
12
+ "skills": "./skills/"
13
+ }
package/README.md ADDED
@@ -0,0 +1,208 @@
1
+ # @creator-notes/cli
2
+
3
+ CLI for [CreatorNotes](https://creatornotes.app) — create notes, build canvases, search knowledge, and manage workspaces from the terminal.
4
+
5
+ Works as a standalone CLI (`cn`) and as an MCP server (`cn-mcp`) for AI assistants like Claude.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @creator-notes/cli
11
+ ```
12
+
13
+ ## Quick Start
14
+
15
+ ```bash
16
+ cn init # Interactive setup (auth + workspace)
17
+ cn notes list # Browse your notes
18
+ cn notes create --markdown-file ./note.md --type "Meeting"
19
+ cn search semantic "onboarding flow"
20
+ ```
21
+
22
+ ## Commands
23
+
24
+ | Command | Alias | Description |
25
+ |---------|-------|-------------|
26
+ | `cn init` | | Interactive setup wizard |
27
+ | `cn auth login` | | Authenticate via browser or API token |
28
+ | `cn notes list\|get\|create\|update\|delete` | `cn n` | Manage notes |
29
+ | `cn notes bulk-create` | | Create multiple interlinked notes atomically |
30
+ | `cn versions list\|create` | `cn v` | Note version history |
31
+ | `cn canvas list\|get\|create\|delete` | `cn c` | Manage canvases |
32
+ | `cn canvas add-node\|add-text\|add-list\|add-link` | | Add nodes to canvas |
33
+ | `cn canvas bulk-add\|bulk-move\|bulk-remove` | | Bulk canvas operations |
34
+ | `cn canvas from-template` | | Create canvas from template |
35
+ | `cn search semantic` | `cn s` | Semantic search across notes |
36
+ | `cn timeline` | `cn tl` | Recent activity feed |
37
+ | `cn relationships list` | `cn rel` | Note relationships |
38
+ | `cn types list\|create\|update` | `cn t` | Manage note types (supertags) |
39
+ | `cn memory query\|facts\|entities` | `cn mem` | Query workspace knowledge |
40
+ | `cn workspace list\|select\|current` | | Workspace management |
41
+ | `cn config get-server\|set-server` | | CLI configuration |
42
+ | `cn mcp setup` | | Print MCP server config for Claude |
43
+
44
+ ## Global Flags
45
+
46
+ ```
47
+ --json Output raw JSON (for piping / scripting)
48
+ -q, --quiet Minimal output (IDs only)
49
+ -w, --workspace <id> Override active workspace
50
+ --server <url> Override server URL
51
+ ```
52
+
53
+ ## Authentication
54
+
55
+ ```bash
56
+ # Browser-based OAuth (recommended)
57
+ cn auth login
58
+
59
+ # API token (CI / non-interactive)
60
+ cn auth login --token <key>
61
+
62
+ # Check session
63
+ cn auth status
64
+ ```
65
+
66
+ ## Notes
67
+
68
+ ```bash
69
+ # Create from markdown file
70
+ cn notes create --markdown-file ./standup.md --title "Daily Standup" --type "Meeting"
71
+
72
+ # Create with tags
73
+ cn notes create --markdown "Quick idea" --type "Insight" --tags "ux,onboarding"
74
+
75
+ # List with filters
76
+ cn notes list --type Meeting --pinned --limit 10
77
+
78
+ # Get by display ID
79
+ cn notes get MEETING-42
80
+
81
+ # Update metadata
82
+ cn notes update MEETING-42 --pin --tags "important,q2"
83
+ ```
84
+
85
+ ### Content Updates
86
+
87
+ Content and metadata are separate operations:
88
+
89
+ ```bash
90
+ # Update content -> create a new version
91
+ cn versions create MEETING-42 --description "Added action items" --markdown-file ./updated.md
92
+
93
+ # Update metadata (title, tags, pin, archive)
94
+ cn notes update MEETING-42 --title "New Title"
95
+ ```
96
+
97
+ ## Canvas
98
+
99
+ Values in `<angle-brackets>` are placeholders — replace them with real IDs from your workspace.
100
+
101
+ ```bash
102
+ # Create a canvas and add notes
103
+ cn canvas create "Sprint Review"
104
+ cn canvas bulk-add <canvasId> --notes '[{"noteId":"NOTE-1","x":100,"y":100},{"noteId":"NOTE-2","x":500,"y":100}]'
105
+ cn canvas add-edge <canvasId> --source <nodeId> --target <nodeId> --label "blocks"
106
+
107
+ # Create from template
108
+ cn canvas from-template sprint-retrospective --populate
109
+ ```
110
+
111
+ Available templates: `sprint-retrospective`, `swot-analysis`, `kanban-board`, `feature-prioritization`, `meeting-notes`, `product-roadmap`
112
+
113
+ ## AI Integration
114
+
115
+ ### Claude Code (Plugin — recommended)
116
+
117
+ This package ships as a Claude Code plugin. Once installed, Claude learns the full `cn` command reference and can operate your workspace autonomously.
118
+
119
+ ```bash
120
+ # Inside Claude Code, run:
121
+ /plugin install @creator-notes/cli
122
+ ```
123
+
124
+ That's it — the `cn` skill is now available in every conversation. Claude will use it whenever you ask about notes, canvases, or workspace tasks.
125
+
126
+ ### Claude Desktop (MCP Server)
127
+
128
+ Add CreatorNotes as a tool server so Claude Desktop can read and write your notes directly.
129
+
130
+ **1. Authenticate and select a workspace:**
131
+
132
+ ```bash
133
+ cn init
134
+ ```
135
+
136
+ **2. Generate the MCP config:**
137
+
138
+ ```bash
139
+ cn mcp setup --json
140
+ ```
141
+
142
+ **3. Copy the output into your Claude Desktop config file:**
143
+
144
+ | OS | Config path |
145
+ |----|-------------|
146
+ | macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
147
+ | Windows | `%APPDATA%\Claude\claude_desktop_config.json` |
148
+ | Linux | `~/.config/Claude/claude_desktop_config.json` |
149
+
150
+ The output looks like this — merge it into your existing config:
151
+
152
+ ```json
153
+ {
154
+ "mcpServers": {
155
+ "cn": {
156
+ "command": "node",
157
+ "args": ["/path/to/dist/mcp-server.js"],
158
+ "env": {
159
+ "CN_SERVER": "https://creatornotes.app",
160
+ "CN_TOKEN": "<your-token>",
161
+ "CN_WORKSPACE": "<your-workspace-id>"
162
+ }
163
+ }
164
+ }
165
+ }
166
+ ```
167
+
168
+ **4. Restart Claude Desktop.** The `cn` tools will appear in the tool picker.
169
+
170
+ ### Manual Skill Install
171
+
172
+ If you're not using the plugin system, you can copy the skill file directly:
173
+
174
+ ```bash
175
+ # Copy into your project
176
+ mkdir -p .claude/skills/cn
177
+ cp $(npm root -g)/@creator-notes/cli/skills/cn/SKILL.md .claude/skills/cn/SKILL.md
178
+
179
+ # Or into your user-level skills (available everywhere)
180
+ mkdir -p ~/.claude/skills/cn
181
+ cp $(npm root -g)/@creator-notes/cli/skills/cn/SKILL.md ~/.claude/skills/cn/SKILL.md
182
+ ```
183
+
184
+ ## Scripting
185
+
186
+ ```bash
187
+ # Chain commands with quiet mode
188
+ NOTE_ID=$(cn notes create --markdown "Quick note" --type "Note" -q)
189
+ cn canvas add-node <canvasId> --note "$NOTE_ID"
190
+
191
+ # JSON output for parsing
192
+ cn notes list --json | jq '.[0].displayId'
193
+
194
+ # Bulk create interlinked notes with @key placeholders
195
+ cn notes bulk-create --notes '[
196
+ {"key":"A","title":"Problem","type":"PainPoint","markdownFile":"./problem.md"},
197
+ {"key":"B","title":"Solution","type":"Insight","markdownFile":"./solution.md"}
198
+ ]' --json
199
+ ```
200
+
201
+ ## Requirements
202
+
203
+ - Node.js >= 18
204
+ - A [CreatorNotes](https://creatornotes.app) account
205
+
206
+ ## License
207
+
208
+ MIT