Updated on 2026-09-01 GMT+08:00

CLI Command Reference (V2)

Namespace

API Name

Command

Description

Operation

Query all Namespaces

hcloud CCI listNamespaces/v2

This API is used to query details about all Namespaces of a user.

Go debug

Create a Namespace

hcloud CCI createNamespace/v2

This API is used to create a Namespace.

Go debug

Delete a namespace

hcloud CCI deleteNamespace/v2

This API is used to delete a Namespace.

Go debug

Query a Specified Namespace

hcloud CCI readNamespace/v2

This API is used to query details about a specified namespace.

Go debug

ConfigMap

API Name

Command

Description

Operation

Query ConfigMaps in a Specified Namespace

hcloud CCI listNamespacedConfigMaps/v2

This API is used to query details about all ConfigMaps in a specified namespace.

Go debug

Create a ConfigMap

hcloud CCI createNamespacedConfigMap/v2

This API is used to create a ConfigMap.

Go debug

Delete the ConfigMap

hcloud CCI deleteNamespacedConfigMap/v2

This API is used to delete a specified ConfigMap in a specified namespace.

Go debug

Replace the ConfigMap

hcloud CCI replaceNamespacedConfigMap/v2

This API is used to replace a specified ConfigMap in a specified namespace.

Go debug

Deployment

API Name

Command

Description

Operation

Query Deployments in a Specified Namespace

hcloud CCI listNamespacedDeployments/v2

This API is used to query details about all Deployments in a specified namespace.

Go debug

Create a Deployment

hcloud CCI createNamespacedDeployment/v2

This API is used to create a Deployment.

Go debug

Delete a Deployment

hcloud CCI deleteNamespacedDeployment/v2

This API is used to delete a specified Deployment in a specified namespace.

Go debug

Query a specified Deployment

hcloud CCI readNamespacedDeployment/v2

This API is used to query details about a specified Deployment in a specified namespace.

Go debug

Update Deployment

hcloud CCI patchNamespacedDeployment/v2

This API is used to update a specified Deployment in a specified namespace.

Go debug

Replace Deployment

hcloud CCI replaceNamespacedDeployment/v2

This API is used to replace a specified Deployment in a specified namespace.

Go debug

HorizontalPodAutoscaler

API Name

Command

Description

Operation

Query HorizontalPodAutoscalers in a specified namespace

hcloud CCI listNamespacedHorizontalPodAutoscalers/v2

This API is used to query details about all HorizontalPodAutoscalers in a specified namespace.

Go debug

Create a HorizontalPodAutoscaler

hcloud CCI createNamespacedHorizontalPodAutoscaler/v2

This API is used to create a HorizontalPodAutoscaler.

Go debug

Delete HorizontalPodAutoscaler

hcloud CCI deleteNamespacedHorizontalPodAutoscaler/v2

This API is used to delete a specified HorizontalPodAutoscaler in a specified namespace.

Go debug

Query the specified HorizontalPodAutoscaler

hcloud CCI readNamespacedHorizontalPodAutoscaler/v2

This API is used to query details about a specified HorizontalPodAutoscaler in a specified namespace.

Go debug

Update HorizontalPodAutoscaler

hcloud CCI patchNamespacedHorizontalPodAutoscaler/v2

This API is used to update a specified HorizontalPodAutoscaler in a specified namespace.

Go debug

Replace HorizontalPodAutoscaler

hcloud CCI replaceNamespacedHorizontalPodAutoscaler/v2

This API is used to replace a specified HorizontalPodAutoscaler in a specified namespace.

Go debug

PersistentVolumeClaim

API Name

Command

Description

Operation

Delete PersistentVolumeClaim

hcloud CCI deleteNamespacedPersistentVolumeClaim/v2

This API is used to delete a specified PersistentVolumeClaim in a specified namespace.

Go debug

Pod

API Name

Command

Description

Operation

Query Pods in a Specified Namespace

hcloud CCI listNamespacedPods/v2

This API is used to query details about all pods in a specified namespace.

Go debug

Create a Pod

hcloud CCI createNamespacedPod/v2

This API is used to create a pod.

Go debug

Delete a Pod

hcloud CCI deleteNamespacedPod/v2

This API is used to delete a specified pod in a specified namespace.

Go debug

Query the specified pod

hcloud CCI readNamespacedPod/v2

This API is used to query details about a specified pod in a specified namespace.

Go debug

ReplicaSet

API Name

Command

Description

Operation

Query ReplicaSets in a specified namespace

hcloud CCI listNamespacedReplicaSets/v2

This API is used to query details about all ReplicaSets in a specified namespace.

Go debug

Secret

API Name

Command

Description

Operation

Query Secrets in a Specified Namespace

hcloud CCI listNamespacedSecrets/v2

This API is used to query details about all secrets in a specified namespace.

Go debug

Create a Secret

hcloud CCI createNamespacedSecret/v2

This API is used to create a secret.

Go debug

Delete Secret

hcloud CCI deleteNamespacedSecret/v2

This API is used to delete a specified secret in a specified namespace.

Go debug

Query the specified secret

hcloud CCI readNamespacedSecret/v2

This API is used to query details about a specified secret in a specified namespace.

Go debug

Replace Secret

hcloud CCI replaceNamespacedSecret/v2

This API is used to replace a specified secret in a specified namespace.

Go debug

Service

API Name

Command

Description

Operation

Query Services in a Specified Namespace

hcloud CCI listNamespacedServices/v2

This API is used to query details about all services in a specified namespace.

Go debug

Create a Service

hcloud CCI createNamespacedService/v2

This API is used to create a Service.

Go debug

Delete a service

hcloud CCI deleteNamespacedService/v2

This API is used to delete a specified service in a specified namespace.

Go debug

Replace a Service

hcloud CCI replaceNamespacedService/v2

This API is used to replace a specified service in a specified namespace.

Go debug

Network

API Name

Command

Description

Operation

Query Networks in a Specified Namespace

hcloud CCI listNamespacedNetworks/v2

This API is used to query details about all Networks in a specified namespace.

Go debug

Create a Network

hcloud CCI createNamespacedNetwork/v2

This API is used to create a Network.

Go debug

Replace a Network

hcloud CCI replaceNamespacedNetwork/v2

This API is used to replace a specified network in a specified namespace.

Go debug

FeatureGate

API Name

Command

Description

Operation

Query feature gate

hcloud CCI readCciFeatureGates/v2

This API is used to query details about a feature gate.

Go debug