Skip to content

devantler/dotnet-k3d-cli

Repository files navigation

③ .NET K3d CLI

License Test codecov

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.

🚀 Getting Started

To get started, you can install the package from NuGet.

dotnet add package Devantler.K3dCLI

📝 Usage

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);

About

A simple .NET library that embeds the K3d CLI.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors 3

  •  
  •  
  •  

Languages