# What File Types Does OfficeCLI Support? Complete Format Guide for DOCX, XLSX, and PPTX

> Explore the file formats OfficeCLI supports including DOCX, XLSX, and PPTX. Discover the complete format guide for your Office Open XML needs.

- Repository: [OfficeAI/OfficeCLI](https://github.com/iofficeai/OfficeCLI)
- Tags: api-reference
- Published: 2026-07-15

---

**OfficeCLI natively supports three Office Open XML formats only: `.docx` for Word documents, `.xlsx` for Excel workbooks, and `.pptx` for PowerPoint presentations.**

The iOfficeAI/OfficeCLI repository is an open-source command-line interface designed specifically for automating Microsoft Office document workflows. Understanding exactly what file types OfficeCLI supports is essential for developers building document automation pipelines, as the tool enforces strict format validation at runtime.

## Supported Office Open XML Formats

OfficeCLI implements dedicated handlers for the modern Office Open XML standard, limiting native support to three specific extensions. According to the capability matrix documented in [`README.md`](https://github.com/iOfficeAI/OfficeCLI/blob/main/README.md), the CLI provides full create, read, and modify operations for these formats only.

### Word Documents (.docx)

**`.docx`** files receive comprehensive support across all CRUD operations. The CLI can generate new documents, modify existing content, and render documents for preview. This format handler manages text content, styling, and document structure manipulation through the command line.

### Excel Workbooks (.xlsx)

**`.xlsx`** support includes cell-level operations, formula calculation, and workbook structure management. The CLI handles spreadsheet creation, data insertion, and computational logic, making it suitable for automated reporting and data processing workflows.

### PowerPoint Presentations (.pptx)

**`.pptx`** files support slide creation, content modification, and rendering capabilities. Users can programmatically add slides, modify titles, and manage presentation decks without opening the PowerPoint GUI.

## Runtime File Type Validation

The [`DocumentHandlerFactory.cs`](https://github.com/iOfficeAI/OfficeCLI/blob/main/DocumentHandlerFactory.cs) source file contains strict enforcement logic that prevents processing of unsupported formats. At lines 302-306, the `UnsupportedTypeException` method explicitly enumerates the three valid extensions and throws a terminating error for any other file type.

```csharp
// From DocumentHandlerFactory.cs (lines 302-306)
// Throws UnsupportedTypeException if extension is not 
// .docx, .xlsx, or .pptx

```

This validation occurs before any document operation begins, ensuring that the CLI fails fast with a clear error message rather than attempting to parse incompatible files. The error output explicitly suggests using a plugin architecture if you require additional format support beyond the three native types.

## Practical Usage Examples

The following commands demonstrate proper usage with each supported file type:

```bash

# Create a new Word document

officecli create report.docx

# Add data to an Excel workbook

officecli add data.xlsx /Sheet1 --type cell --prop address=A1 --prop value=123

# Add a slide to a PowerPoint deck

officecli add deck.pptx / --type slide --prop title="Q4 Results"

```

Attempting to use legacy formats like `.doc` or `.xls` will trigger the validation error defined in [`DocumentHandlerFactory.cs`](https://github.com/iOfficeAI/OfficeCLI/blob/main/DocumentHandlerFactory.cs), blocking execution immediately.

## Summary

- **OfficeCLI supports exactly three file types**: `.docx`, `.xlsx`, and `.pptx`
- **Full CRUD operations** are available for all three Office Open XML formats
- **Runtime validation** in [`DocumentHandlerFactory.cs`](https://github.com/iOfficeAI/OfficeCLI/blob/main/DocumentHandlerFactory.cs) rejects unsupported extensions with `UnsupportedTypeException`
- **Plugin architecture** is suggested for legacy or alternative format requirements
- **No built-in support** exists for binary Office formats (.doc, .xls, .ppt) or other document types

## Frequently Asked Questions

### Does OfficeCLI support older Office formats like .doc or .xls?

No. OfficeCLI explicitly rejects legacy binary formats including `.doc`, `.xls`, and `.ppt`. The `UnsupportedTypeException` method in [`DocumentHandlerFactory.cs`](https://github.com/iOfficeAI/OfficeCLI/blob/main/DocumentHandlerFactory.cs) only recognizes the three modern Office Open XML extensions, and the CLI will terminate with an error if you attempt to process legacy files.

### Can I extend OfficeCLI to support PDF or other file types?

The source code suggests using a plugin architecture for additional format support. While the native `DocumentHandlerFactory` only handles `.docx`, `.xlsx`, and `.pptx`, the error messaging system indicates that external plugins can be implemented to extend functionality beyond the three built-in types.

### What happens if I try to process an unsupported file extension?

The CLI immediately throws an `UnsupportedTypeException` before attempting any document operations. This validation occurs in [`DocumentHandlerFactory.cs`](https://github.com/iOfficeAI/OfficeCLI/blob/main/DocumentHandlerFactory.cs) at lines 302-306, producing a clear error message that identifies the unsupported extension and lists the three valid alternatives.

### Are there any limitations within the supported file types?

While all three formats support create, read, and modify operations, specific feature availability varies by document type. Excel files support formula calculation capabilities, Word documents support content rendering, and PowerPoint files support slide manipulation—each optimized for their specific Office Open XML schema.