flux commands
29 commands, each with a one-line explanation. Click a command to copy it, or its title for details.
Commands 29 shown
-
flux checkVerify all Flux controllers are running and CRDs are installed
-
flux get all -ASummary table: Kustomizations, HelmReleases, Sources — with sync status
-
flux reconcile kustomization <name> --with-source -n <ns>Trigger immediate git pull + apply
-
flux reconcile helmrelease <name> --with-source -n <ns>Re-run Helm install/upgrade cycle immediately
-
flux trace <kind>/<name> -n <ns>Show which Flux objects own and manage this resource
-
flux suspend kustomization <name> -n <ns>Pause sync — useful while doing manual hotfixes
-
flux resume kustomization <name> -n <ns>Re-enable a suspended Kustomization or HelmRelease
-
flux export kustomization --all > clusters/cluster.yamlBackup current Flux config as plain YAML for bootstrapping another cluster
-
flux bootstrap github --owner=<org> --repository=<repo> --branch=main --path=clusters/production --personalInstall Flux and push initial config to GitHub repo
-
flux create source git <name> --url=https://github.com/org/repo --branch=main -n flux-systemRegister a git repo as a Flux source
-
flux create source helm <name> --url=https://charts.example.com -n flux-systemRegister a Helm chart repository as a Flux source
-
flux create helmrelease <name> --source=HelmRepository/<repo> --chart=<chart> --chart-version='>=1.0.0' -n <ns>Deploy a chart via Flux HelmRelease resource
-
kubectl get events -n flux-system --sort-by='.lastTimestamp' | tail -20Recent events from the flux-system namespace
-
flux delete kustomization <name> -n <ns>Remove a Kustomization or HelmRelease from the cluster
-
flux create image update <name> --git-repo-ref=<repo> --git-repo-path=./deploy --checkout-branch=main --push-branch=main -n flux-systemAuto-update image tags in git when new images are pushed
-
flux logs --kind=kustomize-controller -n flux-system --tail=50Follow logs from a specific Flux controller
-
flux create image policy <name> --image-ref=<image-repo> --select-semver='>=1.0.0' -n flux-systemDefine which image tags Flux should track for automation
-
flux create source oci <name> --url=oci://reg/repo --tag-semver='>=1.0.0' --interval=5mTrack an OCI artifact by semver range instead of git; modern: GitOps from a registry
-
flux push artifact oci://reg/manifests:$(git rev-parse --short HEAD) --path=./manifests --source=$(git config --get remote.origin.url) --revision=$(git rev-parse HEAD)Package manifests into an OCI artifact tagged by commit; note: embeds source+revision metadata
-
flux diff kustomization <name> --path ./overlays/prodServer-side dry-run showing exactly what Flux would change before applying
-
flux tree kustomization <name>List every object a kustomization owns, including nested kustomizations
-
flux build kustomization <name> --path ./ | kubectl apply --dry-run=server -f -Render the final manifests offline with Flux substitutions, then validate server-side
-
flux get images all -AShow all ImageRepositories, policies and update automations across namespaces
-
flux get image policy -A && flux get image repository -ASee which tag each policy selected and last scan results per repository
-
flux create provider slack --type slack --secret-ref webhook && flux create alert prod --provider-ref slack --event-source 'Kustomization/*' --event-severity infoWire reconcile events to Slack via a provider+alert; note: webhook lives in a secret
-
flux create receiver github --type github --event github:push --secret-ref webhook-token --resource GitRepository/<name>Generate a webhook URL so git pushes trigger instant reconcile instead of polling
-
flux reconcile source git <name>Pull the latest commit now without touching dependent kustomizations
-
flux events --for Kustomization/<name>Stream the reconcile event history for one object to diagnose drift or failures
-
flux create kustomization app --source=GitRepository/<name> --path=./app --depends-on=infra --prune=true --interval=10mBlock app reconcile until infra kustomization is ready; note: enforces apply ordering
no commands match — try a different search