Title: Windows wp-cli soft error?
Last modified: January 17, 2023

---

# Windows wp-cli soft error?

 *  [fuzzy21](https://wordpress.org/support/users/fuzzy21/)
 * (@fuzzy21)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/windows-wp-cli-soft-error/)
 * I’m trying to configure and run wp-cli on Windows 2016.
 * D:\public_htdocs>php “wp-cli.phar”
   PHP Warning: Undefined array key “SERVER_NAME”
   in phar://D:/public_htdocs/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.
   php(1296) : eval()’d code on line 55NAME
 * wp
 * DESCRIPTION
 * Manage WordPress through the command-line.
 * …
 * wp.cmd contents:
 * php “wp-cli.phar” %*
 * D:\public_htdocs>echo %path%
   C:\Windows\system32;C:\Windows;C:\Windows\System32\
   Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\ivantiscan\AppData\
   Local\Microsoft\WindowsApps;;D:\php-8.0.23-Win32-vs16-x64;D:\php-8.0.23-Win32-
   vs16-x64\ext;D:\php-8.0.23-Win32-vs16-x64\lib;d:\public_htdocs
 * Ultimately, I need to run a search and replace for the domain.
 * d:\public_htdocs>php “wp-cli.phar” search-replace ‘mydomain.com’ ‘mydevdomain.
   com’ –dry-run
   PHP Warning: Undefined array key “SERVER_NAME” in phar://D:/public_htdocs/
   wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()’d code 
   on line 55+—————————–+———————–+————–+——+| Table | Column | Replacements | Type
   |+—————————–+———————–+————–+——+| sdg_actionscheduler_actions | hook | 0 | SQL
   || sdg_actionscheduler_actions | status | 0 | SQL || sdg_actionscheduler_actions
   | args | 0 | SQL || sdg_actionscheduler_actions | schedule | 0 | PHP |
 * …
 * Search and replace doesn’t seem to find anything to update either.
 * Is that server error just a soft error?

Viewing 1 replies (of 1 total)

 *  Thread Starter [fuzzy21](https://wordpress.org/support/users/fuzzy21/)
 * (@fuzzy21)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/windows-wp-cli-soft-error/#post-16382105)
 * Well, the single quote is not needed, they’re taken as literal…seems to work.

Viewing 1 replies (of 1 total)

The topic ‘Windows wp-cli soft error?’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 1 participant
 * Last reply from: [fuzzy21](https://wordpress.org/support/users/fuzzy21/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/windows-wp-cli-soft-error/#post-16382105)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
