COMMAND CONSOLIDATION MAP - nself-org/cli GitHub Wiki
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