Skip to content

Commit bd0283b

Browse files
Running remote commands from Windows Powershell
Add tips to the doc to run the remote commands
1 parent 48653b4 commit bd0283b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

running-commands-remotely.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@ wp_users:user_email
128128
129129
```
130130

131+
### Running from Windows Powershell
132+
133+
Windows Powershell has a special meaning for the `@` symbol, meaning it cannot be used without quoting or escaping.
134+
To run commands remotly, you need to use one of the following notation.
135+
136+
```sh
137+
$ wp `@dev core version
138+
$ wp "@dev" core version
139+
```
140+
131141
## Making WP-CLI accessible on a remote server
132142

133143
Running a command remotely through SSH requires having `wp` accessible on the `$PATH` on the remote server. Because SSH connections don’t load `~/.bashrc` or `~/.zshrc`, you may need to specify a custom `$PATH` when using `wp --ssh=<host>`. A few ways to make `wp` available on the remote server are:

0 commit comments

Comments
 (0)