Varnish Cache CLI API

The Varnish Cache CLI management interface provides programmatic control over a running Varnish instance. It is accessible via varnishadm or TCP socket and supports configuration management (VCL load/use/discard), backend health control, cache ban/invalidation, parameter tuning, and process management. Commands can return JSON output with the -j flag.

API entry from apis.yml

apis.yml Raw ↑
aid: varnish:varnish-cache
name: Varnish Cache CLI API
description: The Varnish Cache CLI management interface provides programmatic control over a running Varnish
  instance. It is accessible via varnishadm or TCP socket and supports configuration management (VCL load/use/discard),
  backend health control, cache ban/invalidation, parameter tuning, and process management. Commands can
  return JSON output with the -j flag.
humanURL: https://varnish-cache.org/docs/trunk/reference/varnish-cli.html
tags:
- Cache Management
- Caching
- CLI
- Configuration
- Reverse Proxy
properties:
- type: Documentation
  url: https://varnish-cache.org/docs/trunk/reference/varnish-cli.html
- type: GettingStarted
  url: https://varnish-cache.org/docs/trunk/users-guide/run_cli.html
- type: APIReference
  url: https://varnish-cache.org/docs/trunk/reference/varnishadm.html