2020-05-05 18:11:12 -04:00
|
|
|
---
|
2020-05-06 17:36:09 -04:00
|
|
|
layout: docs
|
|
|
|
|
page_title: vagrant powershell - Command-Line Interface
|
2020-05-05 18:11:12 -04:00
|
|
|
description: |-
|
2022-08-08 11:56:36 -04:00
|
|
|
The "vagrant powershell" command is used to open a PowerShell prompt running
|
2020-05-05 18:11:12 -04:00
|
|
|
inside the guest machine.
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# PowerShell
|
|
|
|
|
|
|
|
|
|
**Command: `vagrant powershell`**
|
|
|
|
|
|
|
|
|
|
This will open a PowerShell prompt on the host into a running Vagrant guest machine.
|
|
|
|
|
|
|
|
|
|
This command will only work if the machines supports PowerShell. Not every
|
|
|
|
|
environment will support PowerShell. At the moment, only Windows is supported
|
|
|
|
|
with this command.
|
|
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
|
|
- `-c COMMAND` or `--command COMMAND` - This executes a single PowerShell command,
|
|
|
|
|
prints out the stdout and stderr, and exits.
|