Show/hide folder structure
.
├── .github
│ ├── scripts
│ └── workflows
├── Devantler.KubectlCLI
│ └── runtimes
│ ├── linux-arm64
│ │ └── native
│ ├── linux-x64
│ │ └── native
│ ├── osx-arm64
│ │ └── native
│ ├── osx-x64
│ │ └── native
│ ├── win-arm64
│ │ └── native
│ └── win-x64
│ └── native
└── Devantler.KubectlCLI.Tests
└── KubectlTests
20 directories
A simple .NET library that embeds the Kubectl CLI.
To get started, you can install the package from NuGet.
dotnet add package Devantler.KubectlCLI
You can execute the Kubectl CLI commands using the Kubectl
class.
using Devantler.KubectlCLI;
var (exitCode, output) = await Kubectl.RunAsync(["arg1", "arg2"]);