Home / Keptn v1 Docs / Release 0.17.x / Reference / Keptn CLI / Commands / keptn upgrade
Upgrades Keptn on a Kubernetes cluster.
The Keptn CLI allows upgrading Keptn on any Kubernetes derivative to which your kube config is pointing to, and on OpenShift.
For more information, please follow the installation guide Upgrade Keptn
keptn upgrade [flags]
keptn upgrade # upgrades Keptn
keptn upgrade --platform=openshift # upgrades Keptn on OpenShift
keptn upgrade --platform=kubernetes # upgrades Keptn on the Kubernetes cluster
      --patch-namespace      Patch the namespace with the annotation & label 'keptn.sh/managed-by: keptn'
  -p, --platform string      The platform to run Keptn on [kubernetes,openshift] (default "kubernetes")
      --skip-upgrade-check   Skip upgrade compatibility check, useful for nightly version upgrades or upgrades to preview versions
      --config-file string   Specify custom Keptn Config file path (default: ~/.keptn/config)
  -h, --help                 help
      --mock                 Disables communication to a Keptn endpoint
  -n, --namespace string     Specify the namespace where Keptn should be installed, used and uninstalled in (default "keptn")
  -q, --quiet                Suppresses debug and info messages
  -v, --verbose              Enables verbose logging to print debug messages
  -y, --yes                  Assume yes for all user prompts