CLICommands

l4 status

l4 status reports the API's health and your account's current evaluation state. Run it as a pre-flight check before heavier commands, or as a CI smoke test.

l4 status
A plain run prints a Status line and a Base URL line. Those two lines are the proof the API answered, and the base URL confirms which API you reached.

Global flags (--json, --jq, --template, --quiet, --token, --api) apply. See CLI overview. Exit codes follow the standard CLI exit conventions.

l4 status resolves a credential before it calls anything, so a CI runner with no LEVELFOUR_TOKEN set fails on authentication rather than reporting on the API. CLI authentication has the resolution order and the troubleshooting table.

Examples

Pipe to JSON for monitoring scripts:

l4 status --json

Reduce the run to an exit code, with nothing on stdout or stderr:

l4 status --quiet

Output formats has what --quiet suppresses and how to read the result from $?.

On this page