2017 © Pedro Peláez
 

library cli-varnish

Varnish commands for the Ride CLI

image

ride/cli-varnish

Varnish commands for the Ride CLI

  • Tuesday, October 10, 2017
  • by ride-user
  • Repository
  • 11 Watchers
  • 0 Stars
  • 109 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

Ride: Varnish CLI

This module adds various Varnish commands to the Ride CLI., (*1)

Commands

varnish

This command gets an overview of the Varnish servers in the pool with their status., (*2)

Syntax: varnish, (*3)

Alias: v, (*4)

varnish add

This command adds a Varnish server to the pool., (*5)

Syntax: varnish add <host> [<port> [<secret>]] - <host>: Hostname or IP address of the server - <port>: Port the varnishadm listens to (6082) - <secret>: Secret to authenticate with the server, (*6)

Alias: va, (*7)

varnish remove

This command removes a Varnish server from the pool., (*8)

Syntax: varnish remove <host> [<port>] - <host>: Hostname or IP address of the server - <port>: Port the varnishadm listens to (6082), (*9)

Alias: vr, (*10)

varnish ban

This command bans an expression on all the Varnish servers of the pool., (*11)

Syntax: varnish ban [--server] [--force] <expression> - --server: Limit to a single server, provide the server and port - --force: Ignore failures and execute the command on the remaining servers - <expression> Expression to ban, (*12)

Alias: vb, (*13)

varnish ban url

This command bans an URL on all the Varnish servers of the pool., (*14)

Syntax: varnish ban url [--recursive] [--server] [--force] <url> - --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>: URL to ban, (*15)

Alias: vbu, (*16)

varnish generate redirect

This command generates varnish configuration to redirect a set of URL's., (*17)

Syntax: varnish generate redirect [--baseUrl] [--ignoreHeader] [--statusCode] <file> - --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 - <file>: 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., (*18)

Alias: vgr, (*19)

Installation

You can use Composer to install this application., (*20)

composer require ride/cli-varnish

The Versions

10/10 2017

dev-master

9999999-dev

Varnish commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

10/10 2017

dev-develop

dev-develop

Varnish commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

10/10 2017

1.1.0

1.1.0.0

Varnish commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

14/10 2016

1.0.0

1.0.0.0

Varnish commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

12/04 2016

0.2.0

0.2.0.0

Varnish commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

05/03 2015

0.1.0

0.1.0.0

Varnish commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd