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 -f/--force flags, CLI reference for LLMs, update messaging
- Add -f/--force flag to delete, delete-scope, and edit commands to skip
confirmation prompts (useful for scripts and AI agents)
- Remove "Results for:" line from search output for cleaner display
- Add standalone CLI reference markdown (decisionnode-cli.md) for LLMs
- Update "Two interfaces" messaging: CLI is for you and your AI,
MCP server is for your AI and you
- Add CLI reference links to docs sidebar and footer
console.log(` ${c.cyan}edit${c.reset}${c.gray}<id>${c.reset}${c.dim}Edit a decision${c.reset}`);
2053
+
console.log(` ${c.cyan}edit${c.reset}${c.gray}<id>${c.reset}${c.gray}[-f]${c.reset}${c.dim}Edit a decision (use -f to skip global confirmation)${c.reset}`);
2042
2054
console.log(` ${c.cyan}deprecate${c.reset}${c.gray}<id>${c.reset}${c.dim}Hide from search (reversible)${c.reset}`);
2043
2055
console.log(` ${c.cyan}activate${c.reset}${c.gray}<id>${c.reset}${c.dim}Re-activate a deprecated decision${c.reset}`);
> Quick reference for AI agents using the `decide` CLI directly (not via MCP).
4
+
5
+
---
6
+
7
+
## When to use the CLI vs MCP
8
+
9
+
Use the CLI when you need to run shell commands directly (e.g., via a `Bash` tool). Use MCP tools when they're available in your tool list. Both access the same data.
Copy file name to clipboardExpand all lines: website/src/pages/docs/CliReferencePage.tsx
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,8 @@ export default function CliReferencePage() {
41
41
desc: "Semantically search decisions using vector embeddings. Only returns active decisions — deprecated decisions are excluded. Automatically includes global decisions. Requires a Gemini API key."
42
42
},
43
43
{
44
-
cmd: "decide edit <id>",
45
-
desc: "Interactively edit a decision's text, rationale, and constraints. Supports global: prefix."
44
+
cmd: "decide edit <id> [-f]",
45
+
desc: "Interactively edit a decision's text, rationale, and constraints. Supports global: prefix. Use -f or --force to skip global decision confirmation."
46
46
},
47
47
{
48
48
cmd: "decide deprecate <id>",
@@ -53,12 +53,12 @@ export default function CliReferencePage() {
53
53
desc: "Re-activate a deprecated decision. Immediately searchable again since the embedding is preserved. Supports global: prefix."
54
54
},
55
55
{
56
-
cmd: "decide delete <id>",
57
-
desc: "Permanently delete a decision and its embedding. Supports global: prefix. Consider deprecating instead if you might want it back."
56
+
cmd: "decide delete <id> [-f]",
57
+
desc: "Permanently delete a decision and its embedding. Supports global: prefix. Use -f or --force to skip confirmation. Consider deprecating instead if you might want it back."
58
58
},
59
59
{
60
-
cmd: "decide delete-scope <scope>",
61
-
desc: "Delete an entire scope and all decisions within it."
60
+
cmd: "decide delete-scope <scope> [-f]",
61
+
desc: "Delete an entire scope and all decisions within it. Use -f or --force to skip confirmation."
<pclassName="text-zinc-200 font-semibold mb-2">CLI — for you</p>
106
+
<pclassName="text-zinc-200 font-semibold mb-2">CLI — for you and your AI</p>
107
107
<pclassName="text-sm">The <code>decide</code> command. Use it to set up projects, add decisions, search, export/import, check embedding health, and configure settings. Supports interactive prompts or <Linkto="/docs/cli#core-commands"className="text-primary-400 hover:underline">one-command inline flags</Link>.</p>
<pclassName="text-zinc-200 font-semibold mb-2">MCP server — for your AI</p>
110
+
<pclassName="text-zinc-200 font-semibold mb-2">MCP server — for your AI and you</p>
111
111
<pclassName="text-sm">The <code>decide-mcp</code> binary. Connect it once (e.g. <code>claude mcp add decisionnode -s user decide-mcp</code> for Claude Code) and the AI calls tools like <code>search_decisions</code> and <code>add_decision</code> over <ahref="https://modelcontextprotocol.io"className="text-primary-400 hover:underline"target="_blank"rel="noopener noreferrer">MCP</a>. Works with Claude Code, Cursor, Windsurf, Antigravity, or any MCP-compliant tool.</p>
0 commit comments