Created
February 14, 2020 05:42
-
-
Save YuzuruSano/42367bf928c1f987b446906e5e612497 to your computer and use it in GitHub Desktop.
エックスサーバーでwp-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
■ DL&設置 | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
chmod +x wp-cli.phar | |
■ 移動 | |
~/usr/local/bin/wp/wp-cli.phar | |
■ bashでコマンド化 | |
echo 'alias wp="/opt/php-7.3/bin/php ~/usr/local/bin/wp/wp-cli.phar"' >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment