# cldkctl edit

The edit command modifies an existing Kubernetes resource directly from the command line. This allows users to update configuration fields of pods, services, deployments, daemonsets, and other supported resources. When executed, this command typically opens the resource manifest in the default text editor (for example, vim), allowing live editing and saving changes back to the cluster.

## Usage

```
cldkctl edit [flags]
```

```
cldkctl edit [subcommand] [flags]

```

## Available command

<table><thead><tr><th width="248.6666259765625">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>clusterrole</code></td><td>Modify an existing ClusterRole</td></tr><tr><td><code>clusterrolebinding</code></td><td>Modify an existing ClusterRoleBinding</td></tr><tr><td><code>configmap</code></td><td>Modify a ConfigMap’s configuration</td></tr><tr><td><code>daemonset</code></td><td>Modify a DaemonSet’s configuration</td></tr><tr><td><code>datavolume</code></td><td>Modify a Data Volume’s configuration</td></tr><tr><td><code>deployment</code></td><td>Modify a Deployment’s configuration</td></tr><tr><td><code>ingress</code></td><td>Modify an Ingress resource’s configuration</td></tr><tr><td><code>ingressclass</code></td><td>Modify an Ingress Class’s configuration</td></tr><tr><td><code>persistentvolume</code></td><td>Modify a Persistent Volume’s configuration</td></tr><tr><td><code>persistentvolumeclaim</code></td><td>Modify a Persistent Volume Claim’s configuration</td></tr><tr><td><code>pod</code></td><td>Modify a Pod’s configuration</td></tr><tr><td><code>role</code></td><td>Modify an existing Role’s configuration</td></tr><tr><td><code>secret</code></td><td>Modify a Secret’s data</td></tr><tr><td><code>service</code></td><td>Modify a Service’s configuration</td></tr><tr><td><code>serviceaccount</code></td><td>Modify a Service Account’s configuration</td></tr><tr><td><code>statefulset</code></td><td>Modify a StatefulSet’s configuration</td></tr></tbody></table>

## Flags

{% hint style="info" %}
This command supports [global flags.](https://docs.cloudeka.ai/cloudeka-api-list/global-flags) Refer to the Global Flags section for details.
{% endhint %}

| Column                 | Description                                        |
| ---------------------- | -------------------------------------------------- |
| -h, --help             | Help for the edit command.                         |
| -n, --namespace string | Specify the Kubernetes namespace for the resource. |
| -p, --project string   | Specify the project ID.                            |
