OfficeCLI क्या है?
OfficeCLI एक single-binary CLI, जो AI agents को बिना Office इंस्टॉल किए Word, Excel और PowerPoint फ़ाइलें पढ़ने, edit करने और render करने देता है. यह AI Productivity & Writing टूल्स की Office Documents & Spreadsheets श्रेणी में आता है; ओपन सोर्स है, C# में लिखा गया है और Apache-2.0 लाइसेंस के तहत है।
सारांश
OfficeCLI एक ओपन सोर्स command-line Office suite है, जिसे AI agents के ज़रिए चलाने के लिए बनाया गया है। यह किसी Microsoft Office इंस्टॉलेशन और अतिरिक्त dependencies के बिना, एक single binary के रूप में Word, Excel और PowerPoint फ़ाइलें बनाती, पढ़ती और edit करती है। दस्तावेज़ के elements को `/slide[1]/shape[1]` जैसे path expressions से address किया जाता है, और हर command structured JSON लौटा सकता है, ताकि agent बाइनरी फ़ॉर्मेट का अंदाज़ा लगाने के बजाय दस्तावेज़ की असली संरचना देख सके।
इसका दूसरा हिस्सा एक rendering engine है। OfficeCLI .docx, .xlsx और .pptx को HTML या PNG में render करता है, जिससे render-look-fix loop पूरा होता है: agent कोई बदलाव लिखता है, नतीजे को render करता है और देखता है कि slide सचमुच सही दिख रही है या नहीं। `watch` command localhost पर एक live preview चलाती है, जो हर `add`, `set` या `remove` पर अपडेट होता है, इसलिए agent के बगल में बैठे इंसान के लिए ब्राउज़र भी feedback loop का काम करता है।
प्रोजेक्ट एक installer के साथ आता है, जो binary को आपके PATH पर रखता है और उन सभी AI coding agents में OfficeCLI skill इंस्टॉल करता है जिन्हें वह पहचानता है, जैसे Claude Code, Cursor, Windsurf, GitHub Copilot और अन्य। साथ ही इसमें एक built-in MCP server है, ताकि MCP clients इसे सीधे call कर सकें। एक companion desktop app, AionUi, भी है, जो पर्दे के पीछे OfficeCLI चलाता है, उन लोगों के लिए जो commands टाइप करने के बजाय दस्तावेज़ का वर्णन करना पसंद करते हैं।
यह क्या करता है
- एक single binary के रूप में .docx, .xlsx और .pptx बनाएं, पढ़ें और edit करें — कोई Office इंस्टॉल नहीं, कोई runtime dependencies नहीं, cross-platform
- Built-in HTML और PNG rendering, ताकि agent अपने बनाए नतीजे को देखकर उसे सुधार सके
- Path-addressed elements (`/slide[1]/shape[1]`) और `--json` output, जिससे agents को दस्तावेज़ की structured झलक मिलती है
- `watch` command, जो हर edit पर अपडेट होने वाला live browser preview दिखाती है
- Built-in MCP server, और एक installer जो Claude Code, Cursor, Windsurf और GitHub Copilot जैसे पहचाने गए coding agents में OfficeCLI skill जोड़ देता है
- 350+ Excel formulas supported, ताकि spreadsheets static नहीं, बल्कि computable रहें
- एक GUI companion, AionUi, जो natural language से OfficeCLI चलाता है
शुरू करें
इंस्टॉल script, Homebrew या npm से binary इंस्टॉल करें, फिर एक दस्तावेज़ बनाएं और live preview शुरू करें। अगर इसे किसी agent से जोड़ना है, तो `officecli install` उसे पहचाने गए हर coding agent में skill भी इंस्टॉल कर देता है।
इंस्टॉल करें
macOS या Linux पर install script, Windows पर PowerShell script, या किसी package manager का उपयोग करें।
curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash
# or: brew install officecli
# or: npm install -g @officecli/officecliअपने agents में रजिस्टर करें
यह binary को आपके PATH पर कॉपी करता है और उन सभी AI coding agents में OfficeCLI skill इंस्टॉल करता है जिन्हें यह पहचानता है।
officecli installDeck बनाएं और उसे live देखें
`watch` http://localhost:26315 पर live preview खोलता है, जो दूसरे terminal से किए गए हर edit पर अपडेट होता है।
officecli create deck.pptx
officecli watch deck.pptxPath से content जोड़ें
Elements को path expressions से address किया जाता है और --prop flags से configure किया जाता है।
officecli add deck.pptx / --type slide --prop title="Q4 Report" --prop background=1A1A2E
officecli add deck.pptx '/slide[1]' --type shape \
--prop text="Revenue grew 25%" --prop x=2cm --prop y=5cm \
--prop font=Arial --prop size=24 --prop color=FFFFFFजांचें, render करें और सेव करें
`view outline` संरचना प्रिंट करता है, `view html` preview render करता है, `get --json` एक structured element लौटाता है, और `close` session को disk पर flush करता है।
officecli view deck.pptx outline
officecli view deck.pptx html
officecli get deck.pptx '/slide[1]/shape[1]' --json
officecli close deck.pptxकमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- Coding agent से असली .pptx या .xlsx deliverable बनवाएं, न कि markdown जिसे कोई इंसान दोबारा टाइप करे
- ऐसे server पर Office दस्तावेज़ों की संरचना पढ़ें और निकालें, जहां Microsoft Office इंस्टॉल नहीं है
- दस्तावेज़ को PNG में render करके और vision model से layout जांचवाकर agent को visual feedback loop दें
- CI में repetitive report या deck generation को स्वचालित करें, जहां एक single static binary, Python document stack की तुलना में ship करना आसान है
How OfficeCLI compares
OfficeCLI alongside other open-source office documents & spreadsheets tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| Next AI Draw.io | ★ 37.3k | AI से चैट करके असली draw.io डायग्राम बनाएं और एडिट करें |
| OfficeCLI | ★ 33.7k | एक single-binary CLI, जो AI agents को बिना Office इंस्टॉल किए Word, Excel और PowerPoint फ़ाइलें पढ़ने, edit करने और render करने देता है |
| Univer | ★ 32.4k | एक ओपन सोर्स SDK जो आपके ऐप में स्प्रेडशीट, डॉक्स, स्लाइड, बोर्ड और बेस जोड़ता है — और AI SDK के साथ एजेंट इन्हें भी एडिट कर सकते हैं |
| GenOffice | ★ 13.3k | दस्तावेज़ के बगल में AI पैनल की मदद से असली .docx, .xlsx और .pptx फ़ाइलें एडिट करें |
| Jantt | ★ 6.2k | सादी अंग्रेज़ी में ड्राफ़्ट किए जाने वाले Gantt चार्ट, अपनी API key वाले AI कोपायलट के साथ |
| Edit Banana | ★ 5.5k | स्थिर डायग्राम इमेज को एडिट करने योग्य draw.io (DrawIO XML) फ़ाइलों में बदलता है |
| MR Office | ★ 5k | AI copilot और एजेंट्स के लिए MCP server के साथ ओपन सोर्स ब्राउज़र ऑफ़िस एडिटर्स |
| Doory | ★ 3.1k | Canva जैसा सेल्फ-होस्ट होने योग्य डिज़ाइन एडिटर, जिसे AI असिस्टेंट MCP के ज़रिए चला सकते हैं |
