-
-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrade From v0.9
Step-by-step guide for upgrading an ɳSelf v0.9.x project to v1.0.9.
- Before you start
- Step 1: Upgrade the CLI
- Step 2: Run the migration
- Step 3: Re-install plugins
- Step 4: Verify the stack
- Command changes
- Environment file changes
- Plugin changes
- Troubleshooting
- Rollback
What changed in v1.0.0:
- The CLI was rewritten from Bash to Go. It is now a single binary.
- Plugin format changed from shell scripts to signed Go bundles. All v0.9 plugins must be re-installed.
- The environment file layout changed from a single
.envto a cascade:.env.dev→.env.local→.env.staging/.env.prod→.env.secrets→.env.computed. - The nginx config moved from
nginx/(flat) tonginx/sites/(structured). -
.nself/configchanged from a plain file to a directory. -
nself.sh(the v0.9 bootstrap script) is no longer used.
What nself migrate does automatically:
- Stops running containers.
- Backs up your current project state to
.nself/backup/{timestamp}/. - Moves nginx configs to
nginx/sites/. - Regenerates
docker-compose.yml, nginx, and SSL certificates for v1.
What you must do manually after migration:
- Re-enter your license key:
nself license set <key>. - Re-install each plugin:
nself plugin install <name>.
brew upgrade nself-org/nself/nself
nself --version
# Expected: nself v1.0.9 (darwin/arm64)curl -fsSL https://install.nself.org | bash
nself --versionnself --version
# Must show: nself v1.0.9 or laterNavigate to your v0.9 project directory and run:
cd ~/my-nself-project
# First, scan to see what will be migrated
nself migrate detect
# Example output:
# Found 3 v0.9 artifact(s):
# docker-compose.yml — v1-generated compose file
# .env — v1 environment file (NSELF_VERSION=0.x)
# nginx/ — v1 nginx directory structure (missing nginx/sites/)
# Run: nself migrate run
# Run the full migration
nself migrate runThe migration is idempotent: running it on an already-migrated project exits cleanly with no changes.
Verify the migration completed:
# Should show: No v1 artifacts detected. This project is ready for nSelf v2.
nself migrate detect
# Check backup was created
ls .nself/backup/Plugin signatures changed in v1.0.0. Every v0.9 plugin must be re-installed.
# Re-enter your license key
nself license set nself_pro_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Re-install plugins (example — use your actual plugin list)
nself plugin install ai mux claw voice browser google notify cron
# Verify plugins are installed
nself plugin listTo find your original plugin list, check the v0.9 .env backup:
grep "PLUGIN_\|NSELF_PLUGIN" .nself/backup/*/ .env 2>/dev/null | grep "=true"# Build the v1 configuration
nself build
# Start the stack
nself start
# Run diagnostics
nself doctorCommands that changed from v0.9 to v1.0.9:
| v0.9 command | v1.0.9 equivalent | Notes |
|---|---|---|
./nself.sh start |
nself start |
Go binary, no bootstrap script |
./nself.sh stop |
nself stop |
|
./nself.sh status |
nself status |
|
./nself.sh build |
nself build |
|
./nself.sh logs |
nself logs |
|
./nself.sh update |
nself update |
|
./nself.sh doctor |
nself doctor |
|
./nself.sh plugin install <name> |
nself plugin install <name> |
New signed format |
./nself.sh plugin list |
nself plugin list |
|
./nself.sh plugin remove <name> |
nself plugin remove <name> |
|
./nself.sh license set <key> |
nself license set <key> |
|
./nself.sh license info |
nself license info |
|
./nself.sh migrate |
nself migrate |
New in v1.0.0 |
./nself.sh backup |
nself backup |
|
./nself.sh restore |
nself restore |
|
./nself.sh db migrate |
nself db migrate |
|
./nself.sh db reset |
nself db reset |
|
./nself.sh ssl renew |
nself ssl renew |
|
./nself.sh config get <key> |
nself config get <key> |
|
./nself.sh config set <key> <val> |
nself config set <key> <val> |
|
./nself.sh env show |
nself env show |
|
./nself.sh admin start |
nself admin start |
|
nself up |
nself start or nself up
|
up is now an alias |
v0.9: Single .env file with all configuration including secrets.
v1.0.9: Cascade of env files, each for a specific purpose:
.env.dev ← Team-shared defaults (tracked in git)
.env.local ← Your machine-specific overrides (gitignored)
.env.staging ← Staging overrides (tracked)
.env.prod ← Production overrides (tracked, no real secrets)
.env.secrets ← Real secrets — API keys, passwords (gitignored)
.env.computed ← Generated by nself build (never edit manually)
Migration handles this automatically. After running nself migrate run, your old .env is backed up and nself build generates a compatible v1 configuration.
v0.9 env variables that changed:
| v0.9 variable | v1.0.9 variable | Notes |
|---|---|---|
NSELF_VERSION=0.9.x |
NSELF_VERSION=1.0.9 |
Updated by migrate |
NGINX_CONF_DIR=nginx/ |
NGINX_CONF_DIR=nginx/sites/ |
Updated by migrate |
PLUGIN_<NAME>=true |
NSELF_PLUGIN_<NAME>=true |
Prefix changed |
All v0.9 plugins used shell scripts. v1.0.9 uses signed Go bundles. Plugins are incompatible across versions.
Plugin names that changed:
| v0.9 plugin name | v1.0.9 plugin name |
|---|---|
nself-ai |
ai |
nself-claw |
claw |
nself-mux |
mux |
nself-voice |
voice |
nself-browser |
browser |
nself-google |
google |
nself-notify |
notify |
nself-cron |
cron |
nself-chat |
chat |
nself-livekit |
livekit |
nself-recording |
recording |
nself-moderation |
moderation |
nself-bots |
bots |
nself-realtime |
realtime |
nself-media-processing |
media-processing |
nself-streaming |
streaming |
nself-epg |
epg |
nself-tmdb |
tmdb |
nself-podcast |
podcast |
nself-social |
social |
After migration, the CLI prints a warning showing which plugins were enabled in v0.9 and the exact commands to re-install them.
Error: Docker 24 or later is required (found: 20.10.x)
Upgrade Docker:
# macOS
brew upgrade docker
# Ubuntu/Debian
sudo apt-get update && sudo apt-get install docker-ceError: port 5432 is already in use by process: postgresql (pid 1234)
Stop the conflicting service:
# macOS: stop local postgres
brew services stop postgresql
# Linux: stop local postgres
sudo systemctl stop postgresqlYour license key format is valid but the key must be re-entered after migration because the v0.9 key storage location changed:
# Re-enter the key explicitly
nself license set nself_pro_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Verify acceptance
nself license infov0.9 plugin names used the nself- prefix; v1.0.9 uses short names:
# v0.9 (wrong)
nself plugin install nself-ai
# v1.0.9 (correct)
nself plugin install aiSee the plugin name table above for the full mapping.
If nself migrate run fails partway through:
# Check what was backed up
nself migrate rollback --list
# Restore the last backup
nself migrate rollbackThe rollback restores all files that were backed up before the failure.
Run with --full to get detailed diagnostics:
nself doctor --full
# Check for v0.9 global artifacts (stale paths)
nself doctor --check-legacyIf you need to revert to v0.9 after migrating:
# List available backups
nself migrate rollback --list
# Restore the most recent backup
nself migrate rollback
# Or restore a specific backup by timestamp
nself migrate rollback --backup 20260420-143022After rollback, reinstall the v0.9 CLI (use the Homebrew formula version pin or download from GitHub releases).
The migration path is covered by a CI fixture that runs on every PR:
see cli/internal/migration/testdata/v0.9-fixture/ and .github/workflows/migration-fixture.yml.
The fixture plants all 5 v0.9 artifact types and verifies the post-migration state matches
the expected output in testdata/v0.9-fixture-expected/.
See also:
-
cmd-migrate, full
nself migratecommand reference - Installation, fresh install guide
- Plugin-Install, plugin management reference
ɳ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