curl -o /dev/null -s -w '%{http_code}' http://localhost:3000/health

Category: Self-Hosting

curl -o /dev/null -s -w '%{http_code}' http://localhost:3000/health

Check an app's HTTP health endpoint and print only the status code — useful in scripts and

Returns only the HTTP status code of a health endpoint (e.g., 200 or 503). The -o /dev/null discards the body and -s suppresses progress. Great for monitoring scripts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.