← 返回
内容创作 中文

WordPress WP-CLI Admin

Operate WordPress installs through WP-CLI for inspection, core maintenance, plugin and theme management, users, options, content, media, cron, database tasks...
使用 WP-CLI 操作 WordPress,包括检查、核心维护、插件主题管理、用户和内容管理、媒体管理、定时任务及数据库操作
matthewxmurphy
内容创作 clawhub v0.5.0 1 版本 99899.9 Key: 无需
★ 2
Stars
📥 958
下载
💾 89
安装
1
版本
#latest

概述

WordPress WP-CLI Admin

Use this skill when a WordPress task belongs in wp, not /wp-json.

The point of this skill is not to memorize every command. The point is to get to the right command family, attach the right global flags, inspect the target install first, and avoid reckless write operations.

Use This Skill For

  • checking whether a target install is healthy and reachable with wp
  • plugin and theme management
  • users, roles, comments, posts, pages, terms, and media operations
  • options, transients, rewrites, cron, and cache-related site work
  • core version, update, checksum, and maintenance tasks
  • database export, import, and search-replace work
  • multisite-aware administration when --url matters

Do Not Use This Skill For

  • REST-only integrations where the caller has HTTP access but not shell access
  • building custom WP-CLI commands or packages
  • blind destructive operations without a read-first pass or backup path

Workflow

1. Inspect The Install First

Start with:

scripts/inspect-install.sh --path /srv/www/site
scripts/inspect-install.sh --path /srv/www/site --url https://example.com

This checks that wp exists, confirms the path looks like a WordPress install, and prints useful status for core, URLs, plugins, and themes.

If you need the live command tree:

scripts/list-commands.sh
scripts/list-commands.sh --group plugin

2. Choose The Right Command Family

Read references/command-families.md.

Default mapping:

  • core health or updates: core
  • installed code: plugin, theme, language
  • content and taxonomy: post, page, comment, term, category, tag
  • accounts and permissions: user, role, cap, super-admin
  • config and runtime: option, transient, cron, rewrite, cache
  • database and migration: db, search-replace
  • multisite: site, network, super-admin

3. Attach The Right Global Flags

Read references/global-flags-and-safety.md.

Common flags:

  • --path=
  • --url=
  • --user=
  • --ssh=
  • --http=
  • --skip-plugins
  • --skip-themes
  • --debug
  • --quiet
  • --format=json

4. Prefer Read-First Commands

Examples:

wp plugin list --format=table
wp theme list --format=table
wp option get home
wp core version
wp cron event list

Only then move to write operations such as plugin update, search-replace, option update, or db import.

5. Treat High-Risk Operations As Change Windows

Before destructive work:

  • export the database
  • use search-replace --dry-run when available
  • verify the target URL in multisite
  • avoid running broad updates without confirming versions and dependencies

Files

  • scripts/inspect-install.sh: inspect a target WordPress path with WP-CLI
  • scripts/list-commands.sh: print wp help or wp help for live command discovery
  • references/command-families.md: command family cheat sheet for common WordPress admin tasks
  • references/global-flags-and-safety.md: global arg patterns, remote execution, and destructive-operation rules

版本历史

共 1 个版本

  • v0.5.0 当前
    2026-03-29 23:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 294 📥 136,400
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,252
security-compliance

WordPress REST API

matthewxmurphy
使用 WordPress REST API 进行路由发现、身份验证、读写、核心端点选择以及自定义命名空间检查。适用于需要与 WordPress REST API 交互的场景。
★ 0 📥 986