{"id":37053315,"url":"https://github.com/groupdocs-viewer-app/groupdocs.viewer-for-.net-cli","last_synced_at":"2026-01-14T06:00:55.880Z","repository":{"id":40451204,"uuid":"381978653","full_name":"groupdocs-viewer-app/GroupDocs.Viewer-for-.NET-CLI","owner":"groupdocs-viewer-app","description":"CLI - Command-Line Interface for GroupDocs.Viewer for .NET document viewer and automation API.","archived":false,"fork":false,"pushed_at":"2025-12-10T13:30:55.000Z","size":1626,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-12-10T21:14:47.306Z","etag":null,"topics":["cli","csharp","document-viewer","dotnet","groupdocs","viewer"],"latest_commit_sha":null,"homepage":"https://products.groupdocs.com/viewer/net","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/groupdocs-viewer-app.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-01T09:25:55.000Z","updated_at":"2025-12-10T13:30:59.000Z","dependencies_parsed_at":"2023-02-15T17:16:05.628Z","dependency_job_id":"558dcb8c-ea55-4fe6-9485-f96aad18eab3","html_url":"https://github.com/groupdocs-viewer-app/GroupDocs.Viewer-for-.NET-CLI","commit_stats":{"total_commits":39,"total_committers":5,"mean_commits":7.8,"dds":0.4358974358974359,"last_synced_commit":"a6e908aa19d3ca25b2b47f4711018d16b0788a0d"},"previous_names":["groupdocs-viewer-app/groupdocs.viewer-for-.net-cli","groupdocs-viewer/groupdocs.viewer-for-.net-cli"],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/groupdocs-viewer-app/GroupDocs.Viewer-for-.NET-CLI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-app%2FGroupDocs.Viewer-for-.NET-CLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-app%2FGroupDocs.Viewer-for-.NET-CLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-app%2FGroupDocs.Viewer-for-.NET-CLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-app%2FGroupDocs.Viewer-for-.NET-CLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/groupdocs-viewer-app","download_url":"https://codeload.github.com/groupdocs-viewer-app/GroupDocs.Viewer-for-.NET-CLI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupdocs-viewer-app%2FGroupDocs.Viewer-for-.NET-CLI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28412181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","csharp","document-viewer","dotnet","groupdocs","viewer"],"created_at":"2026-01-14T06:00:46.357Z","updated_at":"2026-01-14T06:00:55.849Z","avatar_url":"https://github.com/groupdocs-viewer-app.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLI for GroupDocs.Viewer for .NET\n\n![Nuget](https://img.shields.io/nuget/v/groupdocs.viewer-cli)\n![Nuget](https://img.shields.io/nuget/dt/groupdocs.viewer-cli)\n\n\nCLI - Command Line Interface for [GroupDocs.Viewer for .NET](https://products.groupdocs.com/viewer/net) document viewer and automation API.\n\n## How to install\n\nGroupDocs.Viewer CLI is a dotnet tool. To start using the CLI you'll need the .NET 8 runtime and GroupDocs.Viewer CLI.\n\n1. Install the .NET 8 runtime following the [installation guide](https://dotnet.microsoft.com/download/dotnet/8.0)\n2. Install the dotnet tool by running `dotnet tool install --global groupdocs.viewer-cli`\n3. You can run GroupDocs.Viewer.CLI by using command `groupdocs-viewer`\n\n## Example usage\n\nType `view` command and source filename to convert the file to HTML and place the output in the current directory:\n\n```bash\ngroupdocs-viewer view source.docx\n```\n\nSet `output-format` parameter value to `PDF` to convert document to PDF:\n\n```bash\ngroupdocs-viewer view source.docx --output-format PDF\n```\n\nSet `pages` parameter value to `1,2,3` to convert the first three pages of the document:\n\n```bash\ngroupdocs-viewer view source.docx --output-format pdf --pages 1,2,3\n```\n\nThe `--help` or `view --help` option provides more detail about each parameter. \\\nThe `--version` option provides information about CLI version in use.\n\n## Commands\n\n* `view` converts file to specified `output-format`. The default value is `HTML`.\n\n* `get-view-info` retrieves view details for a specified file that includes list of pages and source file-type.\n\n## Parameters\n\n### Parameters for \"view\" command\n\n* `--file-type`: Source document file type e.g. `DOCX`.\n\n* `--password` [short: `-pwd`]: Password to open password-protected file.\n\n* `--encoding` [short: `-enc`]: Source document encoding e.g `UTF-8`.\n\n* `--pages` [short: `-p`]: Comma-separated page numbers to convert e.g `1,2,3`.\n\n* `--output` [short `-o`]: Output file path when converting to HTML, PNG, and JPG. Or output filename when converting to PDF.\n\n* `--resource-filepath-template`: Resource filepath template when converting to HTML with external resources e.g. `p_{0}_{1}`.\n\n* `--resource-url-format`: Resource URL format for HTML with external resources.\n\n* `--height`: Output image height.\n\n* `--width`: Output image width.\n\n* `--max-height`: Max height for output image.\n\n* `--max-width`: Max width for output image.\n\n### Parameters for \"view\" and \"get-view-info\" commands\n\n* `--license-path`: Path to license file.\n\n* `--output-format` [short: `-f`]: Output format, supported values are `Html`, `HtmlExt`, `Png`, `Jpg`, and `Pdf`.\n\n* `--verbose` [short `-v`]: Enable detailed logging to console.\n\n* `--save-attachments`: Save attachments on disk if selected file support it.\n\n* `--attachments-list`: Get attachments list for selected file if it supported.\n\n\n## Setting the license\n\nWithout a license the tool will work in trial mode so you can convert only first two pages of a document see [Evaluation Limitations and Licensing of GroupDocs.Viewer](https://docs.groupdocs.com/viewer/net/evaluation-limitations-and-licensing-of-groupdocs-viewer/) for more details. A temporary license can be requested at [Get a Temporary License](https://purchase.groupdocs.com/temporary-license).\n\nThe license can be set with `--license-path` parameter:\n\n```bash\ngroupdocs-viewer view source.docx --license-path c:\\\\licenses\\\\GroupDocs.Viewer.lic\n```\n\nAlso, you can set path to the license file in `GROUPDOCS_VIEWER_LICENSE_PATH` environment variable.\n\n## Linux dependencies\n\nTo run on Linux, install the following package dependencies:\n\n* `libc6-dev`\n* `libgdiplus`\n* `libx11-dev`\n* `libfontconfig1`\n* `ttf-mscorefonts-installer`\n\nExample for Debian/Ubuntu (22.04+):\n\n```bash\nsudo apt-get update\nsudo apt-get install -y libc6-dev libgdiplus libx11-dev libfontconfig1 ttf-mscorefonts-installer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroupdocs-viewer-app%2Fgroupdocs.viewer-for-.net-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgroupdocs-viewer-app%2Fgroupdocs.viewer-for-.net-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroupdocs-viewer-app%2Fgroupdocs.viewer-for-.net-cli/lists"}