百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
W

wp-cli-deploy

> 编程语言
开源

一个 WP-Cli 命令,可让您使用 ssh 将本地数据库或上传目录部署到远程服务器。

176 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个 WP-Cli 命令,可让您使用 ssh 将本地数据库或上传目录部署到远程服务器。

Project maintainers welcomed

April, 2016

It just so happened that in the last year, my development interests shifted away from WordPress. As such, I ended up not writing a single line of PHP in over twelve months.

I believe that the tools we build are best when we use them ourselves, and the reality is I don't use wp-cli-deploy anymore, so I decided to hand off maintenance of this project to someone else.

If you’re interested in the gig, ping me on Twitter and we can take it from there.

Update from new project maintainer

May, 2018

I look over this project thinking it would be something I could maintain, but I have recently been using different tools and have left wp-cli-deploy to gather dust. I do plan to incorporate the new tools into the plugin and bring it back up to speed at some point soon.

In the mean time, if someone else wants to take the reigns, you can contact robrecord on Twitter to discuss.

WP-Cli Deploy

Current Version: 1.0.0 (stable), 1.1.0-beta (in dev)

Deploys the local WordPress database or uploads directory.

The tool requires defining a set of constants in your wp-config.php file. The constants should be prefixed with the environment handle which you will use as the first parameter for your desired subcommand. An example configuration for a "dev" environment:

…

yml require: "relative/path/to/deploy.php"

…

php <?php $hipchat_message = "http://%%url%%" . "\njeandoe has successfully %%command%%ed %%what%%"; $command = "if [[ '%%command%%' != 'dump' ]]; then " . "echo '$hipchat_message' | %%abspath%%/hipchat-cli/hipchat_room_message -t 1245678 -r 123456 -f 'WP-Cli Deploy';" . "fi;" . "if [[ '%%command%%' == 'push' ]]; then " . "curl -Ss http://example.com/clear_cache.php?token=12385328523;" . "fi;"; define( 'DEV_POST_HOOK', $command );


__Credits__

* Contributors: [terminalpixel](https://github.com/terminalpixel)
* https://github.com/demental/wp-deploy-flow for inspiration.

Issues· 12 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言