A simple .NET library that embeds the Kubectl CLI.
- .NET 9.0 or later
- Kubectl CLI installed and available in your system's PATH
To get started, you can install the package from NuGet.
dotnet add package DevantlerTech.KubectlCLI
You can execute the Kubectl CLI commands using the Kubectl
class.
using DevantlerTech.KubectlCLI;
var (exitCode, output) = await Kubectl.RunAsync(["arg1", "arg2"]);