CLI Dotnet Tool for the Kubernetes Operator SDK. Helps with generating CRDs and other elements for the Operator.
$ dotnet add package KubeOps.CliThe 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.
To install the KubeOps CLI globally on your machine:
dotnet tool install --global KubeOps.Cli
To install the KubeOps CLI locally in your project:
dotnet new tool-manifest
dotnet tool install --local KubeOps.Cli
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:
If your operator includes webhooks (mutations or validations), additional resources are generated:
Installs the operator and its CRDs into a Kubernetes cluster.
kubeops install
Removes the operator and its CRDs from a Kubernetes cluster.
kubeops uninstall
Displays the current version of the KubeOps CLI.
kubeops version
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.)--force or -f: Skip confirmation prompts--project: Regex pattern to filter projects in a solution--target-framework: Specify target framework for solution projectsThe 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