-
-
Notifications
You must be signed in to change notification settings - Fork 2
cmd logs
View and filter service logs with color and formatting.
nself logs [SERVICE] [flags]
nself logs streams or displays logs from one or all ɳSelf services. Without a service name, it interleaves logs from all running services. Pass a service name as a positional argument to filter to that service. Use --service (repeatable) to target multiple specific services.
Output is colorized by level: errors in red, warnings in yellow, info in green. Use --follow for live streaming; press Ctrl+C to exit cleanly. Use --quiet to suppress healthcheck noise and focus on application-level events. Use --plain or redirect stdout to a file when piping output to other tools.
The --status, --summary, and --top flags provide aggregate views without raw log output, useful for quick operational checks.
| Flag | Default | Description |
|---|---|---|
--follow, -f
|
false | Follow log output (live streaming) |
--tail, -n
|
10 |
Number of lines to show |
--more |
false | Show last 50 lines |
--all |
false | Show last 100 lines |
--since |
"" |
Show logs since a time (e.g. 1h, 30m, or RFC3339) |
--until |
"" |
Show logs until a time (e.g. 1h or RFC3339) |
--errors, -e
|
false | Show only error lines |
--level, -l
|
"" |
Filter by minimum level: debug, info, warn, error
|
--search, -s
|
"" |
Substring search pattern (case-insensitive) |
--grep |
"" |
Regex pattern filter |
--service, -S
|
[] |
Filter by service name; repeatable for multiple services |
--json |
false | Structured JSON output per line |
--compact, -c
|
false | Compact output: [service] message
|
--quiet, -q
|
false | Filter out healthcheck noise |
--plain |
false | Plain output with no highlighting, for piping |
--no-color |
false | Disable colored output |
--status |
false | Show service status overview |
--summary |
false | Show recent errors by service |
--top |
false | Show most active services |
--help, -h
|
— | Show help |
# Last 10 lines from all services
nself logs# Follow all logs live
nself logs -f# Last 10 lines from a single service
nself logs hasura# Follow postgres logs
nself logs -f postgres# Show last 100 lines
nself logs --all# Only error lines
nself logs -e# Logs from the last hour
nself logs --since 1h# Logs between one hour ago and thirty minutes ago
nself logs --since 1h --until 30m# Filter to two specific services
nself logs -S hasura -S postgres# Structured JSON output for log aggregation
nself logs --json# Regex filter for timeout errors
nself logs --grep "error.*timeout"# Plain output for piping to grep
nself logs --plain | grep migration# Quick status overview
nself logs --status# Recent errors by service
nself logs --summary# Most active services
nself logs --top| Code | Meaning |
|---|---|
0 |
Success |
1 |
No ɳSelf project found in current directory or parents |
1 |
No containers running (stack not started) |
1 |
Docker compose error |
- cmd-status, check stack health and service states
- cmd-health, run health checks against all services
- cmd-restart, restart one or more services
- Commands, full command index
ɳSelf CLI v1.0.9. MIT licensed. Docs CC BY 4.0.
GitHub · Issues · Discussions · nself.org · docs.nself.org
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 · cmd-dogfood
- 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-security · cmd-secrets · cmd-waf
- Tenancy: cmd-tenant · cmd-billing
- Plugins: cmd-plugin · cmd-license
- 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-ɳClaw, AI Assistant
- Feature-ɳChat, Messaging
- Feature-ɳTV, Media Player
- Feature-ɳFamily, Family Social
- Feature-ɳCloud, 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
- Config-Optional-Services
- Config-Custom-Services
- Config-System
Plugins (87 + 10 monitoring)
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
- nself-ai-gateway
- nself-ai-cc
- nself-ai-mcp
- plugin-analytics
- plugin-auth
- plugin-backup-pro
- 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-cron-pro
- plugin-ddns
- plugin-devices
- plugin-documents
- plugin-donorbox-pro
- plugin-entitlements
- plugin-epg
- 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-notify-pro
- plugin-object-storage
- plugin-observability
- plugin-paypal-pro
- plugin-photos
- plugin-podcast
- plugin-post
- plugin-realtime
- plugin-recording
- plugin-retro-gaming
- plugin-rom-discovery
- plugin-shopify-pro
- plugin-social
- plugin-sports
- plugin-stream-gateway
- plugin-streaming
- plugin-stripe-pro
- 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
Reference
- API-Reference
- reference-error-codes, Error Codes
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