+@click.command(
+ name="cluster-upgrade", short_help="changes the version of a K8s cluster"
+)
+@click.argument("name")
+@click.option("--version", prompt=True, help="Kubernetes version")
+@click.pass_context
+def cluster_upgrade(ctx, name, version, **kwargs):
+ """changes the version of a K8s cluster
+
+ NAME: name or ID of the K8s cluster
+ """
+ logger.debug("")
+ cluster_changes = {
+ "k8s_version": version,
+ }
+ ctx.obj.cluster.upgrade(name, cluster_changes)
+
+
+@click.command(name="cluster-scale", short_help="scales a K8s cluster")
+@click.argument("name")
+@click.option("--node-count", "-n", prompt=True, type=int, help="number of nodes")
+@click.pass_context
+def cluster_scale(ctx, name, node_count, **kwargs):
+ """scales the number of nodes of a K8s cluster
+
+ NAME: name or ID of the K8s cluster
+ """
+ logger.debug("")
+ cluster_changes = {
+ "node_count": node_count,
+ }
+ ctx.obj.cluster.scale(name, cluster_changes)
+
+