PHPackages                             cypresslab/console-defaults-bundle - 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. cypresslab/console-defaults-bundle

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

cypresslab/console-defaults-bundle
==================================

A bundle to add defaluts argument to the symfony2 console

0.4.0(12y ago)1224LGPL-3.0+PHPPHP &gt;=5.3.3

Since Oct 17Pushed 12y ago2 watchersCompare

[ Source](https://github.com/matteosister/CypressConsoleDefaultsBundle)[ Packagist](https://packagist.org/packages/cypresslab/console-defaults-bundle)[ RSS](/packages/cypresslab-console-defaults-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Console Defaults Bundle [![Latest Stable Version](https://camo.githubusercontent.com/618ce99b986857214fbc035bf7fbeb3f1d1f895b1be61caedcc2c12f4499910c/68747470733a2f2f706f7365722e707567782e6f72672f637970726573736c61622f636f6e736f6c652d64656661756c74732d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/cypresslab/console-defaults-bundle)
=======================================================================================================================================================================================================================================================================================================================================================================

[](#console-defaults-bundle-)

[![Code Coverage](https://camo.githubusercontent.com/981904be3e00e7ec54a4280a38b02650e709acbcfd00698ddca34fcc97c6962d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d617474656f7369737465722f43797072657373436f6e736f6c6544656661756c747342756e646c652f6261646765732f636f7665726167652e706e673f733d37346265316336363766626162663738313338646538396232373766356634323137373236393636)](https://scrutinizer-ci.com/g/matteosister/CypressConsoleDefaultsBundle/) [![Build Status](https://camo.githubusercontent.com/c150b308da230620c7f0ab51d6d712ffa2536ccbd7847c370686c43590e0715b/68747470733a2f2f7472617669732d63692e6f72672f6d617474656f7369737465722f43797072657373436f6e736f6c6544656661756c747342756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/matteosister/CypressConsoleDefaultsBundle) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/4def3360a2139394d78c3680628f30d6540e113e5bd9e919e4fb54d1be373175/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d617474656f7369737465722f43797072657373436f6e736f6c6544656661756c747342756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d36636462656632636639323666663564386666633563316430653131333330653763643361313433)](https://scrutinizer-ci.com/g/matteosister/CypressConsoleDefaultsBundle/) [![SensioLabsInsight](https://camo.githubusercontent.com/a6aff8c3f260ac7be2daa83dc1f52b85bf92bf4ee706ec8d2d6feeba413b5120/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34333061336539632d656630642d343234332d613232662d3764383161616532626466322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/430a3e9c-ef0d-4243-a22f-7d81aae2bdf2)

this bundle lets you define defaults parameters for your commands. It makes use of [console events](http://symfony.com/doc/current/components/console/events.html) to work. So you need at least the **2.3 LTS** version of symfony

#### Installation

[](#installation)

to install just require the **cypresslab/console-defaults-bundle** at **~0.3** version. [Read the complete instructions here](https://github.com/matteosister/CypressConsoleDefaultsBundle/blob/master/INSTALL.md)

### Usage

[](#usage)

add the commands, with the defaults you want, under the *cypress\_console\_defaults* key. Here is an example

```
cypress_console_defaults:
    commands:
        "doctrine:fixtures:load":
            params: [ "--append", "--fixtures src/NS/DataFixtures" ]

        "rabbitmq:consumer":
            params: [ "-w" ]

        "cache:clear":
            params: [ "--no-warmup", "--no-optional-warmers"]
```

the next time you will call one of the defined command the bundle will add the parameters for you

```
$ ./app/console cache:clear
$ --- ConsoleDefaultsBundle You have defined some defaults for this command
$ --- proceeding with defaults: --no-warmup, --no-optional-warmers
$ Clearing the cache for the dev environment with debug true

```

From version 0.4 you can pass a regular expression as the command name. You need to **use two slashes to wrap the command** like this

```
cypress_console_defaults:
    commands:
        "/doctrine:(.*)/":
            params: [ "--no-interaction"]
```

With this configuration every doctrine:... command will have the "--no-interaction" flag

### Use cases

[](#use-cases)

- default to *--symlink* for assets install

```
cypress_console_defaults:
    commands:
        "assets:install":
            params: [ "--symlink" ]
```

- change the folder where the fixtures are loaded

```
cypress_console_defaults:
    commands:
        "doctrine:fixtures:load":
            params: [ "--fixtures my/personal/folder" ]
```

- disable cache warmup

```
cypress_console_defaults:
    commands:
        "cache:clear":
            params: [ "--no-warmup", "--no-optional-warmers" ]
```

other ideas?

[![Bitdeli Badge](https://camo.githubusercontent.com/803a1c8ccb0838c2782c687da0a7c265d6b39f8d74cda6973ba57dd57a7c457a/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6d617474656f7369737465722f63797072657373636f6e736f6c6564656661756c747362756e646c652f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.2% 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 ~8 days

Total

5

Last Release

4563d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.2

0.3.0PHP &gt;=5.3.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/212723?v=4)[Matteo Giachino](/maintainers/matteosister)[@matteosister](https://github.com/matteosister)

---

Top Contributors

[![matteosister](https://avatars.githubusercontent.com/u/212723?v=4)](https://github.com/matteosister "matteosister (35 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cypresslab-console-defaults-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/cypresslab-console-defaults-bundle/health.svg)](https://phpackages.com/packages/cypresslab-console-defaults-bundle)
```

###  Alternatives

[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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