COMMAND REORGANIZATION VISUAL - nself-org/cli GitHub Wiki
Quick Reference | See COMMAND-REORGANIZATION-PROPOSAL.md for full details
77 top-level commands creating confusion and cognitive overload
nself [one of 77 options] โ Too many choices!
Authentication scattered: auth, oauth, mfa, devices, security, roles, webhooks
Database scattered: db, migrate, backup, restore
Deployment scattered: deploy, staging, prod, rollback, env, sync, validate
Cloud scattered: cloud, providers, provision, server, servers, k8s, helm
Observability scattered: logs, metrics, monitor, health, status, doctor, history, audit, urls, exec
Services scattered: service, admin, email, search, functions, mlflow, storage, redis, realtime
Security scattered: security, secrets, vault, ssl, trust, mfa
Developer tools scattered: dev, perf, bench, scale, frontend, ci, completion
Result: Users struggle to find commands, help text is overwhelming
13 logical categories with clear boundaries
nself <category> <action> โ Clear mental model!
Core (6 commands)
โโโ init Initialize project
โโโ build Build configs
โโโ start Start services
โโโ stop Stop services
โโโ restart Restart services
โโโ status Service status
Data & Business Logic (4 categories)
โโโ db Database operations (10+ subcommands)
โโโ auth Authentication & authorization (20+ subcommands)
โโโ tenant Multi-tenancy (32+ subcommands)
โโโ service Service management (25+ subcommands)
Infrastructure (3 categories)
โโโ deploy Deployment & environments (15+ subcommands)
โโโ cloud Cloud infrastructure (30+ subcommands)
โโโ observe Monitoring & observability (25+ subcommands)
Security & Tools (3 categories)
โโโ secure Security & compliance (20+ subcommands)
โโโ plugin Plugin management (10+ subcommands)
โโโ dev Developer tools (20+ subcommands)
Configuration (2 categories)
โโโ config Configuration management (10+ subcommands)
โโโ help Help & utilities (4+ subcommands)
Result: 71% reduction in top-level commands, logical grouping, easy discovery
BEFORE (8 top-level commands):
nself auth login
nself oauth enable
nself mfa enable
nself devices list
nself roles list
nself webhooks list
nself security scan
# Users must remember 8 separate top-level commands!AFTER (1 top-level category):
nself auth login
nself auth oauth enable
nself auth mfa enable
nself auth devices list
nself auth roles list
nself auth webhooks list
# Everything auth-related is under 'nself auth'BEFORE (11 top-level commands):
nself service list
nself admin open
nself email test
nself search index
nself functions deploy
nself mlflow ui
nself storage upload
nself redis flush
nself realtime status
nself rate-limit config
# Mixed pattern - some under 'service', others top-levelAFTER (1 unified category):
nself service list
nself service admin open
nself service email test
nself service search index
nself service functions deploy
nself service mlflow ui
nself service storage upload
nself service cache flush
nself service realtime status
nself service rate-limit config
# ALL optional services under 'nself service'BEFORE (9 top-level commands):
nself logs postgres
nself metrics
nself monitor
nself health check
nself doctor
nself history
nself audit
nself urls
nself exec postgres sh
# Scattered across multiple top-level commandsAFTER (1 unified category):
nself observe logs postgres
nself observe metrics
nself observe monitor
nself observe health check
nself observe doctor
nself observe history
nself observe audit
nself observe urls
nself observe exec postgres sh
# ALL observability under 'nself observe'| Old Command | New Command | Category |
|---|---|---|
nself oauth |
nself auth oauth |
Auth |
nself mfa |
nself auth mfa |
Auth |
nself devices |
nself auth devices |
Auth |
nself roles |
nself auth roles |
Auth |
nself webhooks |
nself auth webhooks |
Auth |
nself admin |
nself service admin |
Service |
nself email |
nself service email |
Service |
nself search |
nself service search |
Service |
nself functions |
nself service functions |
Service |
nself mlflow |
nself service mlflow |
Service |
nself storage |
nself service storage |
Service |
nself redis |
nself service cache |
Service |
nself realtime |
nself service realtime |
Service |
nself staging |
nself deploy staging |
Deploy |
nself prod |
nself deploy production |
Deploy |
nself env |
nself deploy env |
Deploy |
nself sync |
nself deploy sync |
Deploy |
nself rollback |
nself deploy rollback |
Deploy |
nself providers |
nself cloud provider |
Cloud |
nself provision |
nself cloud server create |
Cloud |
nself server |
nself cloud server |
Cloud |
nself servers |
nself cloud server list |
Cloud |
nself k8s |
nself cloud k8s |
Cloud |
nself helm |
nself cloud helm |
Cloud |
nself logs |
nself observe logs |
Observe |
nself metrics |
nself observe metrics |
Observe |
nself monitor |
nself observe monitor |
Observe |
nself health |
nself observe health |
Observe |
nself doctor |
nself observe doctor |
Observe |
nself history |
nself observe history |
Observe |
nself audit |
nself observe audit |
Observe |
nself urls |
nself observe urls |
Observe |
nself exec |
nself observe exec |
Observe |
nself security |
nself secure |
Secure |
nself secrets |
nself secure secrets |
Secure |
nself vault |
nself secure vault |
Secure |
nself ssl |
nself secure ssl |
Secure |
nself trust |
nself secure ssl trust |
Secure |
nself perf |
nself dev perf |
Dev |
nself bench |
nself dev bench |
Dev |
nself scale |
nself dev scale |
Dev |
nself frontend |
nself dev frontend |
Dev |
nself ci |
nself dev ci |
Dev |
nself completion |
nself dev completion |
Dev |
nself clean |
nself config clean |
Config |
nself reset |
nself config reset |
Config |
nself billing |
nself tenant billing |
Tenant |
nself whitelabel |
nself tenant branding |
Tenant |
nself org |
nself tenant |
Tenant |
Daily essentials - Always top-level, no changes
init, build, start, stop, restart, status
ALL database operations - Already well-organized
nself db migrate nself db backup nself db types
nself db schema nself db restore nself db inspect
nself db seed nself db shell nself db data
nself db mock nself db query
ALL auth & authorization - Consolidates 8 top-level commands
nself auth login nself auth oauth enable
nself auth signup nself auth mfa enable
nself auth logout nself auth devices list
nself auth status nself auth roles create
ALL tenant operations - Already well-organized
nself tenant create nself tenant billing usage
nself tenant list nself tenant branding
nself tenant member add nself tenant domains add
nself tenant setting set nself tenant email edit
ALL optional services - Consolidates 11 top-level commands
nself service enable nself service email test
nself service disable nself service search index
nself service admin open nself service functions deploy
nself service storage upload nself service cache flush
ALL deployment operations - Consolidates 8 top-level commands
nself deploy staging nself deploy env switch
nself deploy production nself deploy sync db
nself deploy canary nself deploy rollback
nself deploy blue-green nself deploy validate
ALL cloud & infrastructure - Consolidates 8 top-level commands
nself cloud provider list nself cloud k8s deploy
nself cloud server create nself cloud helm install
nself cloud server ssh nself cloud cost compare
nself cloud server list nself cloud deploy full
ALL monitoring & diagnostics - Consolidates 9 top-level commands
nself observe logs nself observe health check
nself observe metrics nself observe doctor
nself observe monitor nself observe history
nself observe urls nself observe audit
nself observe exec
ALL security operations - Consolidates 6 top-level commands
nself secure scan nself secure vault init
nself secure incidents nself secure ssl generate
nself secure secrets set nself secure headers config
nself secure webauthn add nself secure ssl trust
Plugin management - No changes
nself plugin list nself plugin status
nself plugin install nself plugin stripe sync
nself plugin remove nself plugin github repos
nself plugin update nself plugin shopify orders
ALL dev utilities - Consolidates 7 top-level commands
nself dev perf profile nself dev frontend add
nself dev bench run nself dev ci init
nself dev scale postgres nself dev completion bash
nself dev watch
ALL config operations - Consolidates 3 top-level commands
nself config show nself config validate
nself config set nself config clean
nself config edit nself config reset
nself config diff
Core utilities - Minimal changes
nself help nself version
nself update nself upgrade
nself
โโโ Core (Always available)
โ โโโ init
โ โโโ build
โ โโโ start
โ โโโ stop
โ โโโ restart
โ โโโ status
โ
โโโ Data Layer
โ โโโ db
โ โ โโโ migrate (up, down, create, status)
โ โ โโโ schema (scaffold, import, apply, diagram)
โ โ โโโ seed (users, create)
โ โ โโโ mock (auto)
โ โ โโโ backup / restore
โ โ โโโ shell / query
โ โ โโโ types (typescript, go, python)
โ โ โโโ inspect (size, slow)
โ โ โโโ data (export, anonymize)
โ โ
โ โโโ auth
โ โ โโโ login / signup / logout / status
โ โ โโโ oauth (install, enable, config, test, list)
โ โ โโโ mfa (enable, disable, verify, backup-codes, qr)
โ โ โโโ devices (list, revoke, trust)
โ โ โโโ roles (list, create, assign, permissions)
โ โ โโโ webhooks (list, create, test)
โ โ
โ โโโ tenant
โ โโโ init / create / list / show / suspend / activate / delete / stats
โ โโโ member (add, remove, list)
โ โโโ billing (usage, invoice, subscription, payment, quota, plan, export, customer)
โ โโโ branding / domains / email / themes
โ โโโ setting (set, get, list)
โ
โโโ Infrastructure Layer
โ โโโ service
โ โ โโโ list / enable / disable / status / restart / logs
โ โ โโโ admin (status, open, users, config, dev)
โ โ โโโ email (test, inbox, config)
โ โ โโโ search (index, query, stats)
โ โ โโโ functions (deploy, invoke, logs, list)
โ โ โโโ mlflow (ui, experiments, runs, artifacts)
โ โ โโโ storage (init, upload, list, delete, config, status, test)
โ โ โโโ cache (stats, flush, keys)
โ โ โโโ realtime (status, channels, broadcast)
โ โ โโโ rate-limit (config, status, reset)
โ โ
โ โโโ deploy
โ โ โโโ staging / production / rollback
โ โ โโโ preview / canary / blue-green
โ โ โโโ check / status
โ โ โโโ env (list, create, switch, diff)
โ โ โโโ sync (db, files, config, full, auto, watch, status, history)
โ โ โโโ validate (config, env)
โ โ
โ โโโ cloud
โ โ โโโ provider (list, init, validate, info)
โ โ โโโ server (create, destroy, list, status, ssh, add, remove)
โ โ โโโ cost (estimate, compare)
โ โ โโโ deploy (quick, full)
โ โ โโโ k8s (init, convert, apply, deploy, status, logs, scale, rollback, delete, cluster, namespace)
โ โ โโโ helm (init, generate, install, upgrade, rollback, uninstall, list, status, values, template, package, repo)
โ โ
โ โโโ observe
โ โโโ logs [service]
โ โโโ metrics [service]
โ โโโ monitor (status, enable, alerts, grafana)
โ โโโ health (check, service, endpoint, watch, history, config)
โ โโโ doctor [--fix]
โ โโโ history (show, deployments, migrations, rollbacks, commands, search, export, clear)
โ โโโ audit (events, users, export)
โ โโโ urls [--env, --diff]
โ โโโ exec <service> <cmd>
โ
โโโ Security & Tooling
โ โโโ secure
โ โ โโโ scan (all, passwords, mfa, sessions, suspicious)
โ โ โโโ incidents (list, show, resolve)
โ โ โโโ events (list, show)
โ โ โโโ webauthn (list, add, remove)
โ โ โโโ headers (show, config, test)
โ โ โโโ secrets (list, set, get, delete, rotate)
โ โ โโโ vault (init, status, seal, unseal, backup, restore)
โ โ โโโ ssl (generate, install, renew, trust, verify)
โ โ
โ โโโ plugin
โ โ โโโ list / install / remove / update / refresh / status
โ โ โโโ stripe (sync, customers, subscriptions, invoices, webhook)
โ โ โโโ github (sync, repos, issues, prs, workflows, webhook)
โ โ โโโ shopify (sync, products, orders, customers, webhook)
โ โ
โ โโโ dev
โ โโโ start / stop / status / watch
โ โโโ perf (profile, analyze, slow-queries, report, dashboard, suggest)
โ โโโ bench (run, baseline, compare, stress, report)
โ โโโ scale <service> [--auto]
โ โโโ frontend (status, list, add, remove, deploy, logs, env)
โ โโโ ci (init, validate, status)
โ โโโ completion (bash, zsh, fish, install)
โ
โโโ Configuration & Help
โโโ config
โ โโโ show / get / set / list / edit
โ โโโ validate / diff / export / import / reset
โ โโโ clean / reset [--hard]
โ
โโโ help / version / update / upgrade
โ
New commands work alongside old
โ
Zero breaking changes
โ
Users can start trying new syntax
โ ๏ธ Old commands show deprecation notice
โ ๏ธ Suggest new command
โ
Continue working normally
โ
Smart redirects
โ
Telemetry tracking (opt-in)
โ
Maintained for 2+ versions
โ Old commands removed
โ
Helpful error messages
โ
Migration guide available
$ nself help
Usage: nself <command>
Commands:
admin Admin UI
admin-dev Admin dev mode
audit Audit trail
auth Authentication
backup Backup database
bench Benchmarking
billing Billing management
build Build project
ci CI/CD generation
clean Clean resources
cloud Cloud infrastructure
completion Shell completion
config Configuration
db Database operations
deploy Deploy application
dev Development mode
devices User devices
doctor Diagnostics
down Stop services
email Email service
env Environment management
exec Execute in container
frontend Frontend apps
functions Serverless functions
health Health checks
helm Helm charts
help Show help
history History
init Initialize project
k8s Kubernetes
logs View logs
metrics Metrics
mfa Multi-factor auth
migrate Migrations
mlflow ML tracking
monitor Monitoring
nself nself CLI
oauth OAuth providers
org Organizations
perf Performance
plugin Plugins
prod Production
providers Cloud providers
provision Provision servers
rate-limit Rate limiting
realtime Realtime service
redis Redis cache
reset Reset project
restart Restart services
restore Restore database
roles User roles
rollback Rollback deployment
scale Service scaling
search Search service
secrets Secrets management
security Security
server Server management
servers List servers
service Service management
ssl SSL certificates
staging Staging deployment
start Start services
status Service status
stop Stop services
storage Object storage
sync Sync data
tenant Multi-tenancy
trust Trust certificates
up Start services
update Update nself
upgrade Upgrade nself
urls Service URLs
validate Validate config
vault Vault management
version Show version
webhooks Webhooks
whitelabel White-label
(77 commands - overwhelming!)
$ nself help
Usage: nself <category> <action>
Core Commands:
init Initialize project
build Build configs
start Start services
stop Stop services
restart Restart services
status Service status
Main Categories:
db Database operations (migrate, backup, types, etc.)
auth Authentication & authorization (login, oauth, mfa, roles, etc.)
tenant Multi-tenancy (create, billing, branding, domains, etc.)
service Service management (admin, email, search, storage, etc.)
deploy Deployment & environments (staging, prod, sync, etc.)
cloud Cloud infrastructure (providers, servers, k8s, helm, etc.)
observe Monitoring & observability (logs, metrics, health, etc.)
secure Security & compliance (scan, secrets, vault, ssl, etc.)
plugin Plugin management (install, update, stripe, github, etc.)
dev Developer tools (perf, bench, frontend, ci, etc.)
config Configuration (show, edit, validate, clean, etc.)
Utilities:
help Show help
version Show version
update Update nself
upgrade Upgrade nself
For category help: nself help <category>
For command help: nself <category> <action> --help
(13 categories - easy to scan!)
BEFORE:
nself start
nself status
nself logs postgres
nself db migrate up
nself db seed
nself urlsAFTER:
nself start
nself status
nself observe logs postgres
nself db migrate up
nself db seed
nself observe urlsBEFORE:
nself deploy check
nself staging
nself sync db staging
nself prod
nself rollbackAFTER:
nself deploy check
nself deploy staging
nself deploy sync db staging
nself deploy production
nself deploy rollbackBEFORE:
nself service enable redis
nself redis flush
nself email test
nself search index
nself functions deployAFTER:
nself service enable redis
nself service cache flush
nself service email test
nself service search index
nself service functions deployBEFORE:
nself logs postgres
nself health check
nself doctor
nself metrics
nself urlsAFTER:
nself observe logs postgres
nself observe health check
nself observe doctor
nself observe metrics
nself observe urlsA: No! Legacy aliases will be supported for 2+ major versions. Your scripts will continue to work.
A: Yes! During the transition period, both will work. Eventually, old commands will show deprecation warnings before being removed.
A: Use the migration map above. Most changes are straightforward:
-
nself logsโnself observe logs -
nself oauthโnself auth oauth -
nself emailโnself service email
A: 77 commands is too many to remember. Grouping by category makes discovery easier and creates a clear mental model.
A: The old command will redirect and show you the new one:
$ nself logs postgres
โ ๏ธ DEPRECATED: Use 'nself observe logs postgres'
[logs continue...]A: Yes! Tab completion will work for both old and new commands during the transition.
Problem: 77 top-level commands creating confusion Solution: 13 logical categories with backward-compatible migration Result: 71% reduction in top-level commands, improved discoverability Timeline: 4-phase rollout over 6-12 months Risk: Low - legacy aliases maintain compatibility
Next Step: Review proposal and approve for implementation
For full details, see COMMAND-REORGANIZATION-PROPOSAL.md