KubeOps.Cli
15.0.0
See the version list below for details.
dotnet tool install --global KubeOps.Cli --version 15.0.0
dotnet new tool-manifest
dotnet tool install --local KubeOps.Cli --version 15.0.0
#tool dotnet:?package=KubeOps.Cli&version=15.0.0
nuke :add-package KubeOps.Cli --version 15.0.0
KubeOps CLI
The KubeOps CLI is a command-line tool designed to simplify the development and management of Kubernetes Operators using .NET. It provides utilities for generating Custom Resource Definitions (CRDs) and managing operator-related tasks.
Installation
Global Installation
To install the KubeOps CLI globally on your machine:
dotnet tool install --global KubeOps.Cli
Local Installation
To install the KubeOps CLI locally in your project:
dotnet new tool-manifest
dotnet tool install --local KubeOps.Cli
Available Commands
Generate
Generates Custom Resource Definitions (CRDs) and other Kubernetes-related resources for your operator.
kubeops generate
The generate operator command creates all necessary resources for deploying your operator to Kubernetes:
- RBAC Rules: Role-based access control configurations
- Dockerfile: Container image definition for your operator
- Deployment: Kubernetes deployment configuration
- CRDs: Custom Resource Definitions based on your C# entities
- Namespace: A dedicated namespace for your operator
- Kustomization: Kustomize configuration for managing all resources
If your operator includes webhooks (mutations or validations), additional resources are generated:
- CA and Server Certificates: For secure webhook communication
- Webhook Configurations: For validation and mutation webhooks
- Service: For exposing webhook endpoints
- Secret Generators: For managing webhook certificates
Generated CRDs explicitly use conversion.strategy: None unless a conversion webhook is registered for the CRD.
When one is registered, the strategy is Webhook and the corresponding webhook client configuration is generated.
Install
Installs the operator and its CRDs into a Kubernetes cluster.
kubeops install
Uninstall
Removes the operator and its CRDs from a Kubernetes cluster.
kubeops uninstall
Version
Displays the current version of the KubeOps CLI.
kubeops version
Global Options
All commands support the following global options:
--no-ansi: Disable ANSI colored output. This is automatically enabled when running in CI/CD environments (GitHub Actions, Azure Pipelines, Jenkins, GitLab CI, etc.)--forceor-f: Skip confirmation prompts--project: Regex pattern to filter projects in a solution--target-framework: Specify target framework for solution projects
Usage
The KubeOps CLI is designed to be used within .NET projects that implement Kubernetes operators. It helps streamline the development process by automating common tasks such as CRD generation and operator deployment.
For more detailed information about each command, use the --help flag:
kubeops [command] --help
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 15.1.0-prerelease.2 | 0 | 12/4/2026 |
| 15.1.0-prerelease.1 | 0 | 12/4/2026 |
| 15.0.1-prerelease.7 | 0 | 12/4/2026 |
| 15.0.1-prerelease.6 | 0 | 12/4/2026 |
| 15.0.1-prerelease.5 | 0 | 12/4/2026 |
| 15.0.1-prerelease.4 | 42 | 12/3/2026 |
| 15.0.1-prerelease.3 | 50 | 12/3/2026 |
| 15.0.1-prerelease.2 | 55 | 12/3/2026 |
| 15.0.1-prerelease.1 | 51 | 12/3/2026 |
| 15.0.0 | 249 | 12/1/2026 |
| 15.0.0-prerelease.9 | 69 | 11/29/2026 |
| 15.0.0-prerelease.8 | 75 | 11/29/2026 |
| 15.0.0-prerelease.7 | 74 | 11/28/2026 |
| 15.0.0-prerelease.6 | 61 | 11/28/2026 |
| 15.0.0-prerelease.5 | 78 | 11/27/2026 |
| 15.0.0-prerelease.4 | 76 | 11/25/2026 |
| 15.0.0-prerelease.3 | 65 | 11/25/2026 |
| 15.0.0-prerelease.2 | 77 | 11/25/2026 |
| 15.0.0-prerelease.1 | 78 | 11/24/2026 |
| 14.1.0 | 313 | 11/24/2026 |
'## [15.0.0](https://github.com/dotnet/dotnet-operator-sdk/compare/v14.1.0...v15.0.0) (2026-12-01)
### ⚠ BREAKING CHANGES
* See the [migration guide](https://dotnet.github.io/dotnet-operator-sdk/docs/operator/help/migration#upgrading-from-v14-to-v15) for upgrading from v14 to v15.
* **abstractions:** add controller references and deduplicate owner references (#1355)
* **client:** write the status with server-side apply (#1354)
* **client:** remove force from the JSON patch overloads (#1353)
* **aspire:** build AddKubeOps on path-based Aspire 17 projects (#1340)
### Features
* **abstractions:** add controller references and deduplicate owner references ([#1355](https://github.com/dotnet/dotnet-operator-sdk/issues/1355)) ([4979abe](https://github.com/dotnet/dotnet-operator-sdk/commit/4979abedde3642f61b32cefa9e2abab8d11caa91)), closes [#1348](https://github.com/dotnet/dotnet-operator-sdk/issues/1348)
* **aspire:** build AddKubeOps on path-based Aspire 17 projects ([#1340](https://github.com/dotnet/dotnet-operator-sdk/issues/1340)) ([efeb280](https://github.com/dotnet/dotnet-operator-sdk/commit/efeb2804b98f88bf6929c7d5d7469d8b79e3b886))
* **client:** write the status with server-side apply ([#1354](https://github.com/dotnet/dotnet-operator-sdk/issues/1354)) ([af55fb8](https://github.com/dotnet/dotnet-operator-sdk/commit/af55fb81fd4e61e6e9453b70826650c0b5bd9f3c)), closes [#1351](https://github.com/dotnet/dotnet-operator-sdk/issues/1351) [#1348](https://github.com/dotnet/dotnet-operator-sdk/issues/1348)
* **operator:** identify the operator by name in the user agent ([#1348](https://github.com/dotnet/dotnet-operator-sdk/issues/1348)) ([b30a2ba](https://github.com/dotnet/dotnet-operator-sdk/commit/b30a2ba28ea4773bc91108d8a381c9bf53c2ce41)), closes [#1349](https://github.com/dotnet/dotnet-operator-sdk/issues/1349)
### Bug Fixes
* **client:** apply the operations filter to the sent patch ([#1350](https://github.com/dotnet/dotnet-operator-sdk/issues/1350)) ([69d98db](https://github.com/dotnet/dotnet-operator-sdk/commit/69d98db8fddfbcd961475e1169b7b45a1477e587)), closes [#925](https://github.com/dotnet/dotnet-operator-sdk/issues/925)
* **client:** remove force from the JSON patch overloads ([#1353](https://github.com/dotnet/dotnet-operator-sdk/issues/1353)) ([c90a76a](https://github.com/dotnet/dotnet-operator-sdk/commit/c90a76a714dd23d230302d2b9de06f764f8d3f45)), closes [#1047](https://github.com/dotnet/dotnet-operator-sdk/issues/1047) [#1350](https://github.com/dotnet/dotnet-operator-sdk/issues/1350) [1348/#1351](https://github.com/1348/dotnet-operator-sdk/issues/1351)
* **cli:** order target frameworks by platform again ([#1352](https://github.com/dotnet/dotnet-operator-sdk/issues/1352)) ([23a5528](https://github.com/dotnet/dotnet-operator-sdk/commit/23a5528b570df1b53f85924241a74e1d0ea6fe46)), closes [#876](https://github.com/dotnet/dotnet-operator-sdk/issues/876)
* **cli:** point the conversion webhook at the operator service ([#1357](https://github.com/dotnet/dotnet-operator-sdk/issues/1357)) ([ef0500c](https://github.com/dotnet/dotnet-operator-sdk/commit/ef0500cbaaa2be15ba85cfbc755d12267df67944)), closes [#976](https://github.com/dotnet/dotnet-operator-sdk/issues/976) [#1061](https://github.com/dotnet/dotnet-operator-sdk/issues/1061)
* **docs:** ship the favicon and the social card image ([#1360](https://github.com/dotnet/dotnet-operator-sdk/issues/1360)) ([b42ffae](https://github.com/dotnet/dotnet-operator-sdk/commit/b42ffaefbec39b31da3910f7faa91baf3de7c723)), closes [#898](https://github.com/dotnet/dotnet-operator-sdk/issues/898)
### Dependencies
* **test:** update dependency kubernetesclient to 21.0.41 ([#1349](https://github.com/dotnet/dotnet-operator-sdk/issues/1349)) ([11528d1](https://github.com/dotnet/dotnet-operator-sdk/commit/11528d19f18e7532f42b0920cc8ebf124702f536))
### Documentation
* restructure the sidebar ([#1359](https://github.com/dotnet/dotnet-operator-sdk/issues/1359)) ([5961c23](https://github.com/dotnet/dotnet-operator-sdk/commit/5961c236b59557e9281ebda4b220ddcf8db15651))
'