by Katsushi Kawamori on WordPress.org

WP-CLI help screen
/home/www/localhost.test : output path of full pathhttps://localhost.test : url of output homepage--cb1="site.com" --ca1="localhost.test" : cb1 -> Original string | ca1 -> Changed string--cb2="/wordpress" --ca2="/" : cb2 -> Original string | ca2 -> Changed string--s : Only arguments 4-7, which directly specify the URL and file name, are executed.--file1="ja/feed/index.xml" --orgurl1="https://site.com/ja/feed/" : file1 -> Output filename | orgurl1 -> Original url--file2="ja/category/whatsnew-ja/feed/index.xml" --orgur2="https://site.com/ja/category/whatsnew-ja/feed/" : file2 -> Output filename | orgurl2 -> Original url--file3="feed/googleimagesitemap/index.xml" --orgurl3="https://site.com/feed/googleimagesitemap/" : file3 -> Output filename | orgurl3 -> Original url--file4="feed/googlevideossitemap/index.xml" --orgur4="https://site.com/feed/googlevideossitemap/" : file4 -> Output filename | orgurl4 -> Original urloptional argument8(bool) : --c : Outputs file copy status to the console.
Example1 wp static /home/www/localhost.test https://localhost.test
Example2 wp static /home/www/localhost.test https://localhost.test --cb1="site.com" --ca1="localhost.test" --cb2="/wordpress" --ca2="/"
In the html or xml, the original home page is converted to “https://localhost.test”, “site.com” is converted to “localhost.test”, and “/wordpress” is converted to “/”.