Jerry 1.2.0
dotnet tool install --global Jerry --version 1.2.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Jerry --version 1.2.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Jerry&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Jerry --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Jerry
Jerry, a static web server based on ASP.NET Core
Install
You can choose either method to install Jerry
Compiled Binaries (AOT)
Download executable for your OS platform in Release, without installing .NET runtime.
.NET Tool
Requires .NET 10.0 SDK
dotnet tool install -g Jerry
Docker
docker pull ediwang/jerry
Usage
As .NET Tool or Standalone Executable
Options:
-d, --directory <directory> Web content directory. [default: .]
-p, --port <port> HTTP server port. Must be between 1 and 65535. [default: 8080]
--use-https Enable HTTPS
--directory-browser Directory browser
-v, --verbose Verbose log
--no-cache Disable browser caching for served responses.
--spa-fallback Serve index.html for unknown extensionless paths.
--cert <cert> Path to a PFX certificate file for HTTPS.
--cert-password <cert-password> Password for the PFX certificate file.
--cert-password-env <cert-password-env> Environment variable name that contains the PFX certificate password.
--version Show version information
-?, -h, --help Show help and usage information
Examples
Serve current directory on port 8080
jerry -d .
Serve E:\Workspace\wwwtest on port 8080 with directory browser
jerry -d "E:\Workspace\wwwtest" --directory-browser
Serve a single-page app and disable browser caching
jerry -d "E:\Workspace\spa-dist" --spa-fallback --no-cache
Serve E:\Workspace\wwwtest with HTTPS and a PFX certificate
$env:JERRY_CERT_PASSWORD = "your-cert-password"
jerry -d "E:\Workspace\wwwtest" -p 8443 --cert "E:\certs\localhost.pfx" --cert-password-env JERRY_CERT_PASSWORD
As Docker Container
docker run -p 8080:8080 -v /some/wonderful/wwwtest:/wwwtest ediwang/jerry -d /wwwtest
| 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.