CLI reference/Server and administration
clavis healthcheck
Check that the server on this machine is ready
sh
clavis healthcheck [flags]Ask the server running on this machine whether it is ready, and exit non-zero if it is not. It reads the same settings as clavis server, so it finds the right port. It asks the plain HTTP port, which answers /readyz even when the server has TLS on, so no certificate is involved. The Docker image runs it as its HEALTHCHECK, because the image has no shell or curl.
Examples
From outside the container
sh
docker exec clavis clavis healthcheckFlags
-c, --config string- path to clavis.yaml
--timeout duration- how long to wait for an answer Default:
3s
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command