nself service
nself service — ɳSelf documentation.
Enable, disable, and list optional ɳSelf services.
Synopsis
nself service <subcommand> [flags]
Description
nself service manages the optional services in your ɳSelf stack. The four core services (PostgreSQL, Hasura, Auth, Nginx) are always included. Everything else: Redis, MinIO, Mailpit, Functions, MeiliSearch, Monitoring, and Admin, is optional and controlled through this command. MLflow is available as a free plugin (nself plugin install mlflow) rather than a built-in service.
Enabling or disabling a service writes to your .env file. After changing service state, run nself build to regenerate docker-compose.yml with the updated service set, then nself restart to apply the changes.
Subcommands
| Subcommand | Description |
|---|---|
enable <name> | Enable an optional service |
disable <name> | Disable an optional service |
list | List all optional services with enabled/disabled status |
Available Services
| Service | Env Var | Aliases |
|---|---|---|
redis | REDIS_ENABLED | none |
minio | MINIO_ENABLED | storage |
mailpit | MAILPIT_ENABLED | email |
functions | FUNCTIONS_ENABLED | none |
search | SEARCH_ENABLED | meilisearch |
monitoring | MONITORING_ENABLED | none |
admin | nself | none |
Flags
| Flag | Default | Description |
|---|---|---|
--env | current | Target environment file |
--json | false | Output as JSON array (for list) |
--help, -h | none | Show help |
Examples
# List all optional services
nself service list
nself service list --json
# Enable Redis
nself service enable redis
# Enable MinIO object storage (using alias)
nself service enable storage
# Enable monitoring stack
nself service enable monitoring
# Enable monitoring for production environment
nself service enable monitoring --env prod
# Disable Mailpit
nself service disable mailpit
# Disable MeiliSearch (using alias)
nself service disable meilisearch
# After changing services, rebuild and restart
nself build && nself restart