Skip to content

zarf tools wait-for network

Waits for a network endpoint to meet the condition

Waits for a network endpoint using REST or TCP to respond with a status code (default 2xx)

zarf tools wait-for network PROTOCOL ADDRESS [CODE] [flags]
$ zarf tools wait-for network http localhost:8080 200 # wait for a 200 response from http://localhost:8080
$ zarf tools wait-for network tcp localhost:8080 # wait for a connection to be established on localhost:8080
$ zarf tools wait-for network https 1.1.1.1 200 # wait for a 200 response from https://1.1.1.1
$ zarf tools wait-for network http google.com # wait for any 2xx response from http://google.com
$ zarf tools wait-for network http google.com success # wait for any 2xx response from http://google.com
-h, --help help for network
--timeout string Specify the timeout duration for the wait command. (default "5m")
-a, --architecture string Architecture for OCI images and Zarf packages
--features stringToString [ALPHA] Provide a comma-separated list of feature names to bools to enable or disable. Ex. --features "foo=true,bar=false,baz=true" (default [])
--insecure-skip-tls-verify Skip checking server's certificate for validity. This flag should only be used if you have a specific reason and accept the reduced security posture.
--log-format string Select a logging format. Defaults to 'console'. Valid options are: 'console', 'json', 'dev'. (default "console")
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-color Disable terminal color codes in logging and stdout prints.
--plain-http Force the connections over HTTP instead of HTTPS. This flag should only be used if you have a specific reason and accept the reduced security posture.
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")