# reboot

The cldkctl vm reboot command restarts a virtual machine (VM) by specifying its name. This command performs a graceful reboot, shutting down and restarting the VM while preserving its current configuration and resources. Ensure that you have the appropriate permissions and that the VM is currently in a Running state before performing this operation. If the VM is not running, the command will fail with an error message indicating that the VM cannot be rebooted.

## Usage

```
cldkctl vm reboot [name] [flags]
```

## Aliases

```
reboot, restart
```

## Steps

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

1. Run the following command in your terminal and replace \<vm\_name> with your virtual machine name.

```
cldkctl vm reboot <vm_name>
```

2. Ensure that the virtual machine is currently Running before executing the command.
3. The system performs a graceful reboot, stopping and restarting the VM while keeping its configuration intact.
4. If the reboot is successful, a confirmation message “Virtual Machine rebooted” will appear in the terminal.

<img src="/files/gnW4EHTbge8Xw7Kcgkkg" alt="" height="70" width="584">

5. If the VM is not running, an error message similar to the following will appear:

```
✘ Error: failed to reboot virtual machine: Operation cannot be fulfilled...
VM is not running
```

<figure><img src="/files/SvNVvmzBBExCmKcrWjgO" 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 vm reboot command.                         |
| -n, --namespace string | Specifies the cluster namespace to scope the operation. |
| -p, --project string   | Specifies 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-vm/reboot.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.
