{"id":268,"date":"2026-07-09T19:21:34","date_gmt":"2026-07-09T11:21:34","guid":{"rendered":"http:\/\/www.tantan.ink\/index.php\/2026\/07\/09\/officecli-%e4%b8%8a%e6%89%8b%ef%bc%9a%e8%ae%a9-ai-%e4%b8%80%e8%a1%8c%e4%bb%a3%e7%a0%81%e6%90%9e%e5%ae%9a-word-excel-ppt%ef%bc%8c%e5%8d%95%e4%ba%8c%e8%bf%9b%e5%88%b6%e5%bc%80%e6%ba%90%ef%bc%8capache-2\/"},"modified":"2026-07-09T19:30:37","modified_gmt":"2026-07-09T11:30:37","slug":"officecli-%e4%b8%8a%e6%89%8b%ef%bc%9a%e8%ae%a9-ai-%e4%b8%80%e8%a1%8c%e4%bb%a3%e7%a0%81%e6%90%9e%e5%ae%9a-word-excel-ppt%ef%bc%8c%e5%8d%95%e4%ba%8c%e8%bf%9b%e5%88%b6%e5%bc%80%e6%ba%90%ef%bc%8capache-2","status":"publish","type":"post","link":"https:\/\/www.tantan.ink\/index.php\/2026\/07\/09\/officecli-%e4%b8%8a%e6%89%8b%ef%bc%9a%e8%ae%a9-ai-%e4%b8%80%e8%a1%8c%e4%bb%a3%e7%a0%81%e6%90%9e%e5%ae%9a-word-excel-ppt%ef%bc%8c%e5%8d%95%e4%ba%8c%e8%bf%9b%e5%88%b6%e5%bc%80%e6%ba%90%ef%bc%8capache-2\/","title":{"rendered":"OfficeCLI\uff1aAI \u4e00\u884c\u4ee3\u7801\u641e\u5b9a Office \u6587\u6863"},"content":{"rendered":"<p><!--more--><\/p>\n<p>\u73b0\u5728\u8ba9 AI \u5e2e\u4f60\u6539 Word\u3001\u8c03 Excel \u516c\u5f0f\u3001\u505a PPT\uff0c\u5e38\u89c1\u505a\u6cd5\u662f\u8ba9 AI \u5199 Python \u811a\u672c\u8c03 <code>python-docx<\/code>\u3001<code>openpyxl<\/code>\u3001<code>python-pptx<\/code>\uff0c\u518d\u628a\u811a\u672c\u8dd1\u8d77\u6765\u3002\u4e00\u6bb5\u8bdd\u6539 5 \u5206\u949f\u3001\u590d\u6742\u7248\u5f0f\u8dd1\u534a\u5c0f\u65f6\u3001\u8fd8\u7ecf\u5e38\u628a\u6837\u5f0f\u8868\u641e\u70b8\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/iOfficeAI\/OfficeCLI\">OfficeCLI<\/a>\uff08<code>iOfficeAI\/OfficeCLI<\/code>\uff09\u60f3\u6362\u6761\u8def\uff1a\u628a\u6574\u4e2a Office \u5957\u4ef6\u585e\u8fdb<strong>\u4e00\u4e2a 80MB \u5de6\u53f3\u7684\u5355\u4e8c\u8fdb\u5236<\/strong>\uff0c\u901a\u8fc7 CLI \u66b4\u9732\u7ed9 AI \u4ee3\u7406\u8c03\u7528\uff0c\u96f6 Python \u73af\u5883\u3001\u96f6 Office \u5b89\u88c5\u3001\u96f6 LibreOffice \u515c\u5e95\u3002Word\/Excel\/PPT \u4e09\u4ef6\u5957\u5168\u8986\u76d6\uff0cApache 2.0 \u5f00\u6e90\uff0c\u8de8 macOS\/Linux\/Windows\/ARM64 \u5168\u5e73\u53f0\u3002<\/p>\n<p>7 \u6708 8 \u65e5\u53d1\u5e03 v1.0.132\uff0c\u4eca\u5929 GitHub Trending \u6da8 1700+ star\uff0cStar \u6570\u8fc7\u4e07\uff0c\u662f\u4eca\u5e74 CLI \u5de5\u5177\u91cc&#8221;\u6740\u51fa\u9ed1\u9a6c&#8221;\u7684\u4e00\u4e2a\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/officecli-ppt-process.jpg\" alt=\"OfficeCLI \u901a\u8fc7 AionUi GUI \u521b\u5efa PowerPoint \u6f14\u793a\u6587\u7a3f\" style=\"max-width:100%;height:auto;display:block;margin:20px auto;border-radius:6px\" \/><\/p>\n<h2>\u662f\u4ec0\u4e48<\/h2>\n<p>OfficeCLI \u662f <strong>iOfficeAI \u56e2\u961f<\/strong>\u5f00\u6e90\u7684\u547d\u4ee4\u884c Office \u5957\u4ef6\uff0c\u81ea\u79f0&#8221;\u4e16\u754c\u4e0a\u7b2c\u4e00\u4e2a\u4e13\u4e3a AI \u4ee3\u7406\u8bbe\u8ba1\u7684 Office \u5957\u4ef6&#8221;\u3002\u6838\u5fc3\u7406\u5ff5\u53ea\u6709\u4e00\u53e5\uff1a<strong>\u7ed9\u4efb\u4f55 AI \u4ee3\u7406\u4e00\u884c\u4ee3\u7801\u5c31\u80fd\u5b8c\u5168\u63a7\u5236 Word\/Excel\/PPT<\/strong>\u3002<\/p>\n<p>\u5173\u952e\u4e0d\u662f&#8221;Office \u5957\u4ef6&#8221;\u2014\u2014LibreOffice \u548c OpenXML SDK \u65e9\u5c31\u80fd\u547d\u4ee4\u884c\u5904\u7406 Office \u6587\u6863\u3002OfficeCLI \u89e3\u51b3\u7684\u662f\u4e00\u4e2a\u66f4\u5177\u4f53\u7684\u95ee\u9898\uff1a<strong>AI \u4ee3\u7406\u600e\u4e48\u53ef\u9760\u5730&#8221;\u770b\u89c1\u3001\u4fee\u6539\u3001\u9a8c\u8bc1&#8221;\u4e00\u4e2a Office \u6587\u4ef6<\/strong>\u3002<\/p>\n<p>\u4f20\u7edf\u65b9\u5f0f AI \u53ea\u80fd&#8221;\u8bfb\u5199 XML \u6e90\u7801&#8221;\uff0c\u4e0d\u77e5\u9053\u6e32\u67d3\u51fa\u6765\u957f\u4ec0\u4e48\u6837\uff0c\u4e0d\u77e5\u9053\u6539\u5b8c\u516c\u5f0f\u5bf9\u4e0d\u5bf9\u3002OfficeCLI \u63d0\u4f9b\u4e86\u4e09\u5c42\u67b6\u6784\uff1a<\/p>\n<ul>\n<li><strong>L1 \u8bfb\u53d6\u5c42<\/strong>\uff1a<code>view<\/code> \u547d\u4ee4\u652f\u6301 text\/outline\/html\/screenshot\/watch \u4e94\u79cd\u8f93\u51fa\u6a21\u5f0f\u3002AI \u53ef\u4ee5\u8ba9\u6587\u4ef6\u5728\u6d4f\u89c8\u5668\u91cc\u5b9e\u65f6\u9884\u89c8\uff0c\u770b\u4e00\u773c\u5c31\u77e5\u9053\u7248\u5f0f\u5bf9\u4e0d\u5bf9\u3002<\/li>\n<li><strong>L2 DOM \u5c42<\/strong>\uff1a<code>get<\/code>\u3001<code>query<\/code>\u3001<code>set<\/code>\u3001<code>add<\/code>\u3001<code>remove<\/code>\u3001<code>move<\/code>\u3001<code>swap<\/code> \u4e00\u5957\u547d\u4ee4\uff0c\u8def\u5f84\u5f0f\uff08XPath \u98ce\u683c\uff09\u5b9a\u4f4d\u6587\u6863\u4e2d\u7684\u4efb\u610f\u5143\u7d20\u3002\u8fd4\u56de\u7ed3\u6784\u5316 JSON\uff0c\u4e0d\u662f\u5927\u6bb5 XML \u6587\u672c\u3002<\/li>\n<li><strong>L3 \u539f\u59cb XML \u5c42<\/strong>\uff1a<code>raw<\/code>\u3001<code>raw-set<\/code>\u3001<code>add-part<\/code>\u3001<code>validate<\/code> \u76f4\u63a5\u64cd\u4f5c OOXML \u515c\u5e95\u3002AI \u5e72\u4e0d\u4e86\u7684\u810f\u6d3b\uff0c\u5f3a\u884c\u4e0a XML \u4e5f\u884c\u3002<\/li>\n<\/ul>\n<p>\u6700\u6709\u610f\u601d\u7684\u662f\u5b83\u5185\u7f6e\u7684<strong>\u9ad8\u4fdd\u771f HTML \u6e32\u67d3\u5f15\u64ce<\/strong>\u2014\u2014\u4ece\u96f6\u81ea\u7814\uff0c\u628a OOXML \u6587\u6863\u91cc\u7684\u5f62\u72b6\u3001\u56fe\u8868\u3001\u516c\u5f0f\uff08OMML \u2192 LaTeX\uff0c\u7528 KaTeX \u6e32\u67d3\uff09\u30013D <code>.glb<\/code> \u6a21\u578b\uff08Three.js \u6e32\u67d3\uff09\u3001Mermaid \u56fe\u8868\u90fd\u6620\u5c04\u5230\u6d4f\u89c8\u5668\u91cc\u3002<code>officecli watch deck.pptx<\/code> \u542f\u52a8\u4e00\u4e2a\u5b9e\u65f6\u9884\u89c8\u670d\u52a1\u5668\uff0cAI \u6539\u4e00\u884c\u547d\u4ee4\uff0c\u6d4f\u89c8\u5668\u81ea\u52a8\u5237\u65b0\uff0c<strong>\u5f62\u6210&#8221;\u6e32\u67d3\u2192\u89c2\u5bdf\u2192\u4fee\u590d&#8221;\u95ed\u73af<\/strong>\u2014\u2014\u8fd9\u662f LibreOffice headless \u6a21\u5f0f\u5b8c\u5168\u505a\u4e0d\u5230\u7684\u4f53\u9a8c\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/officecli-demo-ppt.png\" alt=\"OfficeCLI PPT \u8bbe\u8ba1\u6f14\u793a - designwhatmovesyou\" style=\"max-width:100%;height:auto;display:block;margin:20px auto;border-radius:6px\" \/><\/p>\n<h2>\u4e3a\u4ec0\u4e48\u503c\u5f97\u5173\u6ce8<\/h2>\n<h3>1. \u89e3\u51b3\u4e86 AI \u64cd\u63a7 Office \u7684\u771f\u5b9e\u75db\u70b9<\/h3>\n<p>\u4f60\u8ba9 Claude Code \u6539\u4e00\u4efd Word \u5468\u62a5\uff0c\u6700\u5e38\u89c1\u7684\u7ffb\u8f66\u573a\u666f\uff1a<\/p>\n<ul>\n<li>AI \u6539\u5b8c\u4e2d\u6587\u6807\u70b9\u53d8\u82f1\u6587\uff0c\u9875\u8fb9\u8ddd\u88ab\u91cd\u7f6e\uff0c\u6807\u9898\u6837\u5f0f\u4e22\u5931<\/li>\n<li>AI \u751f\u6210\u7684 PPT \u516c\u5f0f\u662f LaTeX \u6e90\u7801\uff0c\u4e0d\u662f Word \u539f\u751f OMML \u516c\u5f0f\uff0cPowerPoint \u6253\u5f00\u662f\u4e71\u7801<\/li>\n<li>AI \u6539\u5b8c\u7684 Excel \u516c\u5f0f\u6ca1\u81ea\u52a8\u6c42\u503c\uff0c\u53d1\u7ed9\u8001\u677f\u770b\u5230\u7684\u662f <code>#VALUE!<\/code><\/li>\n<\/ul>\n<p>OfficeCLI \u7684\u89e3\u6cd5\u662f<strong>\u7ed9 AI \u4e00\u4e2a&#8221;\u770b\u5f97\u89c1\u7ed3\u679c&#8221;\u7684\u5de5\u4f5c\u6d41<\/strong>\uff1a<\/p>\n<pre><code># AI \u53ef\u4ee5\u8fd9\u6837\u5de5\u4f5c\nofficecli view report.docx html        # \u6e32\u67d3\u5f53\u524d\u6587\u6863\u5230\u6d4f\u89c8\u5668\nofficecli set report.docx \/body\/p[1]\/r[1] --prop bold=true   # \u6539\u7b2c\u4e00\u4e2a\u6bb5\u843d\u7b2c\u4e00\u6bb5\u4e3a\u52a0\u7c97\nofficecli view report.docx screenshot  # \u622a\u56fe\u770b\u6548\u679c\nofficecli validate report.docx         # \u9a8c\u8bc1 OOXML \u7ed3\u6784\u5408\u6cd5\u6027<\/code><\/pre>\n<p>\u6bcf\u4e2a\u547d\u4ee4\u90fd\u652f\u6301 <code>--json<\/code> \u8f93\u51fa\uff0cSchema \u7a33\u5b9a\uff0cAI \u7528 structured output \u89e3\u6790\u5c31\u884c\u3002\u51fa\u9519\u4e5f\u662f\u7ed3\u6784\u5316\u9519\u8bef\u7801\uff08\u5e26 <code>view issues<\/code> \u547d\u4ee4\uff09\uff0cAI \u62ff\u5230\u9519\u8bef\u80fd\u81ea\u6211\u4fee\u590d\u2014\u2014\u8fd9\u662f\u4f20\u7edf <code>python-docx<\/code> \u629b\u4e00\u5806 <code>KeyError<\/code> \u6ca1\u6cd5\u6bd4\u7684\u3002<\/p>\n<h3>2. \u5355\u4e8c\u8fdb\u5236 + \u5185\u7f6e\u5f15\u64ce\uff0c\u90e8\u7f72\u7701\u5fc3<\/h3>\n<p>\u6280\u672f\u6808\u662f C# \/ .NET 10\uff0c\u6838\u5fc3\u4f9d\u8d56\u53ea\u6709 <code>DocumentFormat.OpenXml<\/code>\uff08MIT\uff09\u548c <code>System.CommandLine<\/code>\uff08MIT\uff09\uff0c.NET \u8fd0\u884c\u65f6\u76f4\u63a5\u5d4c\u5165\u4e8c\u8fdb\u5236\u3002\u8fd9\u610f\u5473\u7740\uff1a<\/p>\n<ul>\n<li><strong>\u670d\u52a1\u5668\/CI \u73af\u5883<\/strong>\u4e5f\u80fd\u8dd1\u2014\u2014\u4e0d\u9700\u8981\u88c5 Office\u3001\u4e0d\u9700\u8981\u88c5 Python\u3001\u4e0d\u9700\u8981\u88c5 LibreOffice\u3001\u65e0\u663e\u793a\u5668<\/li>\n<li><strong>Docker \u955c\u50cf<\/strong>\u53ef\u4ee5\u505a\u5230 100MB \u4ee5\u5185\u2014\u2014\u4f20\u7edf LibreOffice \u955c\u50cf\u57fa\u672c 1GB+<\/li>\n<li><strong>\u51b7\u542f\u52a8\u5feb<\/strong>\u2014\u2014\u4e0d\u7528\u8d77 LibreOffice headless \u90a3\u4e2a 5 \u79d2\u8d77\u6b65\u7684\u8fdb\u7a0b<\/li>\n<\/ul>\n<p>\u8de8\u5e73\u53f0\u652f\u6301\u505a\u5f97\u5f88\u5168\uff0c6 \u4e2a\u5b98\u65b9\u4e8c\u8fdb\u5236\uff1amacOS ARM64\/x64\u3001Linux x64\/ARM64\u3001Windows x64\/ARM64\u3001RISC-V\uff08\u793e\u533a\u9a71\u52a8\uff09\u3002Mac mini M4 \u7528\u6237\u7684\u798f\u97f3\u2014\u2014<code>curl -fsSL https:\/\/raw.githubusercontent.com\/iOfficeAI\/OfficeCLI\/main\/install.sh | bash<\/code> \u4e00\u884c\u88c5\u5b8c\uff0c<code>brew install officecli<\/code> \u4e5f\u652f\u6301\u3002<\/p>\n<h3>3. \u5185\u7f6e MCP Server\uff0cAI \u4ee3\u7406\u5373\u63d2\u5373\u7528<\/h3>\n<p>\u8fd9\u662f OfficeCLI \u771f\u6b63&#8221;AI \u65f6\u4ee3&#8221;\u7684\u529f\u80fd\u2014\u2014<strong>\u5185\u7f6e Model Context Protocol \u670d\u52a1\u5668<\/strong>\uff0c\u4e00\u884c\u547d\u4ee4\u6ce8\u518c\u5230\u6240\u6709\u4e3b\u6d41 AI \u5de5\u5177\uff1a<\/p>\n<pre><code>officecli mcp claude       # Claude Code\nofficecli mcp cursor       # Cursor\nofficecli mcp vscode       # VS Code \/ Copilot\nofficecli mcp lmstudio     # LM Studio\nofficecli mcp list         # \u67e5\u770b\u5df2\u6ce8\u518c\u72b6\u6001<\/code><\/pre>\n<p>\u6ce8\u518c\u5b8c\uff0cClaude Code\/Cursor\/VS Code \u91cc\u6240\u6709 <code>create<\/code>\u3001<code>get<\/code>\u3001<code>set<\/code>\u3001<code>add<\/code>\u3001<code>remove<\/code> \u547d\u4ee4\u5c31\u53d8\u6210 AI \u53ef\u8c03\u7528\u7684\u5de5\u5177\u3002AI \u4e0d\u7528\u5199\u811a\u672c\u3001\u4e0d\u7528\u89e3\u6790 shell \u8f93\u51fa\uff0c\u76f4\u63a5\u8c03 MCP \u5de5\u5177\uff0cOfficeCLI \u628a\u547d\u4ee4\u7ed3\u679c\u4ee5\u7ed3\u6784\u5316 JSON \u8fd4\u56de\u3002<\/p>\n<p>\u548c Ponytail \u90a3\u79cd&#8221;AI \u884c\u4e3a\u7ea6\u675f\u5de5\u5177&#8221;\u642d\u914d\uff0c<strong>\u6574\u4e2a AI \u529e\u516c\u81ea\u52a8\u5316\u6808\u5c31\u5b8c\u6574\u4e86<\/strong>\uff1aPonytail \u8d1f\u8d23&#8221;\u522b\u8fc7\u5ea6\u5de5\u7a0b&#8221;\uff0cOfficeCLI \u8d1f\u8d23&#8221;\u771f\u628a\u6587\u6863\u6539\u4e86&#8221;\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/officecli-demo-excel.png\" alt=\"OfficeCLI Excel \u81ea\u52a8\u5316\u64cd\u4f5c\u6f14\u793a\" style=\"max-width:100%;height:auto;display:block;margin:20px auto;border-radius:6px\" \/><\/p>\n<h3>4. Excel \u5f15\u64ce\u662f\u771f\u505a\u4e86\uff0c\u4e0d\u662f\u5957\u58f3<\/h3>\n<p>\u8fd9\u70b9\u6bd4\u60f3\u8c61\u7684\u786c\u6838\u3002OfficeCLI \u5185\u7f6e\u4e86\u5b8c\u6574\u7684 Excel \u5f15\u64ce\uff1a<\/p>\n<ul>\n<li><strong>350+ \u516c\u5f0f\u81ea\u52a8\u6c42\u503c<\/strong>\u2014\u2014\u5199\u5b8c <code>=SUM(A1:A10)<\/code>\u3001<code>=VLOOKUP(...)<\/code>\u3001<code>=FILTER(...)<\/code> \u7acb\u5373\u7b97\u7ed3\u679c\uff0c\u4e0d\u7528\u6253\u5f00 Excel \u624d\u770b\u5230<\/li>\n<li><strong>\u52a8\u6001\u6570\u7ec4\u6ea2\u51fa<\/strong>\u2014\u2014\u652f\u6301 <code>FILTER<\/code>\/<code>SORT<\/code>\/<code>UNIQUE<\/code>\/<code>SEQUENCE<\/code>\/<code>LET<\/code>\/<code>LAMBDA<\/code>\/<code>MAP<\/code><\/li>\n<li><strong>\u539f\u751f OOXML \u900f\u89c6\u8868<\/strong>\u2014\u2014\u4e00\u6761\u547d\u4ee4\u4ece\u6e90\u6570\u636e\u751f\u6210 PivotTable<\/li>\n<li><strong>\u56fe\u8868\u542b\u8d8b\u52bf\u7ebf\/\u8bef\u5dee\u7ebf\/\u7011\u5e03\u56fe\/K\u7ebf\u56fe\/\u8ff7\u4f60\u56fe<\/strong><\/li>\n<\/ul>\n<p>AI \u6539\u5b8c Excel \u6587\u4ef6\uff0c\u53ef\u4ee5\u7acb\u5373\u7528 <code>view<\/code> \u547d\u4ee4\u628a\u8ba1\u7b97\u7ed3\u679c\u8bfb\u51fa\u6765\u9a8c\u8bc1\u2014\u2014\u4e0d\u7528\u4eba\u5de5\u6253\u5f00 Excel \u7b97\u4e00\u904d\u518d\u53cd\u9988\u7ed9 AI\u3002\u8fd9\u662f\u771f\u6b63\u610f\u4e49\u4e0a\u7684&#8221;AI \u95ed\u73af&#8221;\u3002<\/p>\n<h3>5. \u8fd8\u6709\u4e00\u6279&#8221;\u7ec6\u8282\u6740\u624b\u950f&#8221;<\/h3>\n<ul>\n<li><strong>\u6a21\u677f\u5408\u5e76<\/strong>\uff1a<code>merge<\/code> \u547d\u4ee4\u7528 JSON \u66ff\u6362 <code>{{key}}<\/code> \u5360\u4f4d\u7b26\u2014\u2014\u4e00\u6b21\u8bbe\u8ba1\u5e03\u5c40\uff0cAI \u7528 N \u6b21\u4e0d\u540c\u6570\u636e\u751f\u6210 N \u4efd\u6587\u6863<\/li>\n<li><strong>\u5f80\u8fd4\u8f6c\u50a8<\/strong>\uff1a<code>dump<\/code> \u628a\u6587\u6863\u5e8f\u5217\u5316\u4e3a\u53ef\u56de\u653e\u7684 batch JSON\uff0c<code>batch<\/code> \u547d\u4ee4\u56de\u653e\u2014\u2014AI \u53ef\u4ee5\u4ece\u4eba\u5de5\u6837\u672c\u91cc&#8221;\u5b66&#8221;\u7ed3\u6784<\/li>\n<li><strong>PowerPoint \u52a8\u753b\/\u8fc7\u6e21<\/strong>\uff1a15 \u79cd\u5f3a\u8c03\u52a8\u753b\u300116 \u79cd\u9000\u51fa\u52a8\u753b\u3001morph \u8fc7\u6e21\u2014\u2014AI \u751f\u6210\u7684 PPT \u4e0d\u518d\u662f&#8221;\u6b7b&#8221;\u7684<\/li>\n<li><strong>3D \u6a21\u578b\u5d4c\u5165<\/strong>\uff1a<code>.glb<\/code> \u6587\u4ef6\u7528 Three.js \u5728 HTML \u9884\u89c8\u91cc\u6e32\u67d3\u2014\u2014AI \u53ef\u4ee5\u505a\u5e26 3D \u6a21\u578b\u7684\u6f14\u793a\u6587\u7a3f<\/li>\n<li><strong>Word \u5b8c\u6574 i18n + RTL<\/strong>\uff1a\u6bcf\u4e2a\u811a\u672c\u5b57\u4f53\u69fd\u3001BCP-47 \u8bed\u8a00\u6807\u7b7e\u3001<code>direction=rtl<\/code> \u7ea7\u8054\u2014\u2014\u4e2d\u6587\/\u963f\u62c9\u4f2f\u6587\u6df7\u6392\u4e0d\u4f1a\u4e71<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"http:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/officecli-demo-word.png\" alt=\"OfficeCLI Word \u6587\u6863\u7f16\u8f91\u6f14\u793a\" style=\"max-width:100%;height:auto;display:block;margin:20px auto;border-radius:6px\" \/><\/p>\n<h2>\u600e\u4e48\u7528<\/h2>\n<h3>\u5b89\u88c5<\/h3>\n<p>\u4e00\u884c\u547d\u4ee4\uff08macOS\/Linux\uff09\uff1a<\/p>\n<pre><code>curl -fsSL https:\/\/raw.githubusercontent.com\/iOfficeAI\/OfficeCLI\/main\/install.sh | bash<\/code><\/pre>\n<p>\u6216\u8005\uff1a<\/p>\n<pre><code>brew install officecli            # macOS Homebrew\nnpm install -g @officecli\/officecli   # \u5168\u5e73\u53f0 npm\nirm https:\/\/raw.githubusercontent.com\/iOfficeAI\/OfficeCLI\/main\/install.ps1 | iex   # Windows PowerShell<\/code><\/pre>\n<p>\u7b2c\u4e00\u6b21\u8fd0\u884c <code>officecli<\/code> \u4f1a\u89e6\u53d1\u81ea\u5b89\u88c5\uff08\u628a\u4e8c\u8fdb\u5236\u590d\u5236\u5230 PATH \u5e76\u6ce8\u518c\u5230\u6240\u6709\u68c0\u6d4b\u5230\u7684 AI \u5de5\u5177\uff09\u3002<\/p>\n<h3>30 \u79d2\u4f53\u9a8c<\/h3>\n<pre><code># \u521b\u5efa\u4e00\u4e2a\u7a7a\u767d PPT\nofficecli create deck.pptx\n\n# \u542f\u52a8\u5b9e\u65f6\u9884\u89c8\uff08\u6d4f\u89c8\u5668\u81ea\u52a8\u5237\u65b0\uff09\nofficecli watch deck.pptx\n\n# \u52a0\u4e00\u5f20\u5e7b\u706f\u7247\nofficecli add deck.pptx \/ --type slide --prop title=\"Q4 Report\" --prop background=1A1A2E\n\n# \u5728\u7b2c\u4e00\u5f20\u5e7b\u706f\u7247\u52a0\u4e00\u4e2a\u6587\u672c\u6846\nofficecli add deck.pptx '\/slide[1]' --type shape \n  --prop text=\"Revenue grew 25%\" --prop x=2cm --prop y=5cm \n  --prop font=Arial --prop size=24 --prop color=FFFFFF\n\n# \u8bfb\u51fa\u6587\u6863\u5927\u7eb2\nofficecli view deck.pptx outline\n# \u2192 Slide 1: Q4 Report\n# \u2192   Shape 1 [TextBox]: Revenue grew 25%\n\n# \u628a\u7b2c\u4e00\u5f20\u5e7b\u706f\u7247\u7b2c\u4e00\u4e2a\u6587\u672c\u6846\u6539\u6210\u522b\u7684\nofficecli set deck.pptx '\/slide[1]\/shape[1]' --prop font=Helvetica<\/code><\/pre>\n<p>\u8fd9\u4e00\u5957\u4e0b\u6765\uff0c\u4f20\u7edf <code>python-pptx<\/code> \u81f3\u5c11\u8981\u5199 50 \u884c Python + \u88c5 3 \u4e2a\u5e93\uff0cOfficeCLI \u4e00\u884c\u547d\u4ee4\u641e\u5b9a\u3002<\/p>\n<h3>\u4f5c\u4e3a AI \u5de5\u5177\u4f7f\u7528<\/h3>\n<p>\u88c5\u5b8c OfficeCLI \u540e\uff0cAI \u4ee3\u7406\u7684 SKILL.md \u76f4\u63a5\u5728 officecli.ai \u62ff\u5230\uff1a<\/p>\n<pre><code>curl -fsSL https:\/\/officecli.ai\/SKILL.md<\/code><\/pre>\n<p>\u628a\u8fd9\u4e2a\u6587\u4ef6\u4e22\u7ed9 Claude Code\u3001Cursor \u6216\u4efb\u4f55\u652f\u6301 SKILL.md \u7684 AI \u5de5\u5177\uff0cAI \u5c31&#8221;\u5b66\u4f1a&#8221;\u4e86 OfficeCLI \u7684\u6240\u6709\u547d\u4ee4\u548c\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<h3>\u5bf9\u63a5\u73b0\u6709 AI \u7f16\u7a0b\u52a9\u624b<\/h3>\n<pre><code>officecli mcp claude    # \u6ce8\u518c\u5230 Claude Code\nofficecli mcp cursor    # \u6ce8\u518c\u5230 Cursor\nofficecli mcp vscode    # \u6ce8\u518c\u5230 VS Code Copilot\nofficecli mcp lmstudio  # \u6ce8\u518c\u5230 LM Studio<\/code><\/pre>\n<p>\u6ce8\u518c\u5b8c\uff0cAI \u5728\u5bf9\u8bdd\u91cc\u5c31\u80fd\u76f4\u63a5\u8c03\u7528 OfficeCLI \u5de5\u5177\u6539\u6587\u6863\u2014\u2014\u4e0d\u7528\u5199\u811a\u672c\u3002<\/p>\n<h2>\u6709\u4ec0\u4e48\u5751<\/h2>\n<ol>\n<li><strong>\u8fd8\u662f\u65e9\u671f\u9879\u76ee\u3002<\/strong>v1.0.132 \u770b\u7740\u7248\u672c\u53f7\u4e0d\u5c0f\uff0c\u4f46\u9879\u76ee\u672c\u8eab 2026 \u5e74 3 \u6708\u624d\u53d1\u7b2c\u4e00\u4e2a release\uff0c5,600+ \u63d0\u4ea4\u5f88\u6d3b\u8dc3\uff0c\u4f46\u7a33\u5b9a\u6027\u548c\u8fb9\u7f18 case \u8986\u76d6\u80af\u5b9a\u4e0d\u5982 LibreOffice \u90a3\u79cd 30 \u5e74\u8001\u9879\u76ee\u3002\u751f\u4ea7\u73af\u5883\u8dd1\u524d\u5148\u538b\u4e00\u538b\u3002<\/li>\n<li><strong>Mac Apple Silicon \u7528\u6237\u7684 .NET \u8def\u5f84\u95ee\u9898\u3002<\/strong>.NET 10 \u81ea\u5305\u542b\u4e8c\u8fdb\u5236\u9996\u6b21\u8fd0\u884c\u53ef\u80fd\u89e6\u53d1 macOS Gatekeeper \u62e6\u622a\uff0c\u9700\u8981\u5728&#8221;\u7cfb\u7edf\u8bbe\u7f6e \u2192 \u9690\u79c1\u4e0e\u5b89\u5168\u6027&#8221;\u624b\u52a8\u653e\u884c\u3002Homebrew \u88c5\u7684\u7248\u672c\u6ca1\u8fd9\u4e2a\u95ee\u9898\u3002<\/li>\n<li><strong>\u4e0d\u662f LibreOffice \u66ff\u4ee3\u54c1\u3002<\/strong>OfficeCLI \u4e3b\u6253 AI \u4ee3\u7406\u573a\u666f\uff0c\u6ca1\u6709 GUI\u3001\u6ca1\u6709\u5b8c\u6574\u83dc\u5355\/\u5b8f\/\u63d2\u4ef6\u7cfb\u7edf\u3002\u5982\u679c\u4f60\u7684\u9700\u6c42\u662f&#8221;\u7ed9\u975e\u6280\u672f\u540c\u4e8b\u88c5\u4e2a\u514d\u8d39 Office&#8221;\uff0c\u8bf7\u7528 LibreOffice\uff1b\u5982\u679c\u4f60\u7684\u9700\u6c42\u662f&#8221;AI \u5e2e\u6211\u6539 Office \u6587\u4ef6&#8221;\uff0cOfficeCLI \u662f\u5f53\u524d\u6700\u597d\u7684\u9009\u62e9\u3002<\/li>\n<li><strong>\u9ad8\u7ea7 Word \u529f\u80fd\u8fd8\u5728\u8865\u3002<\/strong>\u76ee\u524d\u5bf9\u4fee\u8ba2\/\u8ffd\u8e2a\u53d8\u66f4\u7684\u652f\u6301\u662f 22 \u79cd\u96f6\u53c2\u6570\u5b57\u6bb5\u7c7b\u578b\uff0c\u590d\u6742\u4fee\u8ba2\u573a\u666f\u53ef\u80fd\u8d70 L3 \u539f\u59cb XML \u5c42\u624b\u52a8\u5904\u7406\u3002VBA \u5b8f\u5b8c\u5168\u4e0d\u517c\u5bb9\u2014\u2014Microsoft \u7684\u5b8f\u683c\u5f0f\u662f\u95ed\u6e90\u7684\uff0cOfficeCLI \u4e5f\u6ca1\u6253\u7b97\u652f\u6301\u3002<\/li>\n<li><strong>\u6e32\u67d3\u5f15\u64ce\u548c\u771f\u5b9e Office \u6709\u89c6\u89c9\u5dee\u3002<\/strong>HTML \u6e32\u67d3\u662f\u4e3a\u4e86&#8221;AI \u770b\u5230\u5927\u81f4\u6548\u679c&#8221;\uff0c\u4e0d\u662f 1:1 \u50cf\u7d20\u7ea7\u8fd8\u539f\u3002\u6700\u7ec8\u6392\u7248\u8fd8\u662f\u8981\u5728 PowerPoint\/Word \u91cc\u6253\u5f00\u786e\u8ba4\u3002\u5f00\u53d1\u8005\u8981\u610f\u8bc6\u5230\u8fd9\u662f&#8221;\u5f00\u53d1\u9884\u89c8&#8221;\u4e0d\u662f&#8221;\u6210\u54c1\u9884\u89c8&#8221;\u3002<\/li>\n<li><strong>\u4e2d\u6587\u793e\u533a\u8d44\u6599\u8fd8\u4e0d\u591a\u3002<\/strong>\u9879\u76ee README \u6709\u4e2d\/\u82f1\/\u65e5\/\u97e9\u56db\u8bed\u7248\u672c\uff0c\u4f46\u4e2d\u6587\u8bc4\u6d4b\u4e3b\u8981\u662f\u8fd9\u51e0\u5929 CSDN \u548c ai-bot.cn \u51fa\u7684\u3002\u9047\u5230\u95ee\u9898\u5927\u6982\u7387\u8981\u7ffb\u82f1\u6587 issue \u6216 Discord \u95ee\u3002<\/li>\n<li><strong>MCP \u6ce8\u518c\u7684 AI \u5de5\u5177\u6743\u9650\u8981\u5c0f\u5fc3\u3002<\/strong>\u6ce8\u518c\u540e AI \u53ef\u4ee5&#8221;\u5b8c\u5168\u63a7\u5236&#8221;\u4f60\u7684 Office \u6587\u4ef6\u3002\u5982\u679c\u6587\u6863\u91cc\u6709\u654f\u611f\u4fe1\u606f\uff0c\u5efa\u8bae\u6bcf\u6b21\u64cd\u4f5c\u524d\u624b\u52a8\u5907\u4efd\uff0c\u6216\u8005\u7ed9 AI \u4e00\u4e2a\u6c99\u7bb1\u76ee\u5f55\u800c\u4e0d\u662f\u76f4\u63a5\u7f16\u8f91\u539f\u6587\u4ef6\u3002<\/li>\n<\/ol>\n<h2>\u503c\u4e0d\u503c\u5f97\u7528<\/h2>\n<p>\u5982\u679c\u4f60\u65e5\u5e38\u7528 Claude Code \u6216 Cursor \u8ba9 AI \u6539 Word\/Excel\/PPT\uff0c<strong>\u5f3a\u70c8\u5efa\u8bae\u88c5\u4e0a\u8bd5\u8bd5<\/strong>\u3002MCP \u6ce8\u518c\u4e00\u884c\u547d\u4ee4\u7684\u4e8b\uff0c\u96f6\u98ce\u9669\u2014\u2014\u4e0d\u559c\u6b22\u76f4\u63a5 <code>officecli mcp list<\/code> \u53d6\u6d88\u6ce8\u518c\u5c31\u884c\u3002<\/p>\n<p>\u5982\u679c\u4f60\u662f&#8221;AI \u81ea\u52a8\u5316\u529e\u516c&#8221;\u65b9\u5411\u7684\u5f00\u53d1\u8005\uff0cOfficeCLI \u662f\u76ee\u524d\u552f\u4e00\u4e00\u4e2a\u628a&#8221;\u6e32\u67d3\u2192\u4fee\u6539\u2192\u9a8c\u8bc1&#8221;\u95ed\u73af\u505a\u5b8c\u6574\u7684\u4ea7\u54c1\uff0c\u7701\u6389\u4e86\u4f60\u81ea\u5df1\u96c6\u6210 LibreOffice + python-docx + \u622a\u56fe\u5de5\u5177\u94fe\u7684\u9ebb\u70e6\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7684\u573a\u666f\u53ea\u662f&#8221;\u6211\u81ea\u5df1\u7528 Office\uff0c\u4e0d\u9700\u8981 AI&#8221;\uff0c\u90a3 LibreOffice\/Microsoft 365\/WPS \u5df2\u7ecf\u591f\u4e86\uff0cOfficeCLI \u89e3\u51b3\u7684\u662f\u53e6\u4e00\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/iOfficeAI\/OfficeCLI\">github.com\/iOfficeAI\/OfficeCLI<\/a><\/p>\n<p>\u5b98\u7f51\uff1a<a href=\"https:\/\/officecli.ai\">officecli.ai<\/a><\/p>\n<p>\u8bb8\u53ef\u8bc1\uff1a<strong>Apache License 2.0<\/strong><\/p>\n<p style=\"font-style:italic;color:#666;font-size:0.9em\">\u672c\u6587\u57fa\u4e8e OfficeCLI v1.0.132\uff082026-07-08\uff09\u548c GitHub README\u3001ai-bot.cn \/ agentskill.work \/ ai-master.cc \u4e2d\u6587\u8bc4\u6d4b\u64b0\u5199\u3002\u6240\u6709\u547d\u4ee4\u548c\u6570\u636e\u6765\u81ea\u9879\u76ee\u5b98\u65b9\u4ed3\u5e93\u4e0e\u516c\u5f00\u8d44\u6599\uff0c\u672a\u505a\u4efb\u4f55\u5b9e\u6d4b\u9a8c\u8bc1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":264,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,10],"tags":[173,102,170,103,171,172,104,167,56,165,169,168,166,174,41,145,175,16],"class_list":["post-268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-software","tag-net","tag-ai","tag-apache-2-0","tag-claude-code","tag-cli","tag-csharp","tag-cursor","tag-excel","tag-mcp","tag-officecli","tag-office","tag-powerpoint","tag-word","tag-174","tag-41","tag-145","tag-175","tag-16"],"_links":{"self":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/comments?post=268"}],"version-history":[{"count":1,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/268\/revisions"}],"predecessor-version":[{"id":298,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/268\/revisions\/298"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media\/264"}],"wp:attachment":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media?parent=268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/categories?post=268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/tags?post=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}