Komandna Linija

ZAP podržava sljedeće opcije iz komandne linije:
    -cmdRuns ZAP 'inline', ie without starting the UI or a daemon
    -configOverrides the specified key=value pair in the configuration file
    -daemonStarts ZAP in 'daemon' mode, ie without a UI
    -dirUses the specified directory instead of the default one
    -installdirOverrides the code that detects where ZAP has been installed with the specified directory
    -hShows all of the command line options available, including those added by add-ons
    -helpThe same as -h
    -hostOverrides the host used for proxying specified in the configuration file
    -portOverrides the port used for proxying specified in the configuration file
    -versionReports the ZAP version
    -newsessionCreates a new session at the given location (it expects the full path to the session)
    -sessionOpens the given session after starting ZAP (it expects the full path to the session).

The options '-session' and '-newsession' are mutually exclusive. An error will be shown and ZAP exit (if not in GUI) when both options are set.
Configuration keys should be specified using the dot notation based their location in the XML of the configuration file, eg:
-config api.key=12345 -config connection.timeoutInSecs=60
Note that add-ons can add extra command line options.

Examples:

See also

     Introductionthe introduction to ZAP
     APIto control ZAP programmatically