Skip to content

devantler/dotnet-flux-cli

Repository files navigation

🔁 .NET Flux CLI

License Test codecov

Show/hide folder structure
.
├── .github
│   ├── scripts
│   └── workflows
├── Devantler.FluxCLI
│   └── runtimes
│       ├── linux-arm64
│       │   └── native
│       ├── linux-x64
│       │   └── native
│       ├── osx-arm64
│       │   └── native
│       ├── osx-x64
│       │   └── native
│       ├── win-arm64
│       │   └── native
│       └── win-x64
│           └── native
└── Devantler.FluxCLI.Tests
    ├── FluxTests
    └── assets

20 directories

A simple .NET library that embeds the Flux CLI.

🚀 Getting Started

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

dotnet add package Devantler.FluxCLI

📝 Usage

You can execute the Flux CLI commands using the Flux class.

using Devantler.FluxCLi;

// Install flux
await Flux.InstallAsync(cancellationToken: cancellationToken);

// Create a new OCI source
await Flux.CreateOCISourceAsync("podinfo", new Uri("oci://ghcr.io/stefanprodan/manifests/podinfo"));

// Create a new Kustomization
await Flux.CreateKustomizationAsync("podinfo", "OCIRepository/podinfo", "");

// Reconcile the source and kustomization
await Flux.ReconcileOCISourceAsync("podinfo").ConfigureAwait(false))
await Flux.ReconcileKustomizationAsync("podinfo").ConfigureAwait(false)

About

A simple .NET library that embeds the Flux CLI.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages