官术网_书友最值得收藏!

CLI for WordPress

We will be using a tool called WP-CLI, which allows us to do many things in WordPress that traditionally require a web browser.

WP-CLI is the CLI for WordPress. You can update plugins, configure multisite installs, and much more, without using a web browser. For more information on WP-CLI, visit https://WP-CLI.org/, and for WordPress, visit https://wordpress.org/.

For example, the following command will download and set up a WordPress:

wp core install # with some options such as url, title of the website etc. etc.

A complete example can be found at https://developer.WordPress.org/cli/commands/core/#examples:

wp core install --url=example.com --title=Example --admin_user=supervisor --admin_password=strongpassword --admin_email=info@example.com

This example gives us a glimpse of the power of the WP-CLI tool when invoked from an Ansible playbook.

主站蜘蛛池模板: 榆社县| 本溪市| 武胜县| 宜都市| 乌拉特中旗| 石首市| 镇赉县| 腾冲县| 积石山| 信宜市| 宁城县| 都兰县| 遂宁市| 丽水市| 长海县| 宣汉县| 方正县| 崇阳县| 宁强县| 西乌珠穆沁旗| 镇安县| 阿城市| 长葛市| 阜阳市| 沐川县| 灵台县| 杭锦后旗| 蓬安县| 泌阳县| 韶关市| 安化县| 米易县| 乐昌市| 明水县| 右玉县| 清水县| 隆子县| 华阴市| 东乡县| 玛多县| 南木林县|