PHPackages                             pollora/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. pollora/cli

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

pollora/cli
===========

Pollora CLI Tool

v1.0.0(2mo ago)017GPL-2.0-or-laterPHP ^8.2

Since May 13Compare

[ Source](https://github.com/Pollora/cli)[ Packagist](https://packagist.org/packages/pollora/cli)[ RSS](/packages/pollora-cli/feed)WikiDiscussions Synced 3w ago

READMEChangelogDependencies (10)Versions (2)Used By (0)

 [ ![Pollora](resources/images/pollora-logo.svg) ](https://github.com/Pollora/cli)

 [![Latest Stable Version](https://camo.githubusercontent.com/013c33d4bd04b5c4b196f8dbc793d809c55823644cbab2e70aeb315062673633/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6c6c6f72612f636c69)](https://packagist.org/packages/pollora/cli) [![Total Downloads](https://camo.githubusercontent.com/f26e2e7865bfae995c31c0108ee047c3e33e22129f5ed2d05a5846d947017c99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f6c6c6f72612f636c69)](https://packagist.org/packages/pollora/cli) [![License](https://camo.githubusercontent.com/f690478359067fbddb6ee52bc82c8e5bde65439e630331f401d0bb2885088638/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706f6c6c6f72612f636c69)](https://packagist.org/packages/pollora/cli)

About Pollora CLI
-----------------

[](#about-pollora-cli)

The Pollora CLI is a command-line tool for creating and managing [Pollora](https://github.com/Pollora/framework) projects. It provides interactive scaffolding with optional DDEV integration, and acts as an intelligent proxy to framework commands when used inside a project.

Installation
------------

[](#installation)

Install the CLI globally via Composer:

```
composer global require pollora/cli
```

Make sure the Composer global `vendor/bin` directory is in your system's `PATH`:

```
composer global config bin-dir --absolute
```

Add the returned path to your shell profile if it's not already configured:

**Bash** — `~/.bashrc````
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
```

**Zsh** — `~/.zshrc````
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
```

**Fish** — `~/.config/fish/config.fish````
fish_add_path $HOME/.config/composer/vendor/bin
```

**Windows (PowerShell)**```
# Add to your PowerShell profile ($PROFILE)
$env:PATH = "$env:APPDATA\Composer\vendor\bin;$env:PATH"
```

> **Note:** On some systems, the Composer global directory may be `~/.composer/vendor/bin` instead of `~/.config/composer/vendor/bin`. Use the `composer global config bin-dir --absolute` command to check.

After updating your profile, reload your shell (`source ~/.zshrc`, `source ~/.bashrc`, etc.) or open a new terminal.

Creating a new project
----------------------

[](#creating-a-new-project)

### Standard install

[](#standard-install)

```
pollora new my-site
```

The command will:

1. Run `composer create-project pollora/pollora`
2. Execute `php artisan pollora:install` for WordPress setup
3. Optionally initialize a Git repository

### With DDEV (recommended)

[](#with-ddev-recommended)

```
pollora new my-site --ddev
```

When the `--ddev` flag is passed (or selected interactively), the CLI will:

1. Configure DDEV (WordPress, PHP 8.4, MariaDB 10.11)
2. Start the DDEV environment
3. Install the project via `ddev composer create-project`
4. Run `pollora:install` inside the container
5. Publish the `./pollora` binary and `ddev pollora` command

Your site will be available at `https://my-site.ddev.site`.

### Options

[](#options)

OptionDescription`--ddev`Set up the project with DDEV`--force`, `-f`Force install even if the directory already exists`--git`Initialize a Git repository`--branch=NAME`Branch name for the new repository (default: `main`)Using Pollora commands
----------------------

[](#using-pollora-commands)

### Inside a Pollora project

[](#inside-a-pollora-project)

When you run `pollora` inside a directory that contains both `artisan` and `vendor/pollora/framework`, the CLI acts as a **proxy** and delegates commands to `php artisan pollora:{command}`:

```
cd my-site

pollora status            # => php artisan pollora:status
pollora make-plugin Foo   # => php artisan pollora:make-plugin Foo
pollora make-theme starter # => php artisan pollora:make-theme starter
```

### With DDEV

[](#with-ddev)

If you set up your project with `--ddev`, a custom `ddev pollora` command is available:

```
ddev pollora status
ddev pollora make-plugin Foo
ddev pollora list
```

### With the local `./pollora` binary

[](#with-the-local-pollora-binary)

The framework provides a dedicated `./pollora` binary (published via `vendor:publish --tag=pollora-binary`) that shows only Pollora-related commands with short names:

```
./pollora list

# Available commands:
#   install        Install and configure WordPress
#   status         Display Pollora framework status
#   make-plugin    Generate plugin structure
#   make-theme     Generate theme structure
#   make-block     Create a new Gutenberg block
#   make-posttype  Create a new custom post type
#   ...
```

The original `php artisan pollora:*` signatures continue to work as aliases.

Updating
--------

[](#updating)

The CLI checks for updates automatically (once every 24 hours) and displays a notification when a new version is available:

```
  A new version of Pollora CLI is available: v0.3.0 (current: v0.2.0)
  Run pollora self-update to update.

```

To update manually:

```
pollora self-update
```

This runs `composer global update pollora/cli` under the hood. You can also use the alias `pollora self:update`.

Other commands
--------------

[](#other-commands)

CommandDescription`pollora version`Display the CLI version`pollora self-update`Update the CLI to the latest version (alias: `self:update`)Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Composer 2.x
- DDEV (optional, for `--ddev` mode)

Testing
-------

[](#testing)

```
composer test              # Run all checks (Rector, Pint, PHPStan, Pest, type-coverage)
composer test:unit         # Run Pest tests
composer test:types        # Run PHPStan static analysis (level 5)
composer test:lint         # Check code style with Pint
composer test:refacto      # Check refactoring rules with Rector
composer test:type-coverage # Check type coverage (>= 98%)
```

License
-------

[](#license)

Pollora CLI is open-sourced software licensed under the [GPL-2.0-or-later](LICENSE).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance86

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

72d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b45e81c070e2ec0baf59b2a73a216632d76cdfb36c0ab168fd6d043b2c8fbc2?d=identicon)[pollora](/maintainers/pollora)

---

Tags

clilaravelwordpresspollora

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pollora-cli/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.5k](/packages/laravel-framework)[illuminate/console

The Illuminate Console package.

13046.0M6.8k](/packages/illuminate-console)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[whatsdiff/whatsdiff

See what's changed in your project's dependencies

771.2k](/packages/whatsdiff-whatsdiff)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19566.0M1.8k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M425](/packages/drupal-core-recommended)

PHPackages © 2026

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