Repository navigation
cmd status
Show health status of all services.
nself status [SERVICE] [flags]
nself status displays the running/stopped state of every service in the ɳSelf stack. For each service it shows the health status (healthy, unhealthy, starting), container name, and response time from the health endpoint. A summary line at the bottom shows the overall healthy count.
You can pass a single service name to show detailed status for that service only. Use --verbose to include resource usage (CPU, memory) and uptime. Use --json to get machine-readable output suitable for monitoring scripts or dashboards.
In v1.5 mode, nself status health and nself status urls are command groups. If a custom service is named health or urls, pass -- before its name to select single-service status: nself status -- health or nself status -- urls.
Exit codes are meaningful: 0 means all services are healthy, 1 means an error occurred running the checks, and 2 means one or more services are unhealthy.
A service that declares no Docker healthcheck reports as running rather than healthy, and is counted in the healthy total rather than as unhealthy.
nself status --json (or -j) writes one JSON document to stdout; everything human goes to stderr.
In v1.4 mode (the default before v1.5.0) it is the bare report and the exit status is 0 whatever the state. With NSELF_V15=1 (the default from v1.5.0) it is the v1 envelope (see JSON-Output), data is the same report plus state, and the exit status carries the state:
{
"schema_version": "1",
"command": "status",
"data": {
"timestamp": "2026-10-05T12:00:00Z",
"services": [
{ "name": "postgres", "status": "healthy", "duration": "12ms", "details": "accepting connections" },
{ "name": "hasura", "status": "starting", "duration": "3ms", "details": "health check starting" }
],
"summary": { "total": 2, "healthy": 1, "unhealthy": 1 },
"state": "transitional"
}
}data.state |
Meaning | Exit status (v1.5 mode) |
|---|---|---|
ok |
every service is healthy | 0 |
transitional |
the only services not healthy are still starting | 11 |
unhealthy |
at least one service is unhealthy | 10 |
In v1.4 mode the human exit codes stay 2 (unhealthy) and 1 (starting). NSELF_V15=1 NSELF_JSON_LEGACY=1 prints the bare report (without state) for one more minor release; the variable is removed in v1.6.0. The schema is schemas/commands/status.v1.schema.json. See Exit-Codes.
| Name | Shorthand | Type | Default | Env | Escalates to | JSON override | Description |
|---|---|---|---|---|---|---|---|
--deep |
bool |
false |
Deep health aggregator (verbose + metrics + resource usage) | ||||
--health-only |
bool |
false |
Show only health status | ||||
--json |
-j |
bool |
false |
JSON output | |||
--metrics |
bool |
false |
Show performance metrics | ||||
--verbose |
bool |
false |
Show resource usage, uptime | ||||
--help |
-h |
bool |
false |
Show help |
| Name | Description |
|---|---|
health |
Health check management with continuous monitoring |
urls |
Display all service URLs with route conflict detection |
-
Side effect:
read -
Output:
document -
JSON:
envelope(data schema) -
Exit codes:
10:one or more services are unhealthy,11:one or more services are still starting
# Show status of all services
nself status
# Show status for a specific service
nself status postgres
# JSON output for scripting
nself status --json
# Include resource usage and uptime
nself status --verbose
# Show performance metrics
nself status --metricsSample output:
Service Status Details
postgres ✓ healthy pg_isready (10ms)
hasura ✓ healthy /healthz 200 (45ms)
auth ✓ healthy /healthz 200 (52ms)
nginx ✓ healthy /health 200 (8ms)
redis ✓ healthy PONG (3ms)
Summary: 5/5 services healthy
- Commands — full command index
- Core-Services — what a stack is made of
Getting Started
Commands
- Commands, Overview
- Lifecycle: cmd-init · cmd-build · cmd-start · cmd-stop · cmd-restart · cmd-dev
- Monitoring: cmd-status · cmd-logs · cmd-health · cmd-urls · cmd-doctor · cmd-monitor · cmd-alerts · cmd-sentry · cmd-watchdog
- Data: cmd-db · cmd-backup · cmd-dr · cmd-queue · cmd-webhooks
- Config: cmd-config · cmd-service · cmd-env · cmd-promote
- Networking: cmd-ssl · cmd-trust · cmd-dns-setup
- Security: cmd-access · cmd-security · cmd-secrets
- Tenancy: cmd-tenant · cmd-billing
- Plugins: cmd-plugin · cmd-license · cmd-dogfood (extracted, CLI-R11) · cmd-k8s (extracted, CLI-R11) · cmd-encryption (extracted, CLI-R11) · cmd-waf (extracted, CLI-R11) · cmd-federation (extracted, CLI-R11) · cmd-mail (extracted, CLI-R11) · cmd-dlq (extracted, CLI-R11)
- AI: cmd-ai · cmd-claw · cmd-model
- Templates: cmd-template
- Utilities: cmd-exec · cmd-clean · cmd-reset · cmd-update · cmd-upgrade · cmd-version · cmd-admin · cmd-migrate · cmd-migrate-firebase · cmd-migrate-supabase · cmd-completion
Features
- Features, Overview
- Feature-Auth
- Feature-Storage
- Feature-Search
- Feature-Functions
- Feature-Email
- Feature-Monitoring
- Feature-Plugins
- Feature-nClaw, AI Assistant
- Feature-nChat, Messaging
- Feature-nFamily, Family Social
- Feature-nCloud, Managed Hosting
- Feature-Memory-Rooms, Knowledge Organization
- Feature-Agent-Dashboard, Agent Metrics
- Feature-Image-Generation, AI Image Generation
Configuration
- Configuration, Overview
- Config-Env-Vars
- Config-Postgres
- Config-Hasura
- Config-Auth
- Config-Nginx
- Shared-Proxy
- Config-Optional-Services
- Config-Custom-Services
- Config-System
Plugins (87 + 10 monitoring)
- Plugin-Overview
- Plugin-Catalog
- Plugin-Install
- Plugin-Licensing
- Plugin-Architecture
- Plugin-Dev-Guide
- Plugin-Migrations-Contract
Free (25)
- plugin-backup
- plugin-content-acquisition
- plugin-content-progress
- plugin-cron
- plugin-donorbox
- plugin-feature-flags
- plugin-github
- plugin-github-runner
- plugin-invitations
- plugin-jobs
- plugin-link-preview
- plugin-mdns
- plugin-mlflow
- plugin-monitoring
- plugin-notifications
- plugin-notify
- plugin-paypal
- plugin-search
- plugin-shopify
- plugin-stripe
- plugin-subtitle-manager
- plugin-tokens
- plugin-torrent-manager
- plugin-vpn
- plugin-webhooks
Pro (62)
- plugin-access-controls
- plugin-activity-feed
- plugin-admin-api
- plugin-analytics
- plugin-auth
- plugin-bots
- plugin-browser
- plugin-calendar
- plugin-cdn
- plugin-chat
- plugin-claw
- plugin-claw-budget
- plugin-claw-news
- plugin-claw-web
- plugin-cloudflare
- plugin-cms
- plugin-compliance
- plugin-ddns
- plugin-devices
- plugin-documents
- plugin-entitlements
- plugin-file-processing
- plugin-game-metadata
- plugin-geocoding
- plugin-geolocation
- plugin-google
- plugin-home
- plugin-idme
- plugin-knowledge-base
- plugin-linkedin
- plugin-livekit
- plugin-media-processing
- plugin-meetings
- plugin-moderation
- plugin-mux
- plugin-object-storage
- plugin-observability
- plugin-photos
- plugin-podcast
- plugin-post
- plugin-realtime
- plugin-retro-gaming
- plugin-rom-discovery
- plugin-social
- plugin-sports
- plugin-support
- plugin-tmdb
- plugin-voice
- plugin-web3
- plugin-workflows
Planned (26)
plugin-auditplugin-blogplugin-checkoutplugin-commerceplugin-drmplugin-exportplugin-flowplugin-importplugin-ldapplugin-mailgunplugin-mediaplugin-oauth-providersplugin-pagesplugin-postmarkplugin-rate-limitplugin-reportsplugin-samlplugin-schedulerplugin-sendgridplugin-ssoplugin-subscriptionplugin-thumbplugin-transcoderplugin-twilioplugin-wafplugin-watermark
Guides
- Guide-Production-Deployment
- Guide-SSL-Setup
- Guide-Multi-Tenancy
- Guide-Security-Hardening
- Guide-Monitoring-Setup
- Guide-Backup-Restore
- Guide-Custom-Services
- Guide-Migration-from-v1
Architecture
- Architecture
- Architecture-Guardrails
- Service-Graph
- Compose-Generation
- Nginx-Generation
- Plugin-Architecture
Reference
Machine interface
-
JSON-Output,
--jsonenvelope -
Command-Registry,
nself help --json - Exit-Codes
- error-codes, Error Codes
-
Compat-V15,
NSELF_V15gate
Licensing
Security
Brand
Operations
- operations/release-cascade, Release Cascade
- operations/self-healing, Self-Healing Schema
- operations/redis-tuning, Redis Pool Tuning
- operations/meilisearch-warmup, MeiliSearch Warm-Up
- operations/jwt-rotation, JWT Key Rotation
- operations/windows-wsl2-setup, Windows / WSL2 Setup
- operations/gemini-oauth-reauth, Gemini OAuth Reauth
Contributing
Admin
- USER-ACTION-QUEUE, Pending Admin Actions
All commands (21)
- A: cmd-add · cmd-admin
- B: cmd-backup · cmd-build
- C: cmd-clean · cmd-config
- D: cmd-db · cmd-deploy · cmd-doctor
- E: cmd-exec
- I: cmd-init
- L: cmd-license · cmd-logs
- M: cmd-mcp
- R: cmd-remove · cmd-reset · cmd-restart
- S: cmd-start · cmd-status · cmd-stop
- U: cmd-update