docs/docs/en/api/cli/env/status.md
Show env status. By default it inspects the current env. You can also inspect one named env, or use --all to inspect all envs.
This command prints a simplified status table with Env, Status, and API Base URL.
nb env status [name] [flags]
| Parameter | Type | Description |
|---|---|---|
[name] | string | Configured environment name to inspect; uses the current env if omitted; cannot be used with --all |
--all | boolean | Show status for all configured envs |
--json-output | boolean | Output the result as JSON |
[name] and --all cannot be used together.
Status is the result returned after the CLI checks the target env. Typical values include:
ok: the env is reachable and authenticatedauth failed: the API is reachable but authentication failedunreachable: the target address could not be reachedunconfigured: the env configuration is incompletemissing: the managed app for this env no longer existsnb env status
nb env status app1
nb env status --all
nb env status --all --json-output