Skip to main content

nself reset

nself reset — ɳSelf documentation.

Stop containers, remove all data volumes, and clean generated files.

Synopsis

nself reset [flags]

Description

nself reset stops all containers, removes Docker volumes (all project data including database, storage, Redis), and removes generated files (docker-compose.yml, nginx configs). Your .env file is preserved.

This is destructive and irreversible. All project data is deleted. Unlike nself clean (which only removes regeneratable build artifacts and never touches data), reset is a full project data teardown, used when you intend to start the stack completely fresh.

The command prompts for interactive confirmation before proceeding. Use --yes to skip the prompt for CI/CD pipelines.

After nself reset, run nself build to regenerate configuration and nself start to restart the stack.

Flags

Flag Default Description
--yes false Skip confirmation prompt (for CI/CD)
--no-monorepo false Disable automatic monorepo backend detection
--help, -h none Show help

What is Removed vs Preserved

Item Reset
docker-compose.yml Removed
nginx/ configs Removed
Docker volumes (database, storage, Redis — all project data) Removed
.env and .env.* Preserved

Examples

# Interactive reset (prompts for confirmation)
nself reset

# Non-interactive reset for CI/CD
nself reset --yes

# After reset, rebuild and restart from scratch
nself build && nself start