Skip to content

Instantly share code, notes, and snippets.

@YuzuruSano
Created February 14, 2020 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YuzuruSano/42367bf928c1f987b446906e5e612497 to your computer and use it in GitHub Desktop.
Save YuzuruSano/42367bf928c1f987b446906e5e612497 to your computer and use it in GitHub Desktop.
エックスサーバーでwp-cli
■ 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