2017/05/11 2020/01/07
WORDPRESSには、コマンドライン用のインターフェイスが用意されており最初から導入されているわけではないので自分でインストールしなければならない。
ダウンロード後の作業は一般ユーザで行う必要があります。実行はsudoコマンドでroot権限実行で呼び出します。
$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
$ php wp-cli.phar --info
$ chmod +x wp-cli.phar
$ sudo mv wp-cli.phar /usr/local/bin/wp
$ cd /var/www/docroot
$ wp core verify-checksums
Success: WordPress install verifies against checksums.
$ cd /var/www/docroot
$ wp core verify-checksums
Warning: File doesn't verify against checksum: wp-load.php
Error: WordPress install doesn't verify against checksums.
※参考URL:http://wp-cli.org/