> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-vm/reboot.md).

# 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/SvNVvmzBBExCmKcrWjgO" 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.                               |
