1--- 2layout: "docs" 3page_title: "Commands: alloc restart" 4sidebar_current: "docs-commands-alloc-restart" 5description: > 6 Restart a running allocation or task 7--- 8 9# Command: alloc restart 10 11The `alloc restart` command allows a user to perform an in place restart of an 12an entire allocation or individual task. 13 14## Usage 15 16```plaintext 17nomad alloc restart [options] <allocation> <task> 18``` 19 20This command accepts a single allocation ID and a task name. The task name must 21be part of the allocation and the task must be currently running. The task name 22is optional and if omitted every task in the allocation will be restarted. 23 24## General Options 25 26<%= partial "docs/commands/_general_options" %> 27 28## Restart Options 29 30- `-verbose`: Display verbose output. 31 32## Examples 33 34```shell 35$ nomad alloc restart eb17e557 36 37$ nomad alloc restart eb17e557 foo 38Could not find task named: foo, found: 39* test 40<blocking> 41``` 42