carmelosantana/coqui-toolkit-wp-cli
Composer 安装命令:
composer require carmelosantana/coqui-toolkit-wp-cli
包简介
WP-CLI toolkit for Coqui — manage WordPress plugins, themes, users, posts, database, multisite, and more via natural language
README 文档
README
Manage WordPress sites through natural language commands. This toolkit wraps WP-CLI to provide 13 tools covering plugins, themes, users, posts, options, database, multisite, core, cache, rewrites, search-replace, cron, and media.
Requirements
- PHP 8.4+
- WP-CLI installed and accessible via PATH (or configured via
WP_CLI_PATH) - Coqui Bot with
carmelosantana/php-agents^0.7
Installation
composer require coquibot/coqui-toolkit-wp-cli
The toolkit is auto-discovered by Coqui — no manual registration needed.
Configuration
The toolkit uses three environment variables for default WordPress targeting:
| Variable | Description | Example |
|---|---|---|
WP_CLI_PATH |
Local WordPress installation path | /var/www/html |
WP_CLI_SSH |
SSH connection for remote WordPress | user@host:/var/www/html |
WP_CLI_URL |
Default site URL (for multisite) | http://example.com |
All three are optional. Set them via Coqui's credential system:
Set my WP CLI path to /var/www/html
Every tool also accepts path, ssh, and url parameters for per-call overriding.
Tools
| Tool | Description |
|---|---|
wp_plugin |
Install, activate, deactivate, delete, update, search, list plugins |
wp_theme |
Install, activate, delete, update, search, list themes |
wp_user |
Create, update, delete, list, get users |
wp_post |
Create, update, delete, list, get posts and pages |
wp_option |
Get, update, delete, list site options |
wp_db |
Export (backup), import (restore), optimize, repair, check, query |
wp_site |
List, create, delete multisite subsites with search filtering |
wp_core |
Check version, check for updates, update, verify checksums, download |
wp_cache |
Flush, get, set, delete cache; check cache type |
wp_rewrite |
Flush rules, list rules, view/update permalink structure |
wp_search_replace |
Search-replace across database (safe for serialized data) |
wp_cron |
List, run, delete cron events; test cron connectivity |
wp_media |
Regenerate thumbnails, import media, list attachments |
Usage Examples
Plugin Management
Install the hello-dolly plugin and activate it
List all active plugins
Search for SEO plugins
Multisite Discovery
Find which site on my multisite network has a title of "Example Site" and then install the hello-dolly plugin on that site
The bot will:
- Use
wp_site(action: "list", search: "Example Site")to find the site - Use
wp_plugin(action: "install", plugin: "hello-dolly", activate: true, url: "...")targeting that site
Database Backup & Restore
Backup my database
Restore my database from backup.sql
Domain Migration
Replace all occurrences of http://old-domain.com with https://new-domain.com in the database
The bot will first do a dry run, then ask for confirmation before applying.
Core Management
What version of WordPress is installed?
Check if there are any WordPress updates available
Verify the integrity of WordPress core files
User Management
Create a new editor user with email john@example.com
List all administrator users
SSH Support
Target remote WordPress installations:
List plugins on my remote server user@myserver.com:/var/www/html
Or set a default SSH target:
Set my WP CLI SSH to user@myserver.com:/var/www/html
Development
# Install dependencies composer install # Run tests composer test # Static analysis composer analyse
License
MIT
carmelosantana/coqui-toolkit-wp-cli 适用场景与选型建议
carmelosantana/coqui-toolkit-wp-cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「toolkit」 「wordpress」 「wp-cli」 「php-agents」 「coqui」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 carmelosantana/coqui-toolkit-wp-cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 carmelosantana/coqui-toolkit-wp-cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 carmelosantana/coqui-toolkit-wp-cli 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Use WP-CLI to clear the OPcache for a site via HTTP.
Symfony2 Bundle that adds basic user account entity and city/state/country setup as well
Common helpers and classes for ICanBoogie
Check for common mistakes and enforce best practices before take off.
Enable use of agile toolkit framework in wordpress
Extra preflight-command checkers for professional developers.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 39
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-08