:_mod-docs-content-type: ASSEMBLY
[id="updating-cluster-cli"]
= Updating a cluster using the CLI
include::_attributes/common-attributes.adoc[]
:context: updating-cluster-cli

toc::[]

[role="_abstract"]
You can perform minor version and patch updates on an {product-title} cluster by using the {oc-first}.

////
All OpenShift advisories link directly to this assembly. If you are doing work that changes the URL, DON'T!
But if you really need to, please contact the release notes team so they can change the advisory templates. These templates are not part of the openshift-docs repo.
////

// About updating single node {product-title}
include::modules/updating-sno.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources

* xref:../../architecture/control-plane.adoc#about-machine-config-operator_control-plane[About the Machine Config Operator]

include::modules/updating-cli-prereqs.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources
* xref:../../architecture/architecture-installation.adoc#unmanaged-operators_architecture-installation[Support policy for unmanaged Operators]
* xref:../../authentication/using-rbac.adoc#using-rbac[Using RBAC to define and apply permissions]
* xref:../../backup_and_restore/control_plane_backup_and_restore/backing-up-etcd.adoc#backup-etcd[Backing up etcd]
* xref:../../backup_and_restore/application_backup_and_restore/installing/oadp-backup-restore-csi-snapshots.adoc#oadp-1-3-backing-csi-snapshots_oadp-backup-restore-csi-snapshots[Backing up persistent volumes with CSI snapshots]
* xref:../../operators/admin/olm-upgrading-operators.adoc#olm-upgrading-operators[Updating installed Operators]
* xref:../../updating/preparing_for_updates/preparing-manual-creds-update.adoc#preparing-manual-creds-update[Preparing to update a cluster with manually maintained credentials]

// Pausing a MachineHealthCheck resource
include::modules/machine-health-checks-pausing.adoc[leveloffset=+1]

// Updating a cluster by using the CLI
include::modules/update-upgrading-cli.adoc[leveloffset=+1]

ifndef::openshift-origin[]
[role="_additional-resources"]
.Additional resources

* xref:../../updating/updating_a_cluster/control-plane-only-update.adoc#control-plane-only-update[Performing a Control Plane Only update]
* xref:../../updating/understanding_updates/understanding-update-channels-release.adoc#understanding-update-channels-releases[Understanding update channels and releases]
endif::openshift-origin[]

// Cluster update status using oc adm upgrade status
include::modules/update-oc-adm-upgrade-status.adoc[leveloffset=+1]

// Changing the update server by using the CLI
include::modules/update-changing-update-server-cli.adoc[leveloffset=+1]
