Skip to content
Skills Library
DevOps & cloud · Tool integration

flux-operator-cli

/flux-operator-cli

Builds Flux manifests locally, diffs YAML files, patches FluxInstance upgrades, creates authentication secrets, traces GitOps delivery pipelines, and bootstraps clusters with the Flux Operator. Use this skill whenever the user mentions flux-operator, FluxInstance, FluxReport, ResourceSet, ResourceSetInputProvider, Flux CD operator management, or asks about GitOps CLI tooling for Kubernetes with Flux. Also trigger when users ask about building Flux manifests, diffing YAML, patching Flux instances, creating Flux secrets, tracing GitOps delivery pipelines, or bootstrapping clusters with Flux. Eve

Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Builds Flux manifests locally, diffs YAML files, patches FluxInstance upgrades, creates authentication secrets, traces GitOps delivery pipelines, and bootstraps clusters with the Flux Operator. Use this skill whenever the user mentions flux-operator, FluxInstance, FluxReport, ResourceSet, ResourceSetInputProvider, Flux CD operator management, or asks about GitOps CLI tooling for Kubernetes with Flux. Also trigger when users ask about building Flux manifests, diffing YAML, patching Flux instances, creating Flux secrets, tracing GitOps delivery pipelines, or bootstrapping clusters with Flux. Eve

Original author description

Builds Flux manifests locally, diffs YAML files, patches FluxInstance upgrades, creates authentication secrets, traces GitOps delivery pipelines, and bootstraps clusters with the Flux Operator. Use this skill whenever the user mentions flux-operator, FluxInstance, FluxReport, ResourceSet, ResourceSetInputProvider, Flux CD operator management, or asks about GitOps CLI tooling for Kubernetes with Flux. Also trigger when users ask about building Flux manifests, diffing YAML, patching Flux instances, creating Flux secrets, tracing GitOps delivery pipelines, or bootstrapping clusters with Flux. Eve

How it works

  1. Installation
  2. Command Overview
  3. Common Patterns
  4. References
  5. Abbreviations
  6. Tips
Original SKILL.md headings · 215 lines, 799 words
SKILL.md preview
---
name: flux-operator-cli
description: >
  Builds Flux manifests locally, diffs YAML files, patches FluxInstance upgrades,
  creates authentication secrets, traces GitOps delivery pipelines, and bootstraps
  clusters with the Flux Operator.
  Use this skill whenever the user mentions flux-operator, FluxInstance, FluxReport,
  ResourceSet, ResourceSetInputProvider, Flux CD operator management, or asks about
  GitOps CLI tooling for Kubernetes with Flux. Also trigger when users ask about
  building Flux manifests, diffing YAML, patching Flux instances, creating Flux secrets,
  tracing GitOps delivery pipelines, or bootstrapping clusters with Flux.
  Even if the user just says "flux operator" or "flux-operator cli" without details,
  this skill has the authoritative reference.
---

# Flux Operator CLI

## Installation

```bash
brew install controlplaneio-fluxcd/tap/flux-operator
```

Uses `~/.kube/config`. Supports offline (no cluster) and online commands.

## Command Overview

Commands fall into two categories: **offline** (no cluster access) and **online** (requires cluster).

### Offline Commands (no cluster needed)

| Command | Purpose |
|---------|---------|
| `build instance` | Generate K8s manifests from a FluxInstance YAML |
| `build rset` | Generate K8s manifests from a ResourceSet YAML |
| `diff yaml <source> <target>` | Compare YAML files, produce RFC 6902 JSON patch |
| `patch instance` | Generate kustomize patches for upgrading Flux controllers |

### Online Commands (cluster access required)

| Command | Purpose |
|---------|---------|
| `get instance\|rset\|rsip\|all` | List Flux Operator resources and their status |
| `export report` | Export FluxReport with distribution status |
| `export resource <kind>/<name>` | Export a Flux resource as YAML/JSON |
| `reconcile instance\|rset\|rsip\|resource\|all` | Trigger reconciliation |
| `suspend instance\|rset\|rsip\|resource` | Pause reconciliation |
| `resume instance\|rset\|rsip\|resource` | Resume reconciliation |
| `delete instance\|rset\|rsip` | Delete Flux resources |
| `stats` | Reconciliation statistics and storage usage |
| `trace <kind>/<name>` | Trace object through GitOps delivery pipeline |
| `tree rset\|ks\|hr` | Visualize managed objects as a tree |
| `wait instance\|rset\|rsip` | Poll until resource is ready |
| `create secret <type>` | Create Kubernetes secrets for Flux |
| `install` | Bootstrap cluster with Flux Operator + instance |
| `uninstall` | Remove Flux Operator from cluster |
| `version` | Show CLI, operator, and distribution versions |

## Common Patterns

### Build and preview manifests locally

```bash
# Build FluxInstance manifests
flux-operator build instance -f flux-instance.yaml

# Build ResourceSet with inputs
flux-operator build rset -f resourceset.yaml \
  --inputs-from inputs.yaml

# Diff two YAML files (local or remote URLs)
flux-operator diff yaml old.yaml new.yaml -o json-patch-yaml
```

### Day-2 cluster operations

```bash
# Check status of everything
flux-operator get all -A

# Filter by readiness
flux-operator get all --ready-status=False

# Reconcile a stuck resource
flux-operator reconcile resource Kustomization/my-app -n default --wait

# Reconcile everything
flux-operator reconcile all --wait

# Trace where an object comes from in the GitOps pipeline
flux-operator trace Deployment/my-app -n default

# View the object tree under a Kustomization
flux-operator tree ks my-app -n default
```

