Hoverfly commandsΒΆ

This page contains the output of:

hoverfly --help

The command’s help content has been placed here for convenience.

Usage of hoverfly:
        Add new user '-add -username hfadmin -password hfpass'
        Supply '-admin=false' to make this non admin user (default true)
    -ap string
        Admin port - run admin interface on another port (i.e. '-ap 1234' to run admin UI on port 1234)
        Enable authentication
    -cache-size int
        Set the size of request/response cache (default 1000)
        Start Hoverfly in capture mode - transparently intercepts and saves requests/response
    -cert string
        CA certificate used to sign MITM certificates
    -cert-name string
        Cert name (default "hoverfly.proxy")
    -cert-org string
        Organisation name for new cert (default "Hoverfly Authority")
    -client-authentication-ca-cert string
        Path to the ca cert file used for authentication
    -client-authentication-client-cert string
        Path to the client certification file used for authentication
    -client-authentication-client-key string
        Path to the client key file used for authentication
    -client-authentication-destination string
        Regular expression of destination with client authentication
    -db string
        Storage to use - 'boltdb' or 'memory' which will not write anything to disk (default "memory")
    -db-path string
        Database location - supply it to provide specific database location (will be created there if it doesn't exist)
    -dest value
        Specify which hosts to process (i.e. '-dest fooservice.org -dest barservice.org -dest catservice.org') - other hosts will be ignored will passthrough'
    -destination string
        Control which URLs Hoverfly should intercept and process, it can be string or regex (default ".")
        Enable CORS headers to allow Hoverfly Admin UI development
        Start Hoverfly in diff mode - calls real server and compares the actual response with the expected simulation config if present
        Disable request/response cache (the cache that sits in front of matching)
        Generate CA certificate and private key for MITM
        Allow only secure secure requests to be proxied by hoverfly
    -httptest.serve string
        if non-empty, httptest.NewServer serves on this address and blocks
    -import value
        Import from file or from URL (i.e. '-import my_service.json' or '-import http://mypage.com/service_x.json'
    -journal-size int
        Set the size of request/response journal (default 1000)
    -key string
        Private key of the CA used to sign MITM certificates
    -listen-on-host string
        Specify which network interface to bind to, eg. will bind to all interfaces. By default hoverfly will only bind ports to loopback interface
    -log-level string
        Set log level (panic, fatal, error, warn, info or debug) (default "info")
    -logs string
        Specify format for logs, options are "plaintext" and "json" (default "plaintext")
    -logs-size int
        Set the amount of logs to be stored in memory (default 1000)
        Enable metrics logging to stdout
    -middleware string
        Should proxy use middleware
        Start Hoverfly in modify mode - applies middleware (required) to both outgoing and incoming HTTP traffic
    -password string
        Password for new user
    -password-hash string
        Password hash for new user instead of password
        Use plain http tunneling to host with non-443 port
    -pp string
        Proxy port - run proxy on another port (i.e. '-pp 9999' to run proxy on port 9999)
    -proxy-auth Proxy-Authorization
        Switch the Proxy-Authorization header from proxy-auth Proxy-Authorization to header-auth `X-HOVERFLY-AUTHORIZATION`. Switching to header-auth will auto enable -https-only (default "proxy-auth")
        Start Hoverfly in spy mode, similar to simulate but calls real server when cache miss
        Start Hoverfly in synthesize mode (middleware is required)
        Turn on/off tls verification for outgoing requests (will not try to verify certificates) (default true)
    -upstream-proxy string
        Specify an upstream proxy for hoverfly to route traffic through
    -username string
        Username for new user
    -v	Should every proxy request be logged to stdout
        Get the version of hoverfly
        Start Hoverfly in webserver mode (simulate mode)