# edit

The cldkctl notebook edit command updates the configuration of an existing Jupyter Notebook, including CPU, memory, and storage settings. This command opens an interactive editor that allows you to modify notebook specifications directly, helping you optimize resources according to your workflow needs.

## Usage

```
cldkctl notebook edit [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. Identify the Notebook Name from the Notebook List section.
2. Run the following command in your terminal, and replace \<notebook name> with the name of the notebook you want to edit:

```
cldkctl notebook edit <notebook name>
```

3. The system will open the notebook specification file in the default text editor (e.g., nano or vim), showing the configuration in YAML format. This file includes details such as notebook metadata, resource allocation, image, GPU type, memory, and storage settings.
4. Locate the section under spec: to modify the desired parameters.
5. After making the necessary changes, save and close the editor.
6. Once saved, the system will apply the updated configuration automatically.
7. Wait a few moments for the notebook to reconfigure its environment.

<figure><img src="/files/qGV5pMgz1XwTGuuUgpDv" alt=""><figcaption></figcaption></figure>

## Flags

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

| Flag                   | Description                                           |
| ---------------------- | ----------------------------------------------------- |
| -h, --help             | Help for the edit command.                            |
| -n, --namespace string | Specify the cluster namespace to scope the operation. |
| -p, --project string   | Specify the project ID.                               |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-notebook/edit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
