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

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.

主站蜘蛛池模板: 松桃| 吴堡县| 年辖:市辖区| 百色市| 忻州市| 金寨县| 德兴市| 化隆| 手机| 来安县| 黔西| 易门县| 区。| 福州市| 巴彦淖尔市| 贵南县| 中宁县| 蒲城县| 文山县| 汶川县| 嵊泗县| 仁布县| 榕江县| 上蔡县| 城步| 衡山县| 革吉县| 龙泉市| 遂平县| 新邵县| 高清| 锦州市| 洪泽县| 东台市| 化州市| 横峰县| 福清市| 连江县| 义马市| 泸西县| 驻马店市|