Uniword ships with a command-line interface built on Thor. Invoke it with the
uniword executable after installing the gem. The CLI surfaces nearly every
Microsoft Word feature as a one-shot command — see
Word for the command line for the
side-by-side mapping.
2. Commands
2.1. Document operations
| Command | Description |
|---|---|
|
Convert a document between DOCX, MHTML, and HTML |
|
Display document statistics and structure |
|
In-memory model-level validation, prints rule-coded issues |
|
Three-layer DOCX verification (OPC, XSD, semantic) |
|
Run accessibility and quality checks |
|
Load, reconcile, and save a repaired copy with a per-fix report |
|
Build document from a |
|
Batch convert documents |
|
Display or edit document metadata |
|
Generate DOCX from structured text (YAML/Markdown) |
|
Show the installed Uniword version |
2.2. Document feature subcommands
| Command | Word equivalent |
|---|---|
|
Design tab (Themes, Colors, Fonts) |
|
Styles pane, Style Set gallery |
|
Styles pane — list, remove, rename |
|
Home → Replace → Replace Fonts |
|
Layout → Page Setup dialog |
|
References → Table of Contents |
|
Insert → Header & Footer |
|
Insert → Pictures |
|
Design → Watermark |
|
Review tab (comments and tracked changes) |
|
Review → Compare |
|
Review → Spelling & Grammar |
|
Review → Restrict Editing |
|
File → New from template |
|
Export Word resources from a local install |
3. Topics
-
convert — Format conversion
-
info — Document inspection
-
validate — Structural validation
-
verify — Three-layer verification pipeline
-
check — Quality and accessibility checks
-
repair — Repair and reconciliation
-
build — Template building
-
batch — Batch processing
-
metadata — Document metadata
-
generate — DOCX generation from structured text
-
review — Comments and tracked changes
-
diff — Document comparison
-
spellcheck — Spell and grammar checking
-
images — Image management
-
toc — Table of Contents
-
headers — Headers and footers
-
watermark — Watermarks
-
protect — Document protection
-
theme — Theme operations (apply, fonts, colors, auto)
-
styleset — StyleSet operations (list, apply, extract)
-
styles — Styles pane (list, remove, rename)
-
fonts — Replace Fonts
-
page — Page Setup dialog