The nself config command provides comprehensive configuration management for your ɳSelf project. View, modify, validate, and compare configurations across environments.
nself config <subcommand> [options]Show current configuration.
nself config # Show config
nself config show # Same as aboveGet specific configuration value.
nself config get <key> [options]
# Options:
# --reveal Show secret values (default: masked)
# Examples
nself config get POSTGRES_HOST
nself config get HASURA_GRAPHQL_ADMIN_SECRET --revealSet configuration value.
nself config set <key> <value>
# Examples
nself config set REDIS_ENABLED true
nself config set POSTGRES_PORT 5433List all configuration keys.
nself config list # All keys
nself config list --json # JSON arrayOpen .env in editor.
nself config edit # Uses $EDITORValidate configuration.
nself config validate # Check for issuesCompare configurations between environments.
nself config diff <env1> <env2>
# Examples
nself config diff local staging
nself config diff staging prodExport configuration (with redacted secrets).
nself config export # JSON export
nself config export --reveal # Include secretsImport configuration from file.
nself config import <file>
# Example
nself config import config.jsonReset to defaults.
nself config reset # Interactive
nself config reset --force # No confirmation| Option | Description | Default |
|---|---|---|
--env NAME | Target environment | current |
--reveal | Show secret values | false |
--json | Output in JSON format | false |
--no-backup | Don't create backup before changes | false |
--output FILE | Export to specific file | - |
--force | Skip confirmation | false |
| Category | Variables |
|---|---|
| Core | PROJECT_NAME, ENV, BASE_DOMAIN, POSTGRES_*, HASURA_*, AUTH_* |
| Services | REDIS_*, MINIO_*, MAILPIT_*, MEILISEARCH_*, MLFLOW_*, FUNCTIONS_* |
| Monitoring | MONITORING_*, PROMETHEUS_*, GRAFANA_*, LOKI_*, TEMPO_* |
| Custom | CS_*, FRONTEND_APP_* |
➞ Environment: local
➞ File: .env
Core Configuration
PROJECT_NAME=myapp
BASE_DOMAIN=local.nself.org
POSTGRES_DB=myapp_db
POSTGRES_PASSWORD=********
Services
REDIS_ENABLED=true
MINIO_ENABLED=true
MAILPIT_ENABLED=true
Monitoring
MONITORING_ENABLED=true
ℹ Secret values redacted. Use --reveal to show. ➞ Validating Configuration
✓ PROJECT_NAME configured
✓ BASE_DOMAIN configured
! POSTGRES_PASSWORD: Password too short (< 12 chars)
✓ HASURA_GRAPHQL_ADMIN_SECRET configured
⚠ Configuration valid with 1 warning(s)The following key patterns are treated as secrets and redacted by default:
*PASSWORD**SECRET**TOKEN**KEY**CREDENTIAL**AUTH**PRIVATE*Use --reveal to show actual values.
The validate subcommand checks:
By default, backups are created before changes:
.env.bak # Latest backup
.env.20260123_103000.bak # Timestamped backupUse --no-backup to skip backup creation.
| Environment | Primary File | Fallback |
|---|---|---|
| local/dev | .env | .env.local |
| staging | .env.staging | - |
| prod | .env.prod | .env.production |