Restart Services¶
The devbox restart
command combines devbox down
and devbox up
. It stops and removes all services, then updates the project, fetches recent sources, and builds services before starting them.
Note
Like other DevBox commands, this command supports automatic project detection based on your current directory. If automatic detection fails, you can specify the project name explicitly.
Usage¶
Option | Required | Description |
---|---|---|
--name <project-name> |
no | Project name. If not specified, will be detected from Git source |
--profile <profile-name> |
no | Profile to use from your docker-compose.yml file |
Example¶
# Restart current project
devbox restart
# Restart specific project
devbox --name project-name restart