OfficeForge.Cli
0.1.0
dotnet tool install --global OfficeForge.Cli --version 0.1.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local OfficeForge.Cli --version 0.1.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=OfficeForge.Cli&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package OfficeForge.Cli --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
officeforge
Cross-platform .NET library and CLI to create, edit and convert Word/Excel/PowerPoint documents, built on the OpenXML SDK.
Server-side Office document generation on Linux/CI without Office installed and without COM interop - the popular tools in this space are Windows-bound.
Install
dotnet add package OfficeForge # library
dotnet tool install -g OfficeForge.Cli # CLI (command: officeforge)
Quickstart
using OfficeForge;
using OfficeForge.Export;
using OfficeForge.Models;
// Create a workbook, write cells, save
var workbook = new WorkbookModel();
var sheet = workbook.AddSheet("Report");
sheet["A1"] = CellValue.FromText("Revenue");
sheet["B1"] = CellValue.FromNumber(42500.75);
OfficeDocument.SaveWorkbook(workbook, "report.xlsx");
// Open it back and read a cell
var loaded = OfficeDocument.OpenWorkbook("report.xlsx");
Console.WriteLine(loaded.Sheets[0]["B1"]); // 42500.75
// Export any document to markdown
Console.WriteLine(OfficeDocument.Export("report.xlsx", ExportFormat.Markdown));
CLI:
officeforge write-cell report.xlsx B2 1999.5 # creates the file if missing
officeforge read-cell report.xlsx B2
officeforge convert report.xlsx --format markdown
Features
| Area | Support |
|---|---|
| Excel (.xlsx) | read, write, cell-level editing, formulas |
| Word (.docx) | read, write (paragraphs, headings, tables) |
| PowerPoint (.pptx) | read (slides, text, notes) |
| Templates | {{key}} placeholder fill in .docx and .xlsx |
| Export | text, markdown, json from any supported format |
Requirements
- .NET 10.0
- No Microsoft Office, no COM interop
- Linux, macOS, Windows
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 244 | 7/11/2026 |