PHPackages                             wpdiggerstudio/wpzylos-wp-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. wpdiggerstudio/wpzylos-wp-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

wpdiggerstudio/wpzylos-wp-cli
=============================

WP-CLI bridge for WPZylos framework (only loaded when WP\_CLI)

v1.1.0(3mo ago)02391MITPHPPHP ^8.0CI failing

Since Feb 1Pushed 3mo agoCompare

[ Source](https://github.com/WPDiggerStudio/wpzylos-wp-cli)[ Packagist](https://packagist.org/packages/wpdiggerstudio/wpzylos-wp-cli)[ Docs](https://github.com/WPDiggerStudio/wpzylos-wp-cli)[ Fund](https://www.paypal.com/donate/?hosted_button_id=66U4L3HG4TLCC)[ RSS](/packages/wpdiggerstudio-wpzylos-wp-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (3)Used By (1)

WPZylos WP-CLI
==============

[](#wpzylos-wp-cli)

[![PHP Version](https://camo.githubusercontent.com/911a83e2aa6fe73660ab613629a95c76622bf03049a7344e80c5ea72d4ef9c7d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e302d626c7565)](https://php.net)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)[![GitHub](https://camo.githubusercontent.com/dbe820b98864e115173c422b9472b725cfa678bee03b66ff2c453dad95a3d20b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769744875622d575044696767657253747564696f2d3138313731373f6c6f676f3d676974687562)](https://github.com/WPDiggerStudio/wpzylos-wp-cli)

WP-CLI bridge for WPZylos framework (only loaded when WP\_CLI).

📖 **[Full Documentation](https://wpzylos.com)** | 🐛 **[Report Issues](https://github.com/WPDiggerStudio/wpzylos-wp-cli/issues)**

---

✨ Features
----------

[](#-features)

- **Vendor Publish** — Laravel-style config publishing
- **Migration Commands** — Run/rollback database migrations
- **Cache Commands** — Clear plugin caches
- **Custom Commands** — Register plugin-specific WP-CLI commands
- **WP\_CLI Only** — Loaded only in CLI context
- **Scheduler Commands** — Manage scheduled tasks

---

📋 Requirements
--------------

[](#-requirements)

RequirementVersionPHP^8.0WordPress6.0+WP-CLI2.0+---

🚀 Installation
--------------

[](#-installation)

```
composer require wpdiggerstudio/wpzylos-wp-cli
```

---

📖 Quick Start
-------------

[](#-quick-start)

```
# Publish package configs (like Laravel)
wp myplugin vendor:publish --provider=RequirementsServiceProvider

# Run migrations
wp myplugin migrate

# Rollback last migration
wp myplugin migrate:rollback

# Clear cache
wp myplugin cache:clear
```

---

🛠️ Available Commands
---------------------

[](#️-available-commands)

### Vendor Publish Commands (Laravel-style)

[](#vendor-publish-commands-laravel-style)

```
# Publish config from a specific provider
wp myplugin vendor:publish --provider=RequirementsServiceProvider

# Publish all package configs
wp myplugin vendor:publish --all

# Force overwrite existing files
wp myplugin vendor:publish --provider=RequirementsServiceProvider --force

# Publish by tag (e.g., config, views)
wp myplugin vendor:publish --tag=config

# List all publishable assets
wp myplugin vendor:publish:list
```

### Migration Commands

[](#migration-commands)

```
# Run all pending migrations
wp myplugin migrate

# Rollback last batch
wp myplugin migrate:rollback

# Rollback and re-run all migrations
wp myplugin migrate:refresh

# Show migration status
wp myplugin migrate:status
```

### Cache Commands

[](#cache-commands)

```
# Clear all plugin caches
wp myplugin cache:clear

# Clear specific cache
wp myplugin cache:clear --key=settings
```

### Scheduler Commands

[](#scheduler-commands)

```
# List scheduled tasks
wp myplugin schedule:list

# Run a specific scheduled task
wp myplugin schedule:run task_name
```

---

🏗️ Creating Custom Commands
---------------------------

[](#️-creating-custom-commands)

```
use WPZylos\Framework\WpCli\Command;

class ImportCommand extends Command
{
    protected string $signature = 'data:import';
    protected string $description = 'Import data from a file';

    public function handle(array $args, array $assoc_args): void
    {
        $file = $assoc_args['file'] ?? null;

        if (!$file) {
            $this->error('File path is required');
            return;
        }

        $this->info("Importing from {$file}...");

        // Import logic here

        $this->success('Import complete!');
    }
}
```

### Registering Commands

[](#registering-commands)

```
// In your plugin's boot method
$app->registerCommand(ImportCommand::class);
```

---

📦 Related Packages
------------------

[](#-related-packages)

PackageDescription[wpzylos-core](https://github.com/WPDiggerStudio/wpzylos-core)Application foundation[wpzylos-cli-core](https://github.com/WPDiggerStudio/wpzylos-cli-core)Stub compilation utilities[wpzylos-cli-devtool](https://github.com/WPDiggerStudio/wpzylos-cli-devtool)Development CLI commands[wpzylos-migrations](https://github.com/WPDiggerStudio/wpzylos-migrations)Database migrations---

📖 Documentation
---------------

[](#-documentation)

For comprehensive documentation, tutorials, and API reference, visit **[wpzylos.com](https://wpzylos.com)**.

---

☕ Support the Project
---------------------

[](#-support-the-project)

If you find this package helpful, consider buying me a coffee! Your support helps maintain and improve the WPZylos ecosystem.

[ ![Donate with PayPal](https://camo.githubusercontent.com/ab874f7381c27789efc0a8502714f480bb5ddcc2de7008417d26b5069068341c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d70617970616c)](https://www.paypal.com/donate/?hosted_button_id=66U4L3HG4TLCC)---

📄 License
---------

[](#-license)

MIT License. See [LICENSE](LICENSE) for details.

---

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

---

**Made with ❤️ by [WPDiggerStudio](https://github.com/WPDiggerStudio)**

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance80

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87be74120ef333e9f794308da1fdcb9505f3e1b255926014a144e6360bb29c08?d=identicon)[WPDiggerStudio](/maintainers/WPDiggerStudio)

---

Top Contributors

[![WPDiggerStudio](https://avatars.githubusercontent.com/u/55980087?v=4)](https://github.com/WPDiggerStudio "WPDiggerStudio (4 commits)")

---

Tags

cliwordpressmigrationscommandswp-cliwpzylos

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wpdiggerstudio-wpzylos-wp-cli/health.svg)

```
[![Health](https://phpackages.com/badges/wpdiggerstudio-wpzylos-wp-cli/health.svg)](https://phpackages.com/packages/wpdiggerstudio-wpzylos-wp-cli)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[wp-cli/wp-cli-bundle

WP-CLI bundle package with default commands.

896.3M131](/packages/wp-cli-wp-cli-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
