wordcli turns a written prompt into a real, editable .docx document — no templates, no manual formatting, no Word app required. wordcli is the Word document generator inside the OfficeCLI toolkit, distributed as a single cross-platform binary on npm and Homebrew.
npm install -g officecliOr via Homebrew:
brew install officecli/homebrew-officecli/officecliPick one channel. If you previously installed via Homebrew and now want npm, uninstall the Homebrew formula first. Full install guide: officecli/officecli.
After install, the first run uses hosted anonymous trial access — no API key, no local model endpoint needed.
officecli new docx "Product Launch Brief" \
--prompt "Audience, positioning, key messages, launch timeline, risk register, next steps."What wordcli does under that single command:
- Plans the document structure from your prompt (headings, sections, lists)
- Writes a real
.docxfile to./output/— editable in Word, Pages, Google Docs, and WPS - Optionally returns a public preview URL when online publishing is configured
From a prompt file
officecli new docx "Architecture RFC" --prompt-file ./rfc.txtHigher-quality interactive mode
officecli new docx "Annual Strategy Memo" --mode bestCustom output directory
officecli new docx "Spec" --prompt-file ./spec.txt --out ./distJSON output for automation / CI
officecli new docx "Weekly Update" --prompt-file ./w.txt --jsonSkip online publish (local only)
officecli new docx "Internal Draft" --prompt "..." --no-publishFull command reference: officecli/officecli → Command Cheatsheet.
| Capability | Flag / command |
|---|---|
Natural-language → real .docx |
officecli new docx <title> --prompt "..." |
| Multi-section documents | inferred from the prompt |
| Prompt from file | --prompt-file path |
| Higher-quality planner | --mode best |
| Custom output dir | --out ./dist |
| JSON output for automation | --json |
| Skip online publish | --no-publish |
| Persistent TUI | officecli (no args) |
- Product managers turning bullet notes into a PRD or launch brief
- Engineers drafting RFCs, design docs, and runbooks from an outline
- Founders producing investor memos and one-pagers on demand
- Consultants scaffolding client deliverables from a brief
- Marketing producing positioning docs and messaging guides
- HR / Ops drafting policies and SOPs from a description
- Engineering teams auto-generating release notes and status memos in CI
- AI agents / Claude Code plugins that need to emit
.docxartifacts programmatically
OfficeCLI ships as an official Claude Code marketplace plugin, so agents can generate .docx files directly from inside Claude Code:
/plugin marketplace add officecli/officecli
/plugin install officecli@officecli
Details: officecli/officecli → Claude Marketplace Install.
-
Hosted (default) — fastest path. Free trial on first install, then
officecli loginand buy hosted credits at officecli.io/pricing.loginprints a URL and short code, so it works in headless / remote shells too. -
External — point wordcli at your own model endpoint:
officecli config set-runtime external officecli config set-generation
wordcli is one of the document generators in the OfficeCLI toolkit. Sibling tools share the same install and the same prompt-driven workflow:
- 🎞 PowerPoint — pptcli ·
officecli new pptx· pptcli/pptcli - 📊 Excel — excelcli ·
officecli new xlsx· excelcli/excelcli - 📝 Word — wordcli ·
officecli new docx· wordcli/wordcli
- 🏠 Source & releases: https://github.com/officecli/officecli
- 📦 npm: https://www.npmjs.com/package/officecli
- 🌐 Website: https://officecli.io
- 💬 Discord: https://discord.gg/ezAHMkdG