How to change the “phar path” of WP-CLI
-
Hello.
I’m having a problem right now.I am trying to use WP-CLI and export WordPress as static HTML.
For this, I use [WP2static] as a plugin.When I used the command [wp wp2static generate [URL] [folder]] to export the file, I was able to export the file but found a problem.
The exported file should be [wp-content] correctly, but it was [-content] and [wp] was missing!When I ran the export from the WordPress admin screen without using the WP-CLI to try it out, I was able to do it without problems.
Do I need to set up the WP-CLI in some way?I’ll introduce my development environment.
OS : Cent OS 7.2
Site URL : domain/wp/
Export destination folder: domain/wp/outputI executed [wp –info], and confirmed the state, but basically there seems to be no problem.
However, as a point to be worried about, the item of [phar path] was written as [wp2].
I wrote in the introduction, but the URL of my site [wp] is the correct one.
Could this be the cause of this? If so, please let me know what files I need to open to fix this place up.I’m Japanese, so I’m sorry if there were any weirdness in the text.
Thanks for reading to the end. ??
- The topic ‘How to change the “phar path” of WP-CLI’ is closed to new replies.