sympress/wp-cli-console 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sympress/wp-cli-console

Composer 安装命令:

composer require sympress/wp-cli-console

包简介

Symfony Console wrappers for useful WP-CLI workflows.

README 文档

README

Symfony Console wrappers for useful WP-CLI workflows in SymPress WordPress kernel applications.

The package exposes common WP-CLI operations as Symfony Console commands. It is distributed as a Composer-powered WordPress MU plugin and integrates with the SymPress kernel service container.

Installation

composer require sympress/wp-cli-console

The package requires PHP 8.5, WordPress 6.9 or newer, sympress/kernel, and symfony/console.

Features

  • Symfony Console commands backed by WP-CLI
  • Automatic use of the local vendor/bin/wp binary when available
  • Object cache and rewrite rule maintenance commands
  • Plugin, theme, user, cron, option, and database inspection commands
  • Streaming stdout and stderr handling for long-running WP-CLI processes
  • Kernel service registration through SymPress\WpCliConsole\WpCliConsoleBundle

Commands

wp:cache:flush       Flush the WordPress object cache
wp:rewrite:flush     Flush WordPress rewrite rules
wp:info              Show WP-CLI runtime information
wp:plugin:list       List installed plugins
wp:theme:list        List installed themes
wp:user:list         List WordPress users
wp:cron:list         List scheduled cron events
wp:option:get        Read a WordPress option
wp:db:size           Show WordPress database size

Usage

When the SymPress kernel discovers the package, it registers SymPress\WpCliConsole\WpCliConsoleBundle and loads wp-cli-console/wp-cli-console.php as the MU plugin entry point.

Commands are autoconfigured from src/Command and can be run through the project's Symfony Console entry point:

bin/console wp:plugin:list --status=active --format=table
bin/console wp:option:get siteurl --format=json
bin/console wp:rewrite:flush --hard

The runner executes WP-CLI from the kernel project directory and falls back to the global wp binary when vendor/bin/wp is not executable.

Development

composer install
composer test

License

This package is licensed under GPL-2.0-or-later.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-06-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固