Cmpnnt.Pia.Ctl 0.2.0

dotnet add package Cmpnnt.Pia.Ctl --version 0.2.0                
NuGet\Install-Package Cmpnnt.Pia.Ctl -Version 0.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cmpnnt.Pia.Ctl" Version="0.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cmpnnt.Pia.Ctl --version 0.2.0                
#r "nuget: Cmpnnt.Pia.Ctl, 0.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cmpnnt.Pia.Ctl as a Cake Addin
#addin nuget:?package=Cmpnnt.Pia.Ctl&version=0.2.0

// Install Cmpnnt.Pia.Ctl as a Cake Tool
#tool nuget:?package=Cmpnnt.Pia.Ctl&version=0.2.0                

Cmpnnt.Pia.Ctl

Cmpnnt.Pia.Ctl is a .NET Native AOT wrapper around piactl, the Private Internet Access CLI for Windows and Linux. MacOS support will be added when GitHub makes free runners available.

PIA Sharp's main package, Cmpnnt.Pia.Ctl, has been tested against version 3.3.1 on Windows and Linux. It provides access to every piactl command available in those version on those systems. It might also work on other versions of piactl, provided they expose the same commands with the same parameters. However, this hasn't been tested and nothing is guaranteed.

This package can be used by simply instantiating PiaCtl as follows:

PiaCtl pia = new PiaCtl();
PiaResults results = await pia.GetRegions();
Console.WriteLine(results);

A dependency injection package is also available.

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Cmpnnt.Pia.Ctl:

Package Downloads
Cmpnnt.Pia.DependencyInjection

A .NET/C# wrapper around the Private Internet Access VPN CLI

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0 131 7/1/2024
0.1.0 238 3/31/2024