コマンドライン

ZAPは以下のコマンドラインオプションをサポートしています。
    -cmdインラインでZAPを実行します。つまりUIやデーモンを起動しません
    -configOverrides the specified key=value pair in the configuration file
    -daemonStarts ZAP in 'daemon' mode, ie without a UI
    -dirデフォルトのディレクトリの代わりに指定したディレクトリを使用します
    -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
    -help-hと同じです
    -host構成ファイルで指定されたプロキシで使用されるホストを上書きします。
    -port構成ファイルで指定されているプロキシに使用されるポートを上書きします
    -versionZAPのバージョンを報告します
    -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