Show/hide folder structure
.
├── .github
│ ├── scripts
│ └── workflows
├── Devantler.K3dCLI
│ └── runtimes
│ ├── linux-arm64
│ │ └── native
│ ├── linux-x64
│ │ └── native
│ ├── osx-arm64
│ │ └── native
│ ├── osx-x64
│ │ └── native
│ └── win-x64
│ └── native
└── Devantler.K3dCLI.Tests
├── K3dTests
└── assets
18 directories
A simple .NET library that embeds the K3d CLI.
To get started, you can install the package from NuGet.
dotnet add package Devantler.K3dCLI
You can execute the K3d CLI commands using the K3d
class.
using Devantler.K3dCLI;
// Create a new K3d cluster
_ = await K3d.CreateClusterAsync("my-cluster", "path/to/k3d-config.yaml", cancellationToken);
// List all K3d clusters
_ = await K3d.ListClustersAsync(cancellationToken);
// Stop a K3d cluster
_ = await K3d.StopClusterAsync("my-cluster", cancellationToken);
// Start a K3d cluster
_ = await K3d.StartClusterAsync("my-cluster", cancellationToken);
// Delete a K3d cluster
_ = await K3d.DeleteClusterAsync("my-cluster", cancellationToken);