wait4x
all
Wait for a port or service to enter a requested state, with support for TCP, HTTP, DNS, databases, and message queues. Some subcommands such as `tcp` and `http` have their own usage documentation.
More info →Subcommands (2)
Examples (8)
Wait for a TCP port to become available
wait4x tcp localhost:8080Wait for an HTTP endpoint to return a specific status code
wait4x http https://example.com/health --expect-status-code 200Wait for a PostgreSQL database to become ready
wait4x postgresql 'postgres://user:password@localhost:5432/mydb?sslmode=disable'Wait for a Redis server to become available
wait4x redis redis://localhost:6379Wait for a service with a custom timeout and check interval
wait4x tcp localhost:3306 --timeout 30s --interval 2sWait for multiple services in parallel
wait4x tcp localhost:3306 localhost:6379 ...Display help for a subcommand
wait4x subcommand --helpDisplay version
wait4x versionmade by @shridhargupta | data from tldr-pages