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

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

ride/cli-varnish
================

Varnish commands for the Ride CLI

1.1.0(8y ago)01.3kMITPHP

Since Mar 5Pushed 8y ago11 watchersCompare

[ Source](https://github.com/all-ride/ride-cli-varnish)[ Packagist](https://packagist.org/packages/ride/cli-varnish)[ RSS](/packages/ride-cli-varnish/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

Ride: Varnish CLI
=================

[](#ride-varnish-cli)

This module adds various Varnish commands to the Ride CLI.

Commands
--------

[](#commands)

### varnish

[](#varnish)

This command gets an overview of the Varnish servers in the pool with their status.

**Syntax**: `varnish`

**Alias**: `v`

### varnish add

[](#varnish-add)

This command adds a Varnish server to the pool.

**Syntax**: `varnish add  [ []]`

- ``: Hostname or IP address of the server
- ``: Port the varnishadm listens to (6082)
- ``: Secret to authenticate with the server

**Alias**: `va`

### varnish remove

[](#varnish-remove)

This command removes a Varnish server from the pool.

**Syntax**: `varnish remove  []`

- ``: Hostname or IP address of the server
- ``: Port the varnishadm listens to (6082)

**Alias**: `vr`

### varnish ban

[](#varnish-ban)

This command bans an expression on all the Varnish servers of the pool.

**Syntax**: `varnish ban [--server] [--force] `

- `--server`: Limit to a single server, provide the server and port
- `--force`: Ignore failures and execute the command on the remaining servers
- `` Expression to ban

**Alias**: `vb`

### varnish ban url

[](#varnish-ban-url)

This command bans an URL on all the Varnish servers of the pool.

**Syntax**: `varnish ban url [--recursive] [--server] [--force] `

- `--recursive`: Clear everything starting with the provided URL
- `--server`: Limit to a single server, provide the server and port
- `--force`: Ignore failures and execute the command on the remaining servers
- ``: URL to ban

**Alias**: `vbu`

### varnish generate redirect

[](#varnish-generate-redirect)

This command generates varnish configuration to redirect a set of URL's.

**Syntax**: `varnish generate redirect [--baseUrl] [--ignoreHeader] [--statusCode] `

- `--baseUrl`: Base URL for the old URL or destination, used for relative URL's
- `--ignoreHeader`: Add this flag to ignore the first row
- `--statusCode`: Default status code, used when 3rd column is empty
- ``: Path to a CSV file with the old URL as first column, the destination as second column, an optional HTTP status code (301 or 302) as third column, an optional flag (yes or no) to see if everything starting with the old URL should be matched as fourth column and an optional flag (yes or no) to see if the original path should be appended to the destination as fifth column.

**Alias**: `vgr`

Related Modules
---------------

[](#related-modules)

- [ride/app](https://github.com/all-ride/ride-app)
- [ride/app-varnish](https://github.com/all-ride/ride-app-varnish)
- [ride/cli](https://github.com/all-ride/ride-cli)
- [ride/lib-cli](https://github.com/all-ride/ride-lib-cli)
- [ride/lib-varnish](https://github.com/all-ride/ride-lib-varnish)
- [ride/wba-cms-varnish](https://github.com/all-ride/ride-wba-cms-varnish)
- [ride/wba-varnish](https://github.com/all-ride/ride-wba-varnish)
- [ride/web-cms-varnish](https://github.com/all-ride/ride-web-cms-varnish)

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

[](#installation)

You can use [Composer](http://getcomposer.org) to install this application.

```
composer require ride/cli-varnish

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~316 days

Total

4

Last Release

3142d ago

Major Versions

0.2.0 → 1.0.02016-10-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d98d3f0d5db5eb241c6ee74bcee87d1e7dc1aaf7942b933d68e612ee2352eea?d=identicon)[ride-user](/maintainers/ride-user)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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