GroupDocs.Viewer-CLI 26.3.0

Prefix Reserved
dotnet tool install --global GroupDocs.Viewer-CLI --version 26.3.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local GroupDocs.Viewer-CLI --version 26.3.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=GroupDocs.Viewer-CLI&version=26.3.0
                    
nuke :add-package GroupDocs.Viewer-CLI --version 26.3.0
                    

GroupDocs.Viewer CLI

NuGet NuGet Downloads

View documents in the browser from your terminal. Powered by GroupDocs.Viewer for .NET — supports 180+ file formats including PDF, Word, Excel, PowerPoint, images, CAD drawings, archives, ebooks, and source code.

groupdocs-viewer .
   ____                    ____
  / ___|_ __ ___  _   _ _ |  _ \  ___   ___ ___
 | |  _| '__/ _ \| | | | '| | | |/ _ \ / __/ __|
 | |_| | | | (_) | |_| | ,| |_| | (_) | (__\__ \
  \____|_|  \___/ \__,_|_|| ____/ \___/ \___|___/
                          |_|
  V I E W E R  26.3.0

  Serving files from: /home/user/documents
  Listening on: http://localhost:8080/

  Press Ctrl+C to stop the server.

Install

Requires .NET 8 or later.

dotnet tool install --global GroupDocs.Viewer-CLI

Quick Start

View all files in the current directory:

groupdocs-viewer

View files in a specific directory:

groupdocs-viewer ~/documents

Open a single file directly (file browser disabled):

groupdocs-viewer report.pdf

The browser opens automatically at http://localhost:8080/.

Options

Usage: groupdocs-viewer [path] [options]

Arguments:
  path                       File or directory to serve (default: current directory)

Options:
  -p, --port <port>          Port to listen on (default: 8080)
  -b, --bind <address>       Bind address (default: localhost)
      --no-open              Don't auto-open browser
  -l, --license-path <path>  Path to GroupDocs license file
  -t, --viewer-type <type>   Viewer type: Html, HtmlExt, Png, Jpg (default: Html)
  -v, --verbose              Enable verbose logging
      --version              Show version info
  -h, --help                 Show help

Examples

Serve on a custom port:

groupdocs-viewer --port 3000

Use image-based rendering:

groupdocs-viewer --viewer-type Png

Bind to all interfaces (e.g. for Docker or LAN access):

groupdocs-viewer --bind 0.0.0.0

Licensing

Without a license the viewer runs in evaluation mode — only the first 2 pages of each document are rendered.

You can request a free 30-day temporary license at purchase.groupdocs.com/temporary-license.

The license is resolved in the following order:

  1. --license-path option
  2. GROUPDOCS_LIC_PATH environment variable
  3. GroupDocs.Viewer.lic in the current directory
  4. GroupDocs.Viewer.Product.Family.lic in the current directory
# Option
groupdocs-viewer --license-path /path/to/GroupDocs.Viewer.lic

# Environment variable
export GROUPDOCS_LIC_PATH=/path/to/GroupDocs.Viewer.lic
groupdocs-viewer

Docker

docker build -t groupdocs-viewer -f src/GroupDocs.Viewer.Cli/Dockerfile .
docker run -p 8080:8080 -v /path/to/files:/files groupdocs-viewer /files

Linux Dependencies

On Linux, install the following packages:

sudo apt-get update
sudo apt-get install -y libc6-dev libgdiplus libx11-dev libfontconfig1 ttf-mscorefonts-installer

Supported Formats

Category Formats
PDF & XPS PDF, XPS, OXPS, TEX
Microsoft Word DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT
Microsoft Excel XLS, XLSX, XLSM, XLSB, CSV, TSV, XLTX
Microsoft PowerPoint PPT, PPTX, PPS, PPSX, PPTM, POTX, POT
Microsoft Visio VSD, VSDX, VSS, VST, VSTX, VSX, VDW, VDX
Microsoft Project MPP, MPT, MPX
Microsoft Outlook MSG, EML, EMLX, PST, OST
OpenDocument ODT, ODS, ODP, OTT, OTS, OTP, FODG, FODT, FODP
Images TIFF, JPG, PNG, GIF, BMP, PSD, SVG, WEBP, ICO, TGA, JP2, DNG, DJVU
CAD & 3D DXF, DWG, DWT, STL, IFC, DWF, DGN, OBJ, CF2, PLT, HPG
Archives ZIP, TAR, RAR, 7Z, GZ, BZ2, XZ
Ebooks EPUB, MOBI
Web & Markup HTML, MHT, MHTML, XML, CHM
Source Code CS, VB, Java, JS, TS, PY, PHP, SQL, CSS, JSON, and more

See the full list at docs.groupdocs.com/viewer/net/supported-document-formats.

Resources

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
26.3.0 71 3/4/2026
25.12.0 185 1/6/2026
25.11.0 669 11/18/2025
25.4.0 686 5/5/2025
25.3.0 1,028 4/4/2025
25.1.0 1,159 2/7/2025
24.12.0 1,016 12/20/2024
24.11.0 869 12/2/2024
24.10.0 1,108 11/7/2024
24.9.0 1,144 10/2/2024
24.8.0 1,230 9/3/2024
24.7.0 1,106 8/2/2024
24.6.0 1,219 7/2/2024
24.5.0 1,078 5/31/2024
24.4.0 1,168 4/30/2024
24.3.0 2,495 4/1/2024
24.2.0 4,584 3/1/2024
24.1.1 6,571 2/3/2024
23.12.0 8,302 12/29/2023
23.10.0 12,099 10/6/2023
Loading failed