mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
35 lines
1.5 KiB
Text
35 lines
1.5 KiB
Text
---
|
|
layout: docs
|
|
page_title: vagrant reload - Command-Line Interface
|
|
description: |-
|
|
The "vagrant reload" command is the equivalent of running "vagrant halt"
|
|
followed by "vagrant up".
|
|
---
|
|
|
|
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
|
|
> [!IMPORTANT]
|
|
> **Documentation Update:** Product documentation previously located in `/website` has moved to the [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs) repository, where all product documentation is now centralized. Please make contributions directly to `web-unified-docs`, since changes to `/website` in this repository will not appear on developer.hashicorp.com.
|
|
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
|
|
|
|
# Reload
|
|
|
|
**Command: `vagrant reload [name|id]`**
|
|
|
|
The equivalent of running a [halt](/vagrant/docs/cli/halt) followed by an
|
|
[up](/vagrant/docs/cli/up).
|
|
|
|
This command is usually required for changes made in the Vagrantfile to
|
|
take effect. After making any modifications to the Vagrantfile, a `reload`
|
|
should be called.
|
|
|
|
The configured provisioners will not run again, by default. You can force
|
|
the provisioners to re-run by specifying the `--provision` flag.
|
|
|
|
# Options
|
|
|
|
- `--provision` - Force the provisioners to run.
|
|
|
|
- `--provision-with x,y,z` - This will only run the given provisioners. For
|
|
example, if you have a `:shell` and `:chef_solo` provisioner and run
|
|
`vagrant reload --provision-with shell`, only the shell provisioner will
|
|
be run.
|