wp-wpcli-and-ops by automattic/agent-skills
npx skills add https://github.com/automattic/agent-skills --skill wp-wpcli-and-ops当任务涉及通过 WP-CLI 进行 WordPress 运维工作时使用此技能,包括:
wp search-replace(URL 变更、域名迁移、协议切换)wp db *)wp site *、--url、--network)wp-cli.yml、shell 脚本、CI 作业)--path=<wordpress-root> 以及(多站点)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
--url=<site-url>WP-CLI 命令可能具有破坏性。在运行任何写入操作之前:
阅读:
references/safety.md运行检查器:
node skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs --path=<path> [--url=<url>]如果 WP-CLI 不可用,则回退到通过项目文档化的工具(Composer、容器或系统包)安装它,或者询问预期的执行环境。
search-replace)遵循安全顺序:
wp db export(备份)wp search-replace --dry-run(审查影响)阅读:
references/search-replace.md使用 wp plugin * / wp theme *,并首先确认您正在对预期的站点(和网络)进行操作。
阅读:
references/packages-and-updates.md检查定时任务状态,并为调试运行单个事件,而不是“盲目地运行所有任务”。
阅读:
references/cron-and-cache.md多站点的变更可能影响许多站点。始终决定您是在:
--url=),还是--network / 迭代所有站点)阅读:
references/multisite.md对于可重复的运维操作,建议:
wp-cli.yml 设置默认值(路径/URL、PHP 内存限制)阅读:
references/automation.mdwpcli_inspect。--path、错误的容器,或缺少 wp-config.php--url 或 URL 错误参见:
references/debugging.md每周安装数
87
仓库
GitHub 星标数
188
首次出现
2026年1月21日
安全审计
安装于
claude-code54
opencode53
gemini-cli43
codex43
cursor43
github-copilot42
Use this skill when the task involves WordPress operational work via WP-CLI, including:
wp search-replace (URL changes, domain migrations, protocol switch)wp db *)wp site *, --url, --network)wp-cli.yml, shell scripts, CI jobs)--path=<wordpress-root> and (multisite) --url=<site-url>WP-CLI commands can be destructive. Before running anything that writes:
Read:
references/safety.mdRun the inspector:
node skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs --path=<path> [--url=<url>]If WP-CLI isn’t available, fall back to installing it via the project’s documented tooling (Composer, container, or system package), or ask for the expected execution environment.
search-replace)Follow a safe sequence:
wp db export (backup)wp search-replace --dry-run (review impact)Read:
references/search-replace.mdUse wp plugin * / wp theme * and confirm you’re acting on the intended site (and network) first.
Read:
references/packages-and-updates.mdInspect cron state and run individual events for debugging rather than “run everything blindly”.
Read:
references/cron-and-cache.mdMultisite changes can affect many sites. Always decide whether you’re operating:
--url=), or--network / iterating sites)Read:
references/multisite.mdFor repeatable ops, prefer:
wp-cli.yml for defaults (path/url, PHP memory limits)Read:
references/automation.mdwpcli_inspect after changes that could affect targeting or config.--path, wrong container, or missing wp-config.php--url or wrong URLSee:
references/debugging.mdWeekly Installs
87
Repository
GitHub Stars
188
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code54
opencode53
gemini-cli43
codex43
cursor43
github-copilot42
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
96,200 周安装