Skip to main content

flux CLI reference

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

Executable prerequisite​

This package does not install the flux executable. Install it separately and ensure flux is available on PATH.

Follow the executable's official documentation for installation instructions.

Package installation​

dotnet add package ModularPipelines.Flux

Resolve the service with context.Tools.Flux. Projects using C# 13 or another .NET language can use context.Tools.Get<ModularPipelines.Flux.Services.IFlux>() instead.

Module example​

Resolve the service in a module, then select a command from the table below. A runnable example is omitted when no command has complete safety metadata:

var flux = context.Tools.Flux;

Global options​

Global options are rendered after the selected subcommand.

CLI optionPropertyAvailabilityDescription
--asAsAll editionsUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.
--as-groupAsGroupAll editionsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.
--as-uidAsUidAll editionsUID to impersonate for the operation.
--as-user-extraAsUserExtraAll editionsUser extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.
--cache-dirCacheDirAll editionsDefault cache directory.
--certificate-authorityCertificateAuthorityAll editionsPath to a cert file for the certificate authority to authenticate the Kubernetes API server
--client-certificateClientCertificateAll editionsPath to a client certificate file for TLS authentication to the Kubernetes API server
--client-keyClientKeyAll editionsPath to a client key file for TLS authentication to the Kubernetes API server
--clusterClusterAll editionsThe name of the kubeconfig cluster to use
--contextContextAll editionsThe name of the kubeconfig context to use
--disable-compressionDisableCompressionAll editionsIf true, opt-out of response compression for all requests to the server
--insecure-skip-tls-verifyInsecureSkipTlsVerifyAll editionsIf true, the Kubernetes API server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kube-api-burstKubeApiBurstAll editionsThe maximum burst queries-per-second of requests sent to the Kubernetes API. (default 300)
--kube-api-qpsKubeApiQpsAll editionsThe maximum queries-per-second of requests sent to the Kubernetes API. (default 50)
--kubeconfigKubeConfigAll editionsPath to the kubeconfig file to use for CLI requests.
--namespaceNamespaceAll editionsIf present, the namespace scope for this CLI request (default "flux-system")
--ns-follows-kube-contextNsFollowsKubeContextAll editionsuse the namespace from the kubeconfig context instead of the default flux-system namespace, can also be set via FLUX_NS_FOLLOWS_KUBE_CONTEXT env var
--serverServerAll editionsThe address and port of the Kubernetes API server
--timeoutTimeoutAll editionstimeout for this operation (default 5m0s)
--tls-server-nameTlsServerNameAll editionsServer name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
--tokenTokenAll editionsBearer token for authentication to the API server
--userUserAll editionsThe name of the kubeconfig user to use
--verboseVerboseAll editionsprint generated objects

Commands​

CLI commandOptions record
flux bootstrapFluxBootstrapOptions
flux bootstrap bitbucket-serverFluxBootstrapBitbucketServerOptions
flux bootstrap gitFluxBootstrapGitOptions
flux bootstrap giteaFluxBootstrapGiteaOptions
flux bootstrap githubFluxBootstrapGithubOptions
flux bootstrap gitlabFluxBootstrapGitlabOptions
flux buildFluxBuildOptions
flux build artifactFluxBuildArtifactOptions
flux build kustomizationFluxBuildKustomizationOptions
flux checkFluxCheckOptions
flux createFluxCreateOptions
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 debugFluxDebugOptions
flux debug helmreleaseFluxDebugHelmreleaseOptions
flux debug kustomizationFluxDebugKustomizationOptions
flux deleteFluxDeleteOptions
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 diffFluxDiffOptions
flux diff artifactFluxDiffArtifactOptions
flux diff kustomizationFluxDiffKustomizationOptions
flux envsubstFluxEnvsubstOptions
flux eventsFluxEventsOptions
flux exportFluxExportOptions
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 getFluxGetOptions
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 listFluxListOptions
flux list artifactsFluxListArtifactsOptions
flux logsFluxLogsOptions
flux migrateFluxMigrateOptions
flux pluginFluxPluginOptions
flux plugin installFluxPluginInstallOptions
flux plugin listFluxPluginListOptions
flux plugin searchFluxPluginSearchOptions
flux plugin uninstallFluxPluginUninstallOptions
flux plugin updateFluxPluginUpdateOptions
flux pullFluxPullOptions
flux pull artifactFluxPullArtifactOptions
flux pushFluxPushOptions
flux push artifactFluxPushArtifactOptions
flux reconcileFluxReconcileOptions
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 resumeFluxResumeOptions
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 suspendFluxSuspendOptions
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 tagFluxTagOptions
flux tag artifactFluxTagArtifactOptions
flux traceFluxTraceOptions
flux treeFluxTreeOptions
flux tree artifactFluxTreeArtifactOptions
flux tree artifact generatorFluxTreeArtifactGeneratorOptions
flux tree kustomizationFluxTreeKustomizationOptions
flux triggerFluxTriggerOptions
flux trigger receiverFluxTriggerReceiverOptions
flux uninstallFluxUninstallOptions
flux versionFluxVersionOptions