### Upgrade Flux controllers

```bash
# Generate upgrade patches for a target version
flux-operator patch instance -f flux-instance.yaml -v v2.5

# With a custom registry
flux-operator patch instance -f flux-instance.yaml -v v2.5 \
  -r my-registry.example.com/flux

# Verify controllers updated
flux-operator get instance -A
```

### Suspend and resume for maintenance

```bash
# Suspend before maintenance
flux-operator suspend instance flux -n flux-system

# Verify suspended
flux-operator get instance flux -n flux-system

# Resume after maintenance
flux-operator resume instance flux -n flux-system --wait
```

### Delete with safety

```bash
# Delete but keep managed resources in place
flux-operator delete instance flux -n flux-system --with-suspend

# Delete and wait for completion
flux-operator delete rset my-rset -n default --wait

# Verify deletion
flux-operator get all -n default
```

### Bootstrap a cluster

```bash
# Basic install
flux-operator install

# Verify install succeeded
flux-operator get all -A

# Install with Git sync
flux-operator install \
  --instance-sync-url=https://github.com/org/fleet \
  --instance-sync-ref=main \
  --instance-sync-path=clusters/production \
  --instance-sync-creds=username:ghp_token

# Install with cluster tuning
flux-operator install \
  --instance-cluster-type=aws \
  --instance-cluster-size=large \
  --instance-cluster-multitenant
```

### Create secrets for Flux

```bash
# Git SSH auth
flux-operator create secret ssh my-ssh-secret \
  --private-key-file=id_ed25519 \
  --knownhosts-file=known_hosts \
  -n flux-system

# Container registry auth
flux-operator create secret registry my-reg-secret \
  --server=ghcr.io \
  --username=bot \
  --password-stdin \
  -n flux-system

# SOPS age encryption
flux-operator create secret sops my-sops-secret \
  --age-key-file=age.key \
  -n flux-system

# Export as YAML instead of applying (for GitOps)
flux-operator create secret basic-auth my-auth \
  --username=admin --password=secret --export
```

### Uninstall

```bash
# Full removal
flux-operator -n flux-system uninstall

# Keep the namespace
flux-operator -n flux-system uninstall --keep-namespace

# Verify removal
flux-operator version
```

## References

- [references/commands-build-diff-patch.md](references/commands-build-diff-patch.md) - Build, diff, and patch commands
- [references/commands-cluster-ops.md](references/commands-cluster-ops.md) - Cluster operations (get, reconcile, suspend, resume, etc.)
- [references/commands-secrets.md](references/commands-secrets.md) - All create secret subcommands
- [references/commands-skills.md](references/commands-skills.md) - Skills management commands

## Abbreviations

| Short | Full Resource |
|-------|--------------|
| `rset` | ResourceSet |
| `rsip` | ResourceSetInputProvider |
| `ks` | Kustomization |
| `hr` | HelmRelease |

## Tips

- Use `--export` on `create secret` commands to generate YAML without applying — useful
  for GitOps workflows where secrets are managed declaratively.

- `trace` walks backward from any Kubernetes object to find which Flux reconciler
  manages it and where the source manifests live.

- `diff yaml` accepts remote URLs (GitHub, GitLab, Gist, OCI) in addition to local files.

- `patch instance` modifies the FluxInstance YAML in-place and replaces previously
  generated patches, so it's safe to run repeatedly.

- `install` is designed for dev/test environments. For production, use Helm charts.
Files in this package (5)
  • SKILL.md 7 KB
  • references/commands-build-diff-patch.md 4 KB
  • references/commands-cluster-ops.md 11 KB
  • references/commands-secrets.md 7 KB
  • references/commands-skills.md 4 KB

Versions

The database has no other skills named flux-operator-cli.

Database snapshot: 13.11.2026 · package version 7bb77b5caec6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100gitops-knowledge
    Flux CD and Flux Operator expert — answers questions and generates schema-validated YAML for all Flux CRDs (not repo auditing or live cluster debugging). Use when users ask about Flux concepts, want manifests for HelmRelease, Kustomization, GitRepository, OCIRepository,…
  • 100flux-gitops-setup
    Configure flux gitops setup operations. Auto-activating skill for DevOps Advanced. Triggers on: flux gitops setup, flux gitops setup Part of the DevOps Advanced skill category. Use when working with flux gitops setup functionality. Trigger with phrases like "flux gitops setup", "flux setup", "flux".
  • 100ci-cd-flux-gitops-automation
    Use this skill when synchronizing Git repository states and automated container image updates with Kubernetes via Flux CD.
  • 100gitops
    Routes GitOps requests to the correct technology skill and compares ArgoCD and Flux for Kubernetes continuous delivery. WHEN: \"GitOps\", \"GitOps comparison\", \"ArgoCD vs Flux\", \"pull-based deployment\", \"continuous reconciliation\", \"Kubernetes delivery\", \"which GitOps…
  • 100gitops-repo-audit
    Audit and validate Flux CD GitOps repositories by scanning local repo files (not live clusters) — runs Kubernetes schema validation, detects deprecated Flux APIs, reviews RBAC/multi-tenancy/secrets management, and produces a prioritized GitOps report. Use when users ask to…
  • 90kubernetes-operator
    Use when the user asks about Kubernetes, k8s, kubectl, Helm, GitOps, Flux, Argo CD, kustomize, manifests, pods, deployments, services, ingress, Gateway API, RBAC, NetworkPolicy, Pod Security, CRDs, operators, cluster operations, or pasted Kubernetes YAML/errors.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.