Skip to content

nself reset

Stop containers and remove generated configuration files.

nself reset [flags]

nself reset stops running containers and removes all files generated by nself build: docker-compose.yml, nginx site configs, SSL certificate files, and .env.computed. Your .env and all .env.* variant files are preserved, as are your data/ and volumes/ directories.

After nself reset, run nself build to regenerate configuration and nself start to restart the stack. This is the recommended way to apply a fresh build after making significant configuration changes.

Hard reset (--hard --confirm) goes further and also removes .env itself. This is a complete project teardown, use it only when you intend to run nself init again from scratch.

FlagDefaultDescription
--hardfalseAlso remove .env (requires --confirm)
--confirmfalseConfirm destructive --hard reset
--no-monorepofalseDisable automatic monorepo backend detection
--help, -hnoneShow help
ItemStandard ResetHard Reset
docker-compose.ymlRemovedRemoved
nginx/sites/ configsRemovedRemoved
ssl/ certificate filesRemovedRemoved
.env.computedRemovedRemoved
.env and .env.*PreservedRemoved
data/ and volumes/PreservedPreserved
Terminal window
# Standard reset, remove generated files, keep .env and data
nself reset
# Hard reset, remove everything including .env (requires --confirm)
nself reset --hard --confirm
# After reset, rebuild and restart
nself build && nself start

Commands | Home