// Module included in the following assemblies:
//
// * updating/updating-cluster-cli.adoc
// * updating/updating-cluster-rhel-compute.adoc

:_content-type: PROCEDURE
[id="update-changing-update-server-cli_{context}"]
= Changing the update server by using the CLI

Changing the update server is optional. If you have an OpenShift Update Service (OSUS) installed and configured locally, you must set the URL for the server as the `upstream` to use the local server during updates. The default value for `upstream` is `\https://api.openshift.com/api/upgrades_info/v1/graph`.

.Procedure

* Change the `upstream` parameter value in the cluster version:
+
[source,terminal]
----
$ oc patch clusterversion/version --patch '{"spec":{"upstream":"<update-server-url>"}}' --type=merge
----
The `<update-server-url>` variable specifies the URL for the update server.
+
.Example output
+
[source,terminal]
----
clusterversion.config.openshift.io/version patched
----
