Skip to content

CLI Status

The status command allows you to quickly verify the health and configuration of your OneGuard CLI.

oneguard status

Checks if your CLI is properly authenticated and if the OneGuard backend is reachable.

Usage

oneguard status

What it checks

  1. API Key Configuration: Verifies that you have run oneguard auth login and that a key is stored locally.
  2. Backend Connectivity: Pings the OneGuard API.
  3. Key Validity: Verifies that your API Key is accepted by the server and prints your Organization ID prefix.

Example Output

Checking OneGuard CLI status...

✅ API Key is configured.
Verifying connection to backend...
✅ Backend is reachable.
✅ API Key is valid (Org ID: e4dc3fe6...).