Skip to content

CLI Reference

papersmith provides a command-line interface for common operations.

Commands

papersmith generate

Convert a Markdown file to a .docx document.

papersmith generate input.md -o output.docx --preset academic
Option Short Default Description
--output -o required Output .docx file path
--preset -p academic Style preset name
--author -a None Author name
--title -t None Document title

papersmith convert

Alias for generate with the same options.

papersmith convert report.md -o report.docx --preset report

papersmith scrub

Remove or replace identifying metadata in a .docx file.

papersmith scrub document.docx --author "Public Author"
Option Short Default Description
--author -a "Author" Replacement author name
--output -o in-place Save to a different file

papersmith presets

List all available style presets.

papersmith presets

papersmith mcp-server

Launch the MCP server for LLM integration.

papersmith mcp-server --transport stdio --output-dir ~/Documents/PapersmithOutputs
Option Default Description
--transport stdio Transport mode: stdio or sse
--output-dir ~/Documents Directory for saved documents

papersmith version

Print the installed version.

papersmith version