Skip to main content

flux CLI reference

ModularPipelines.Flux provides strongly typed access to the flux CLI.

Installation

dotnet add package ModularPipelines.Flux

Import ModularPipelines.Flux.Extensions, then resolve the service with context.Flux().

Module example

using ModularPipelines.Context;
using ModularPipelines.Models;
using ModularPipelines.Modules;
using ModularPipelines.Flux.Extensions;
using ModularPipelines.Flux.Options;

public class RunCommandModule : Module<CommandResult>
{
protected override async Task<CommandResult?> ExecuteAsync(
IModuleContext context,
CancellationToken cancellationToken)
{
return await context.Flux().Check(
new FluxCheckOptions(),
cancellationToken: cancellationToken);
}
}

Commands

CLI commandOptions record
flux bootstrap bitbucket-serverFluxBootstrapBitbucketServerOptions
flux bootstrap gitFluxBootstrapGitOptions
flux bootstrap giteaFluxBootstrapGiteaOptions
flux bootstrap githubFluxBootstrapGithubOptions
flux bootstrap gitlabFluxBootstrapGitlabOptions
flux build artifactFluxBuildArtifactOptions
flux build kustomizationFluxBuildKustomizationOptions
flux checkFluxCheckOptions
flux create alertFluxCreateAlertOptions
flux create alert-providerFluxCreateAlertProviderOptions
flux create helmreleaseFluxCreateHelmreleaseOptions
flux create imageFluxCreateImageOptions
flux create image policyFluxCreateImagePolicyOptions
flux create image repositoryFluxCreateImageRepositoryOptions
flux create image updateFluxCreateImageUpdateOptions
flux create kustomizationFluxCreateKustomizationOptions
flux create receiverFluxCreateReceiverOptions
flux create secretFluxCreateSecretOptions
flux create secret gitFluxCreateSecretGitOptions
flux create secret githubappFluxCreateSecretGithubappOptions
flux create secret helmFluxCreateSecretHelmOptions
flux create secret notationFluxCreateSecretNotationOptions
flux create secret ociFluxCreateSecretOciOptions
flux create secret proxyFluxCreateSecretProxyOptions
flux create secret receiverFluxCreateSecretReceiverOptions
flux create secret tlsFluxCreateSecretTlsOptions
flux create sourceFluxCreateSourceOptions
flux create source bucketFluxCreateSourceBucketOptions
flux create source chartFluxCreateSourceChartOptions
flux create source gitFluxCreateSourceGitOptions
flux create source helmFluxCreateSourceHelmOptions
flux create source ociFluxCreateSourceOciOptions
flux create tenantFluxCreateTenantOptions
flux debug helmreleaseFluxDebugHelmreleaseOptions
flux debug kustomizationFluxDebugKustomizationOptions
flux delete alertFluxDeleteAlertOptions
flux delete alert-providerFluxDeleteAlertProviderOptions
flux delete helmreleaseFluxDeleteHelmreleaseOptions
flux delete imageFluxDeleteImageOptions
flux delete image policyFluxDeleteImagePolicyOptions
flux delete image repositoryFluxDeleteImageRepositoryOptions
flux delete image updateFluxDeleteImageUpdateOptions
flux delete kustomizationFluxDeleteKustomizationOptions
flux delete receiverFluxDeleteReceiverOptions
flux delete sourceFluxDeleteSourceOptions
flux delete source bucketFluxDeleteSourceBucketOptions
flux delete source chartFluxDeleteSourceChartOptions
flux delete source gitFluxDeleteSourceGitOptions
flux delete source helmFluxDeleteSourceHelmOptions
flux delete source ociFluxDeleteSourceOciOptions
flux diff artifactFluxDiffArtifactOptions
flux diff kustomizationFluxDiffKustomizationOptions
flux envsubstFluxEnvsubstOptions
flux eventsFluxEventsOptions
flux export alertFluxExportAlertOptions
flux export alert-providerFluxExportAlertProviderOptions
flux export artifactFluxExportArtifactOptions
flux export artifact generatorFluxExportArtifactGeneratorOptions
flux export helmreleaseFluxExportHelmreleaseOptions
flux export imageFluxExportImageOptions
flux export image policyFluxExportImagePolicyOptions
flux export image repositoryFluxExportImageRepositoryOptions
flux export image updateFluxExportImageUpdateOptions
flux export kustomizationFluxExportKustomizationOptions
flux export receiverFluxExportReceiverOptions
flux export sourceFluxExportSourceOptions
flux export source bucketFluxExportSourceBucketOptions
flux export source chartFluxExportSourceChartOptions
flux export source externalFluxExportSourceExternalOptions
flux export source gitFluxExportSourceGitOptions
flux export source helmFluxExportSourceHelmOptions
flux export source ociFluxExportSourceOciOptions
flux get alert-providersFluxGetAlertProvidersOptions
flux get alertsFluxGetAlertsOptions
flux get allFluxGetAllOptions
flux get artifactsFluxGetArtifactsOptions
flux get artifacts generatorsFluxGetArtifactsGeneratorsOptions
flux get helmreleasesFluxGetHelmreleasesOptions
flux get imagesFluxGetImagesOptions
flux get images allFluxGetImagesAllOptions
flux get images policyFluxGetImagesPolicyOptions
flux get images repositoryFluxGetImagesRepositoryOptions
flux get images updateFluxGetImagesUpdateOptions
flux get kustomizationsFluxGetKustomizationsOptions
flux get receiversFluxGetReceiversOptions
flux get sourcesFluxGetSourcesOptions
flux get sources allFluxGetSourcesAllOptions
flux get sources bucketFluxGetSourcesBucketOptions
flux get sources chartFluxGetSourcesChartOptions
flux get sources externalFluxGetSourcesExternalOptions
flux get sources gitFluxGetSourcesGitOptions
flux get sources helmFluxGetSourcesHelmOptions
flux get sources ociFluxGetSourcesOciOptions
flux installFluxInstallOptions
flux list artifactsFluxListArtifactsOptions
flux logsFluxLogsOptions
flux migrateFluxMigrateOptions
flux plugin installFluxPluginInstallOptions
flux plugin listFluxPluginListOptions
flux plugin searchFluxPluginSearchOptions
flux plugin uninstallFluxPluginUninstallOptions
flux plugin updateFluxPluginUpdateOptions
flux pull artifactFluxPullArtifactOptions
flux push artifactFluxPushArtifactOptions
flux reconcile helmreleaseFluxReconcileHelmreleaseOptions
flux reconcile imageFluxReconcileImageOptions
flux reconcile image policyFluxReconcileImagePolicyOptions
flux reconcile image repositoryFluxReconcileImageRepositoryOptions
flux reconcile image updateFluxReconcileImageUpdateOptions
flux reconcile kustomizationFluxReconcileKustomizationOptions
flux reconcile receiverFluxReconcileReceiverOptions
flux reconcile sourceFluxReconcileSourceOptions
flux reconcile source bucketFluxReconcileSourceBucketOptions
flux reconcile source chartFluxReconcileSourceChartOptions
flux reconcile source gitFluxReconcileSourceGitOptions
flux reconcile source helmFluxReconcileSourceHelmOptions
flux reconcile source ociFluxReconcileSourceOciOptions
flux resume alertFluxResumeAlertOptions
flux resume alert-providerFluxResumeAlertProviderOptions
flux resume helmreleaseFluxResumeHelmreleaseOptions
flux resume imageFluxResumeImageOptions
flux resume image policyFluxResumeImagePolicyOptions
flux resume image repositoryFluxResumeImageRepositoryOptions
flux resume image updateFluxResumeImageUpdateOptions
flux resume kustomizationFluxResumeKustomizationOptions
flux resume receiverFluxResumeReceiverOptions
flux resume sourceFluxResumeSourceOptions
flux resume source bucketFluxResumeSourceBucketOptions
flux resume source chartFluxResumeSourceChartOptions
flux resume source gitFluxResumeSourceGitOptions
flux resume source helmFluxResumeSourceHelmOptions
flux resume source ociFluxResumeSourceOciOptions
flux statsFluxStatsOptions
flux suspend alertFluxSuspendAlertOptions
flux suspend alert-providerFluxSuspendAlertProviderOptions
flux suspend helmreleaseFluxSuspendHelmreleaseOptions
flux suspend imageFluxSuspendImageOptions
flux suspend image policyFluxSuspendImagePolicyOptions
flux suspend image repositoryFluxSuspendImageRepositoryOptions
flux suspend image updateFluxSuspendImageUpdateOptions
flux suspend kustomizationFluxSuspendKustomizationOptions
flux suspend receiverFluxSuspendReceiverOptions
flux suspend sourceFluxSuspendSourceOptions
flux suspend source bucketFluxSuspendSourceBucketOptions
flux suspend source chartFluxSuspendSourceChartOptions
flux suspend source gitFluxSuspendSourceGitOptions
flux suspend source helmFluxSuspendSourceHelmOptions
flux suspend source ociFluxSuspendSourceOciOptions
flux tag artifactFluxTagArtifactOptions
flux traceFluxTraceOptions
flux tree artifactFluxTreeArtifactOptions
flux tree artifact generatorFluxTreeArtifactGeneratorOptions
flux tree kustomizationFluxTreeKustomizationOptions
flux trigger receiverFluxTriggerReceiverOptions
flux uninstallFluxUninstallOptions