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 (defaults to 'true')  (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, currently it is disabled by default
        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")
    -db string
        Persistance storage to use - 'boltdb' or 'memory' which will not write anything to disk (default "boltdb")
    -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
        destination URI to catch (default ".")
        supply -dev flag to serve directly from ./static/dist instead from statik binary
        generate CA certificate and private key for MITM
    -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'
    -key string
        private key of the CA used to sign MITM certificates
        supply -metrics flag to enable metrics logging to stdout
    -middleware string
        should proxy use middleware
        start Hoverfly in modify mode - applies middleware (required) to both outgoing and incomming HTTP traffic
    -password string
        password for new user
    -pp string
        proxy port - run proxy on another port (i.e. '-pp 9999' to run proxy on port 9999)
        start Hoverfly in synthesize mode (middleware is required)
    -test.bench string
        regular expression per path component to select benchmarks to run
        print memory allocations for benchmarks
    -test.benchtime duration
        approximate run time for each benchmark (default 1s)
    -test.blockprofile string
        write a goroutine blocking profile to the named file after execution
    -test.blockprofilerate int
        if >= 0, calls runtime.SetBlockProfileRate() (default 1)
    -test.count n
        run tests and benchmarks n times (default 1)
    -test.coverprofile string
        write a coverage profile to the named file after execution
    -test.cpu string
        comma-separated list of number of CPUs to use for each test
    -test.cpuprofile string
        write a cpu profile to the named file during execution
    -test.memprofile string
        write a memory profile to the named file after execution
    -test.memprofilerate int
        if >=0, sets runtime.MemProfileRate
    -test.outputdir string
        directory in which to write profiles
    -test.parallel int
        maximum test parallelism (default 8)
    -test.run string
        regular expression to select tests and examples to run
        run smaller test suite to save time
    -test.timeout duration
        if positive, sets an aggregate time limit for all tests
    -test.trace string
        write an execution trace to the named file after execution
        verbose: print additional output
        turn on/off tls verification for outgoing requests (will not try to verify certificates) - defaults to true (default true)
    -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)