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.
<PackageVersion Include="Cmpnnt.Pia.Ctl" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Cmpnnt.Pia.Ctl" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#addin nuget:?package=Cmpnnt.Pia.Ctl&version=0.2.0
                    
Install Cmpnnt.Pia.Ctl as a Cake Addin
#tool nuget:?package=Cmpnnt.Pia.Ctl&version=0.2.0
                    
Install Cmpnnt.Pia.Ctl as a Cake Tool

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.  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.
  • 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 169 7/1/2024
0.1.0 255 3/31/2024