CLI Reference — v1.1.0
Every nself command at a glance
84 commands across 10 categories. Type any command name or keyword to filter.
Get the CLI: brew install nself-org/tap/nself · curl -fsSL https://install.nself.org | bash
Showing 84 of 84 commands
Lifecycle10 commands
| Command | Description |
|---|
| nself init | Initialize a new project with an interactive wizard |
| nself build | Compose infrastructure from .env; generates docker-compose + nginx |
| nself start | Boot the nSelf stack and all Docker services |
| nself stop | Gracefully shut down all services or specific services |
| nself restart | Smart restart with config-change detection |
| nself reset | Reset project state — wipe volumes and re-seed |
| nself clean | Remove generated files, caches, and stopped containers |
| nself up | Alias for build + start in one step |
| nself down | Stop and remove all containers and networks |
| nself uninstall | Remove nSelf stack completely from this machine |
Service Management9 commands
| Command | Description |
|---|
| nself service | Manage individual services (enable, disable, inspect) |
| nself status | Show health status of all running services |
| nself logs | View and follow service logs with filtering |
| nself exec | Execute a command inside a running service container |
| nself health | Run health checks against services and endpoints |
| nself urls | Print all service URLs for the current environment |
| nself doctor | Diagnose configuration issues and security posture |
| nself watchdog | Configure and manage the process watchdog |
| nself monitor | Live dashboard of service metrics and resource usage |
Database7 commands
| Command | Description |
|---|
| nself db | Database management — console, seed, reset, shell |
| nself migrate | Run, roll back, and manage Drizzle schema migrations |
| nself backup | Create, schedule, and restore PostgreSQL backups |
| nself generate | Generate Drizzle migration files from schema changes |
| nself pitr | Point-in-time recovery — list and restore to a checkpoint |
| nself dlq | Inspect and replay dead-letter queue messages |
| nself queue | Manage BullMQ job queues — list, pause, drain, retry |
Plugin & License7 commands
| Command | Description |
|---|
| nself plugin | Install, remove, list, and update nSelf plugins |
| nself license | Activate, validate, and manage your nSelf license key |
| nself ollama | Manage Ollama local LLM models — pull, run, list |
| nself ai | AI inference gateway — send prompts, switch providers |
| nself ai-studio | Launch the browser-based AI Studio UI |
| nself mcp | MCP (Model Context Protocol) server management |
| nself model | List and configure AI model defaults and aliases |
Account & Auth4 commands
| Command | Description |
|---|
| nself account | Manage your nSelf account — profile, keys, usage |
| nself login | Authenticate with nself.org (opens browser OAuth flow) |
| nself logout | Clear stored credentials and end the session |
| nself oauth | Configure OAuth providers (Google, GitHub, etc.) |
Operations10 commands
| Command | Description |
|---|
| nself security | Run security hardening scans and apply fixes |
| nself ssl | Provision, renew, and inspect TLS certificates |
| nself dns-setup | Configure local DNS resolver for *.local.nself.org |
| nself trust | Install mkcert CA and port-forwarding rules (macOS) |
| nself waf | Manage the Web Application Firewall ruleset |
| nself encryption | Manage encryption keys and at-rest encryption settings |
| nself gdpr | GDPR tools — data exports, erasure requests, consent logs |
| nself telemetry | Toggle anonymous usage telemetry on or off |
| nself audit | Query and export the tamper-evident audit log |
| nself pentest-kit | Security testing utilities — fuzzer, CVE scanner, OWASP checks |
Deploy & Release14 commands
Self-Healing3 commands
| Command | Description |
|---|
| nself self-heal | Run the self-healing engine — detect and auto-fix known issues |
| nself alerts | Configure and test alerting rules and notification channels |
| nself maintenance | Enable or disable maintenance mode with custom message |
Misc17 commands
| Command | Description |
|---|
| nself webhooks | Register, list, and test outbound webhooks |
| nself mail | Send test emails and manage mail provider configuration |
| nself billing | View subscription status, usage, and payment methods |
| nself claw | ɳClaw assistant management — backend, memory, threads |
| nself completion | Generate shell completion scripts (bash, zsh, fish, PS) |
| nself config | Read and write nSelf config values interactively |
| nself env | Manage environment files and switch environments |
| nself secrets | Encrypt, rotate, and inject secrets at runtime |
| nself flag | Manage feature flags — list, enable, disable, rollout |
| nself functions | Deploy and invoke serverless edge functions |
| nself help-topics | Browse extended help topics beyond command --help |
| nself migrate-from-v099 | One-time migration assistant for upgrading from v0.9.9 |
| nself template | Scaffold new custom services from language templates |
| nself update | Update nSelf configuration files to latest schema |
| nself version | Print the current nSelf CLI version |
| nself api | Make authenticated API calls to your nSelf backend |
| nself admin | Manage the local Admin UI (start, stop, open) |
Run nself <command> --help for full flag reference. Docs auto-generated from SPORT F02-COMMAND-INVENTORY.md.