Complete reference for every nself top-level command. The nSelf CLI is a single Go binary with 61+ top-level commands and 80+ subcommands total. Source of truth: SPORT F02-COMMAND-INVENTORY.md.
Generated from SPORT F02-COMMAND-INVENTORY and cli/.github/wiki/cmd-*.md on 2026-04-23. 81 total top-level commands (including hidden aliases); 60 with wiki pages.
init · build · start · stop · restart · reset · clean · up · downdb (migrate · seed · backup · restore · shell · hasura · rls · pitr · pgbouncer · audit · soft-delete · fk-index · fixtures)plugin (list · install · remove · update · dev · link · test · debug · marketplace)service · exec · logs · status · health · urlsconfig · env (use · list · show · diff · copy) · secretssecurity (audit · setup · scan · status) · ssl · waf · trust · dns-setup · doctor (--deep)ai · ai-studio · ollama · clawaccount · license · oauthpromote · admin · backup · dr · watchdog · alerts · monitordev · generate · migrate · functions · flag · soak · api · audit · completion · telemetry · update · upgrade · versionInitialize a new nSelf project with an interactive configuration wizard.
Subcommands: --profile=tiny (resource profile for small VPS)
Compose your infrastructure from .env — generates docker-compose.yml, nginx configs, and SSL certificates.
Boot your nSelf stack with health checks and automatic database initialization.
Gracefully shut down all services or specific named services.
Subcommands: (positional: [SERVICES...])
Smart restart with config change detection.
Subcommands: (positional: [SERVICES...])
Stop containers, remove all data volumes, and clean generated files.
Remove generated artifacts (docker-compose.yml, nginx configs, build cache).
Alias for nself start. Boots the nSelf stack.
Subcommands: (hidden alias)
Alias for nself stop. Shuts down the nSelf stack.
Subcommands: (hidden alias)
Manage optional nSelf services.
Subcommands: list, enable <name>, disable <name>
Execute a command inside a running service container.
Subcommands: (positional: <SERVICE> [COMMAND...])
View and filter service logs with color and formatting.
Subcommands: (positional: [SERVICE])
Show health status of all services. --deep runs extended service health + plugin reachability probes.
Subcommands: (positional: [SERVICE]); --deep
Health check management with continuous monitoring.
Subcommands: check, service <name>, endpoint <url>, watch, history, config
Display all service URLs with route conflict detection.
Database operations: migrations, seed, backup, restore, shell, RLS, PITR, PgBouncer, audit, soft-delete, fk-index, fixtures.
Subcommands: migrate (up/down/status/create/verify-checksums/reset-checksum), seed (run/list/verify/graph), backup, restore, shell, drop, reset, list, hasura (console/metadata/git), rls, pitr, pgbouncer, audit, soft-delete, fk-index, fixtures
Install, remove, update, and manage nSelf plugins.
Subcommands: list (--show-eol), install <name> (--allow-eol), remove <name>, update [name], updates, refresh, start <name>, stop <name>, disable <name>, enable <name>, status [name], inventory, info <name>, new <name>, submit [path], marketplace (list/search/info), compat-check, dev <name>, link <path>, unlink <name>, test <name>, debug <name>, logs <name>
Manage nSelf account, sessions, licenses, team, and devices.
Subcommands: login (--reauth/--no-browser/--timeout), logout (--all), status (--json), team (--invite/--remove/--role/--json), licenses (--activate/--json), devices (--revoke/--force/--json), transfer <key-id> <email>
Manage license keys for nSelf product bundles.
Subcommands: set <key>, add <key> [key...], remove <key-or-product>, status, list, show, validate, clear, upgrade, refresh, export, import <file>, migrate, simulate-offline <days>
Manage OAuth provider configuration.
Subcommands: See nself oauth --help
Manage the nSelf AI plugin and local LLM stack.
Subcommands: local, install, models (list/add/remove/recommend), health, swap <model>, benchmark [model], chat <message>, pool (init/status/provision/add/remove/rotate/test/daily-reset)
Google AI Studio bridge via Cloudflare Tunnel.
Subcommands: bridge (--port/--no-context/--dry-run/--idle-timeout/--ip-allowlist/--region)
Manage Ollama local LLM integration.
Subcommands: install, status, pull <model>, remove <model>
Manage nClaw AI assistant.
Subcommands: pair, unlock, chat, config (set <key> <value>), keys (create/revoke <id>), mcp, memories (search <query>), topics (search <query>), status, prompt [question], proxy [port], export, ingest <url|path>
Manage project configuration.
Subcommands: show, get <key>, set <key> <value>, list, validate, export, import <file>
Multi-environment management: switch, list, diff, copy.
Subcommands: use <env>, list, show, diff <env-a> <env-b>, copy <from> <to>
Manage encrypted project secrets (age encryption).
Subcommands: init, set <KEY> [VALUE], get <KEY>, list, edit, rotate <KEY>, retire <KEY>, schedule, decrypt-on-deploy, audit, lint, rekey --remove <pubkey>
Promote one environment to another (e.g. staging to prod).
Subcommands: (positional: <source> <target>), rollback
See nself promote for environment promotion.
Subcommands: See also: nself promote
Open the nSelf Admin dashboard in your browser.
Subcommands: connect <host>, projects (list/add/remove <id>)
Server security: audit, setup, scan, and status. All security runs free (Security-Always-Free doctrine).
Subcommands: audit, status, setup, scan (baseline hardening scan; runs free on install/update/deploy/daily cron)
Manage SSL certificates for nSelf services and custom domains.
Subcommands: status, renew [domain], setup, add <domain>
Manage the Web Application Firewall (Coraza + OWASP CRS).
Subcommands: enable, mode <detection|blocking>, report
Set up local dev trust (DNS, SSL, port forwarding). Idempotent — skips if already configured.
Add project domains to /etc/hosts (run with sudo).
Run system diagnostics. --deep runs full hardening suite free (Security-Always-Free doctrine).
Subcommands: ~14 internal checks; --deep
Manage Prometheus alert rules and silences.
Subcommands: list, silence <alert-name>, test <alert-name>
Self-healing container watchdog with circuit breaker.
Subcommands: status, reset-breakers, history, test-alert
Monitoring stack management.
Subcommands: upgrade-dashboards
Backup operations: local and streaming encrypted backup to S3/R2/B2/GCS/Azure; schedule, resume, restore-remote.
Subcommands: create, list, restore <backup-id|latest>, restore-remote, verify <backup-id|latest>, prune, config, status, init-key, stream, resume <backup-id>, schedule
Manage async job queues (pg-boss).
Subcommands: list, jobs <queue>, retry <job-id>, purge <queue>, cron (list)
Dead-letter queue management.
Subcommands: See nself dlq --help
Manage webhook processing and outbox.
Subcommands: outbox, status
Tenant management: create, upgrade, suspend, destroy, audit.
Subcommands: create <slug>, upgrade <slug>, suspend <slug>, destroy <slug>, audit <tenant-id>
Billing operations.
Subcommands: usage <tenant-id>, invoice-preview <tenant-id>, report, retry-event <id>
Disaster recovery operations: drill, promote-standby, reconfigure-dns, rollback, fence.
Subcommands: drill, promote-standby, reconfigure-dns, rollback, fence
Production dogfood audit and reporting.
Subcommands: audit, report
Start development environment.
Generate type-safe client SDK types from the live Hasura schema.
Subcommands: --lang typescript|dart|swift|kotlin|python|all, --out, --env local|staging|prod, --watch, --operations, --no-hooks, --pydantic
Detect and migrate v1 artifacts to nSelf v2; generate AI-assisted SQL migrations.
Subcommands: detect, run, rollback, generate <description>
Manage serverless functions.
Subcommands: See nself functions --help
Feature flag management.
Subcommands: See nself flag --help
Soak test orchestration.
Subcommands: See nself soak --help
API versioning and deprecation tooling for operators.
Subcommands: version (--surface/--json/--timeout), deprecation-check (--json)
Run ecosystem audits (docs, origin, etc.).
Subcommands: docs (quarterly documentation audit; invoked by doc-sync CI gate)
Command and deployment history audit trail.
Subcommands: See nself history --help
Generate shell completion scripts.
Subcommands: (positional: bash|zsh|fish|powershell)
Manage CLI telemetry opt-in/out preferences.
Subcommands: status, off, on
Update the nSelf CLI binary and admin UI.
Subcommands: images
Upgrade the nSelf CLI (detects install method).
Show version and system information.