WorkaHolic

wp-cli 설치 본문

Develop/WordPress

wp-cli 설치

Programics 2019. 3. 22. 10:57
반응형

wp-cli(The command line interface for WordPress)

wp-cli.org

 

순서대로 실행 (마지막 wp --info가 정상적으로 나오면 설치 완료)

 

$ 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

 

$ wp --info

OS: Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64

Shell: /bin/zsh PHP binary: /usr/local/bin/php PHP version: 7.0.22 php.ini used: /etc/local/etc/php/7.0/php.ini

WP-CLI root dir: /home/wp-cli/.wp-cli/vendor/wp-cli/wp-cli

WP-CLI vendor dir: /home/wp-cli/.wp-cli/vendor

WP-CLI packages dir: /home/wp-cli/.wp-cli/packages/

WP-CLI global config: /home/wp-cli/.wp-cli/config.yml

WP-CLI project config: WP-CLI version: 2.1.0

 

 

반응형

'Develop > WordPress' 카테고리의 다른 글

관리자 비밀번호 변경(wp_set_password)  (0) 2020.03.10
주소(URL) 변경 및 고정  (0) 2020.03.10
업로드(UPLOADS) 위치 변경  (0) 2020.03.10
디버그(WP_DEBUG) 모드 활성화  (0) 2020.03.10
wp-cli 사용법  (0) 2019.03.22