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

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.

主站蜘蛛池模板: 新邵县| 广河县| 汉中市| 苍梧县| 基隆市| 涡阳县| 庆云县| 绥宁县| 宁乡县| 宜州市| 隆回县| 梅州市| 海丰县| 牟定县| 敖汉旗| 淮南市| 伊川县| 那坡县| 于田县| 沧州市| 鞍山市| 无极县| 克拉玛依市| 车致| 大兴区| 那曲县| 莱西市| 新巴尔虎右旗| 六安市| 云霄县| 张北县| 浏阳市| 策勒县| 宁海县| 留坝县| 霍林郭勒市| 西盟| 兴仁县| 凤翔县| 平原县| 和顺县|