تخطَّ إلى المحتوى

nself init

هذا المحتوى غير متوفر بلغتك بعد.

Initialize a new ɳSelf project with an interactive configuration wizard.

nself init [flags]

nself init launches an interactive setup wizard that creates a pristine .env configuration for a new ɳSelf project. It prompts for your project name, base domain, and email, then auto-generates cryptographically secure secrets (Postgres password, Hasura admin secret, JWT key).

You can choose which optional services to enable during init (Redis, MinIO, MeiliSearch, Mailpit, Monitoring). Each selection updates the generated .env accordingly. All values are validated before being written, domain format, password strength, and required fields are all checked.

After nself init completes, run �P1� build to generate docker-compose.yml and nginx configs, then �P2� start to boot the stack.

FlagDefaultDescription
--wizardfalseRun the full 10-step interactive wizard
--interactivefalseExplicitly enable interactive wizard
--non-interactivefalseUse all defaults without prompts (CI-safe)
--fastfalseSkip advanced options, use smart defaults
--demofalseAuto-configure with all services enabled
--fullfalseCreate .env.dev, .env.staging, .env.prod, .env.secrets
--forcefalseOverwrite existing configuration
--template""Use a specific template: express, fastapi, go, rust
--name""Project name (sets PROJECT_NAME in generated .env)
--domain""Base domain (skips interactive domain prompt, e.g. myapp.dev)
--skip-validationfalseSkip configuration validation
--quietfalseSuppress output messages
--help, -hnoneShow help
Terminal window
# Minimal interactive setup
nself init
# Full 10-step wizard
nself init --wizard
# All services enabled (demo/evaluation)
nself init --demo
# Create all env files at once
nself init --full
# Smart defaults, no prompts
nself init --fast
# Non-interactive, all defaults, safe for CI
nself init --non-interactive
# Skip prompts by supplying name and domain directly
nself init --name myapp --domain myapp.dev
# Start from a Go project template
nself init --template go --name myapi --domain myapi.local

Commands | Home