-
-
Notifications
You must be signed in to change notification settings - Fork 2
COMMAND CONSOLIDATION MAP
Visual reference showing which commands consolidate into which categories
📖 For detailed migration instructions, see: Deprecated Commands Migration Guide
BEFORE (77 top-level) AFTER (13 categories)
════════════════════ ═══════════════════════
Core Lifecycle (6) Core Lifecycle (6)
├─ init ────────→ init
├─ build ────────→ build
├─ start ────────→ start
├─ stop ────────→ stop
├─ restart ────────→ restart
└─ status ────────→ status
Database (4 commands) Database (1 category)
├─ db ────────→ db (keep as-is)
├─ migrate ────┬───→ db migrate
├─ backup ────┤
└─ restore ────┴───→ db restore
Authentication (8 commands) Authentication (1 category)
├─ auth ────────→ auth (expand)
├─ oauth ────┬───→ auth oauth
├─ mfa ────┤
├─ devices ────┤
├─ roles ────┤
├─ webhooks ────┴───→ auth webhooks
├─ security (partial)
└─ audit (partial)
Tenant/Org (4 commands) Tenant (1 category)
├─ tenant ────────→ tenant (keep as-is)
├─ org ────┬───→ tenant
├─ billing ────┤
└─ whitelabel ────┴───→ tenant branding
Services (11 commands) Service (1 category)
├─ service ────────→ service (expand)
├─ admin ────┬───→ service admin
├─ admin-dev ────┤
├─ email ────┤
├─ search ────┤
├─ functions ────┤
├─ mlflow ────┤
├─ storage ────┤
├─ redis ────┤ → service cache
├─ realtime ────┤
└─ rate-limit ────┴───→ service rate-limit
Deployment (8 commands) Deploy (1 category)
├─ deploy ────────→ deploy (expand)
├─ staging ────┬───→ deploy staging
├─ prod ────┤ → deploy production
├─ rollback ────┤
├─ env ────┤
├─ sync ────┤
├─ validate ────┤
└─ migrate (tool) ────┴───→ deploy migrate
Cloud/Infra (8 commands) Cloud (1 category)
├─ cloud ────────→ cloud (expand)
├─ providers ────┬───→ cloud provider
├─ provision ────┤ → cloud server create
├─ server ────┤
├─ servers ────┤ → cloud server list
├─ k8s ────┤
├─ helm ────┤
└─ (cost, deploy in cloud) ────┴───→ cloud helm
Observability (9 commands) Observe (1 NEW category)
├─ logs ────┬───→ observe (NEW)
├─ metrics ────┤
├─ monitor ────┤
├─ health ────┤
├─ doctor ────┤
├─ history ────┤
├─ audit ────┤
├─ urls ────┤
└─ exec ────┴───→ observe exec
Security (6 commands) Secure (1 NEW category)
├─ security ────┬───→ secure (NEW)
├─ secrets ────┤
├─ vault ────┤
├─ ssl ────┤
└─ trust ────┴───→ secure ssl trust
Plugins (1 command) Plugin (1 category)
└─ plugin ────────→ plugin (keep as-is)
Developer Tools (7 commands) Dev (1 category)
├─ dev ────────→ dev (expand)
├─ perf ────┬───→ dev perf
├─ bench ────┤
├─ scale ────┤
├─ frontend ────┤
├─ ci ────┤
└─ completion ────┴───→ dev completion
Configuration (3 commands) Config (1 category)
├─ config ────────→ config (expand)
├─ clean ────┬───→ config clean
└─ reset ────┴───→ config reset
Utilities (8 commands) Utilities (4 commands)
├─ help ────────→ help
├─ version ────────→ version
├─ update ────────→ update
├─ upgrade ────────→ upgrade
├─ up ────────→ up (alias for start)
├─ down ────────→ down (alias for stop)
├─ nself ────────→ (internal)
└─ trust ────────→ secure ssl trust
✅ KEEP AS-IS
─────────────
init
build
start
stop
restart
status
Reason: Essential daily commands should remain top-level.
BEFORE AFTER
────── ─────
db db (expand)
migrate ──→ db migrate
backup ──→ db backup
restore ──→ db restore
Commands absorbed: 3
New structure: All database operations under nself db
BEFORE AFTER
────── ─────
auth auth (expand)
oauth ──→ auth oauth
mfa ──→ auth mfa
devices ──→ auth devices
roles ──→ auth roles
webhooks ──→ auth webhooks
security* ──→ auth (user-facing)
audit* ──→ auth (audit trail)
Commands absorbed: 7
New structure: All authentication under nself auth
BEFORE AFTER
────── ─────
tenant tenant (keep)
org ──→ tenant
billing ──→ tenant billing
whitelabel ──→ tenant branding
Commands absorbed: 3
New structure: All multi-tenancy under nself tenant
BEFORE AFTER
────── ─────
service service (expand)
admin ──→ service admin
admin-dev ──→ service admin dev
email ──→ service email
search ──→ service search
functions ──→ service functions
mlflow ──→ service mlflow
storage ──→ service storage
redis ──→ service cache
realtime ──→ service realtime
rate-limit ──→ service rate-limit
Commands absorbed: 10
New structure: ALL optional services under nself service
BEFORE AFTER
────── ─────
deploy deploy (expand)
staging ──→ deploy staging
prod ──→ deploy production
rollback ──→ deploy rollback
env ──→ deploy env
sync ──→ deploy sync
validate ──→ deploy validate
migrate* ──→ deploy migrate
Commands absorbed: 7
New structure: All deployment under nself deploy
BEFORE AFTER
────── ─────
cloud cloud (expand)
providers ──→ cloud provider
provision ──→ cloud server create
server ──→ cloud server
servers ──→ cloud server list
k8s ──→ cloud k8s
helm ──→ cloud helm
Commands absorbed: 7
New structure: All infrastructure under nself cloud
BEFORE AFTER
────── ─────
logs ──→ observe logs
metrics ──→ observe metrics
monitor ──→ observe monitor
health ──→ observe health
doctor ──→ observe doctor
history ──→ observe history
audit ──→ observe audit
urls ──→ observe urls
exec ──→ observe exec
Commands absorbed: 9
New category: observe - All monitoring/observability
BEFORE AFTER
────── ─────
security ──→ secure
secrets ──→ secure secrets
vault ──→ secure vault
ssl ──→ secure ssl
trust ──→ secure ssl trust
mfa* ──→ auth mfa (user-facing)
Commands absorbed: 6
New category: secure - All security operations
✅ KEEP AS-IS
─────────────
plugin
Reason: Already well-organized, no changes needed.
BEFORE AFTER
────── ─────
dev dev (expand)
perf ──→ dev perf
bench ──→ dev bench
scale ──→ dev scale
frontend ──→ dev frontend
ci ──→ dev ci
completion ──→ dev completion
Commands absorbed: 6
New structure: All developer tools under nself dev
BEFORE AFTER
────── ─────
config config (expand)
clean ──→ config clean
reset ──→ config reset
Commands absorbed: 2
New structure: All configuration under nself config
✅ KEEP TOP-LEVEL
─────────────────
help
version
update
upgrade
Reason: Essential utilities should remain top-level.
| Category | Commands Before | Commands After | Reduction |
|---|---|---|---|
| Core | 6 | 6 | 0% |
| Database | 4 → 1 | 1 | 75% |
| Auth | 8 → 1 | 1 | 87.5% |
| Tenant | 4 → 1 | 1 | 75% |
| Service | 11 → 1 | 1 | 91% |
| Deploy | 8 → 1 | 1 | 87.5% |
| Cloud | 8 → 1 | 1 | 87.5% |
| Observe | 9 → 1 | 1 (NEW) | 89% |
| Secure | 6 → 1 | 1 (NEW) | 83% |
| Plugin | 1 | 1 | 0% |
| Dev | 7 → 1 | 1 | 86% |
| Config | 3 → 1 | 1 | 67% |
| Utilities | 8 | 4 | 50% |
| TOTAL | 77 | 22 | 71% |
BEFORE AFTER
────── ─────
nself logs postgres nself observe logs postgres
nself logs --follow nself observe logs --follow
nself metrics nself observe metrics
nself health check nself observe health check
nself doctor nself observe doctor
nself urls nself observe urls
nself exec postgres psql nself observe exec postgres psql
Pattern: nself <action> → nself observe <action>
BEFORE AFTER
────── ─────
nself service list nself service list (same)
nself admin open nself service admin open
nself email test nself service email test
nself search index nself service search index
nself functions deploy nself service functions deploy
nself redis flush nself service cache flush
nself storage upload file.jpg nself service storage upload file.jpg
Pattern: nself <service> → nself service <service>
BEFORE AFTER
────── ─────
nself staging nself deploy staging
nself prod nself deploy production
nself env switch prod nself deploy env switch prod
nself sync db staging nself deploy sync db staging
nself rollback nself deploy rollback
Pattern: nself <action> → nself deploy <action>
BEFORE AFTER
────── ─────
nself providers list nself cloud provider list
nself provision do nself cloud server create do
nself servers list nself cloud server list
nself server ssh myserver nself cloud server ssh myserver
nself k8s deploy nself cloud k8s deploy
nself helm install nself cloud helm install
Pattern: nself <resource> → nself cloud <resource>
BEFORE AFTER
────── ─────
nself security scan nself secure scan
nself secrets set KEY=value nself secure secrets set KEY=value
nself vault init nself secure vault init
nself ssl generate nself secure ssl generate
nself trust nself secure ssl trust
Pattern: nself <action> → nself secure <action>
-
CI/CD Pipelines - Scripts using deployment commands
- Old:
nself staging,nself prod - New:
nself deploy staging,nself deploy production - Mitigation: Legacy aliases maintain compatibility
- Old:
-
Monitoring Scripts - Scripts using observability commands
- Old:
nself logs,nself health,nself urls - New:
nself observe logs,nself observe health,nself observe urls - Mitigation: Legacy aliases for 2+ versions
- Old:
-
Service Management - Scripts managing optional services
- Old:
nself email,nself search,nself redis - New:
nself service email,nself service search,nself service cache - Mitigation: Clear deprecation warnings
- Old:
-
Core Operations - Daily development workflow unchanged
-
nself init,nself build,nself start,nself stopremain the same
-
-
Database Operations - Minor changes only
-
nself dbmostly unchanged, just absorbsbackup,restore,migrate
-
-
Tenant Management - Already well-organized
-
nself tenantremains largely unchanged
-
Simple prefix addition:
─────────────────────
nself logs → nself observe logs
nself metrics → nself observe metrics
nself urls → nself observe urls
nself doctor → nself observe doctor
nself ssl → nself secure ssl
nself secrets → nself secure secrets
Effort: Low - Just add category prefix
Logical regrouping:
──────────────────
nself admin → nself service admin
nself email → nself service email
nself redis → nself service cache
nself staging → nself deploy staging
nself prod → nself deploy production
Effort: Medium - New grouping to learn
Multi-level changes:
───────────────────
nself server → nself cloud server
nself servers → nself cloud server list
nself provision → nself cloud server create
nself k8s → nself cloud k8s
nself helm → nself cloud helm
Effort: Higher - More significant restructuring
Print this for your desk!
╔══════════════════════════════════════════════════════════╗
║ nself Command Quick Reference ║
║ (New Structure) ║
╚══════════════════════════════════════════════════════════╝
CORE (no change)
────────────────
nself init / build / start / stop / restart / status
DATA & BUSINESS
───────────────
nself db <action> Database operations
nself auth <action> Authentication
nself tenant <action> Multi-tenancy
nself service <action> Service management
INFRASTRUCTURE
──────────────
nself deploy <action> Deployment
nself cloud <action> Cloud infrastructure
nself observe <action> Monitoring/observability
SECURITY & TOOLS
────────────────
nself secure <action> Security operations
nself plugin <action> Plugins
nself dev <action> Developer tools
CONFIGURATION
─────────────
nself config <action> Configuration
nself help / version / update / upgrade
EXAMPLES
────────
nself observe logs postgres
nself service email test
nself deploy staging
nself cloud server list
nself secure scan
nself dev perf profile
MIGRATION
─────────
Old command still works (for now)
New command is preferred
Help: nself help migrate
For full details: See COMMAND-REORGANIZATION-PROPOSAL.md
ɳSelf CLI v1.0.9. MIT licensed. Docs CC BY 4.0.
GitHub · Issues · Discussions · nself.org · nself.org/docs
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-nTV, Media Player
- 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
- 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
- plugin-nself-ai-gateway
- plugin-nself-ai-mcp
- plugin-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
- 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
All commands (52)
- A: cmd-access · cmd-account · cmd-admin
- B: cmd-backup · cmd-build · cmd-bundle
- C: cmd-ci · cmd-clean · cmd-completion · cmd-config
- D: cmd-db · cmd-deploy · cmd-dev · cmd-doctor
- E: cmd-env · cmd-exec
- F: cmd-functions
- G: cmd-generate
- H: cmd-health · cmd-help-topics
- I: cmd-init · cmd-install
- L: cmd-license · cmd-login · cmd-logout · cmd-logs
- M: cmd-man · cmd-mcp · cmd-migrate
- O: cmd-oauth · cmd-ops
- P: cmd-plugin · cmd-promote
- R: cmd-remove · cmd-reset · cmd-restart · cmd-runner
- S: cmd-secrets · cmd-security · cmd-self-heal · cmd-server · cmd-service · cmd-start · cmd-status · cmd-stop
- T: cmd-telemetry · cmd-template · cmd-trust
- U: cmd-update · cmd-urls
- V: cmd-verify-sbom · cmd-version