Boot the full nSelf stack. If no Compose config exists yet, nself start calls nself build first to generate one, then brings all services up.
# Start everything
nself start
# Same thing — alias
nself upnself start [FLAGS]nself start is the single command to go from zero to a running nSelf stack. It:
docker-compose.yml exists. If not, runs nself build automatically to generate one from your environment config.nself service enable.nself ssl setup) if certificates are not yet present.NSELF_SCHEMA_HEAL_ENABLED=true, runs the schema heal pass before Hasura accepts traffic.All services bind to 127.0.0.1 internally. External access goes through Nginx on ports 80 and 443 only. Never expose internal service ports to the public network.
nself up is an alias for nself start. Both are identical.
| Flag | Type | Default | Description |
|---|---|---|---|
--build | bool | auto | Force a rebuild of the Compose config before starting (same as running nself build then nself start) |
--no-pull | bool | false | Skip Docker image pulls (use locally cached images) |
--detach | bool | false | Start services in the background without streaming logs |
--env | string | auto | Override the target environment: dev, staging, or prod |
--skip-heal | bool | false | Skip the schema heal pass even if NSELF_SCHEMA_HEAL_ENABLED=true |
--skip-ssl | bool | false | Skip the first-time SSL setup check |
Required services always start:
| Service | Role | Internal port |
|---|---|---|
| PostgreSQL | Primary database | 5432 |
| Hasura | GraphQL API | 8080 |
| Auth | Authentication | 4000 |
| Nginx | Reverse proxy / SSL | 80, 443 |
Optional services start only when enabled via nself service enable.
# Start from scratch — build generates the Compose config automatically
nself start
# ✓ nself build — generating docker-compose.yml
# ✓ Pulling images...
# ✓ Starting Postgres, Hasura, Auth, Nginx
# ✓ Running SSL setup
# ✓ Stack ready at https://api.local.nself.org# After changing env vars or enabling new services
nself start --buildnself start --detach
# Use nself status to check everything came up
nself status# Verify everything is healthy
nself status
# Watch service logs
nself logs --follow
# Open the Admin UI
nself admin startNSELF_ENV — target environment (development, staging, production)NSELF_SCHEMA_HEAL_ENABLED — set to true to run schema heal on start0 — all services started and healthy1 — one or more services failed to start2 — build step failed or invalid arguments