1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| ➜ ~ w2 help
Usage: w2 <command> [options]
Commands:
status Show the running status add [filepath] Add rules from local js file (.whistle.js by default) install Install a whistle plugin uninstall Uninstall a whistle plugin exec Exec whistle plugin command run Start a front service start Start a background service stop Stop current background service restart Restart current background service help Display help information
Options:
-h, --help output usage information -D, --baseDir [baseDir] set the configured storage root path -z, --certDir [directory] set custom certificate store directory -l, --localUIHost [hostname] set the domain for the web ui (local.whistlejs.com by default) -L, --pluginHost [hostname] set the domain for the web ui of plugin (as: "script=a.b.com&vase=x.y.com") -n, --username [username] set the username to access the web ui -w, --password [password] set the password to access the web ui -N, --guestName [username] set the the guest name to access the web ui (can only view the data) -W, --guestPassword [password] set the guest password to access the web ui (can only view the data) -s, --sockets [number] set the max number of cached connections on each domain (256 by default) -S, --storage [newStorageDir] set the configured storage directory -C, --copy [storageDir] copy the configuration of the specified directory to a new directory -c, --dnsCache [time] set the cache time of DNS (60000ms by default) -H, --host [boundHost] set the bound host (INADDR_ANY by default) -p, --port [proxyPort] set the proxy port (8899 by default) -P, --uiport [uiport] set the webui port -m, --middlewares [script path or module name] set the express middlewares loaded at startup (as: xx,yy/zz.js) -M, --mode [mode] set the starting mode (as: pureProxy|debug|multiEnv|capture|disableH2|network|rules|plugins|prod) -t, --timeout [ms] set the request timeout (360000ms by default) -e, --extra [extraData] set the extra parameters for plugin -f, --secureFilter [secureFilter] set the path of secure filter -r, --shadowRules [shadowRules] set the shadow (default) rules -R, --reqCacheSize [reqCacheSize] set the cache size of request data (600 by default) -F, --frameCacheSize [frameCacheSize] set the cache size of webSocket and socket's frames (512 by default) -A, --addon [pluginPaths] add custom plugin paths --config [workers] start the cluster server and set worker number (os.cpus().length by default) --cluster [config] load the startup config from a local file --dnsServer [dnsServer] set custom dns servers --socksPort [socksPort] set the socksv5 server port --httpPort [httpPort] set the http server port --httpsPort [httpsPort] set the https server port --no-global-plugins do not load any globally installed plugins --no-prev-options do not reuse the previous options when restarting --inspect [[host:]port] activate inspector on host:port (127.0.0.1:9229 by default) --inspectBrk [[host:]port] activate inspector on host:port and break at start of user script (127.0.0.1:9229 by default) -V, --version output the version number
|