CLI Reference
Complete reference for all LearnHouse CLI commands. The CLI is published as learnhouse on npm (v1.1.0) and is typically run via npx learnhouse@latest.
Setup and Configuration
learnhouse setup
Run the interactive setup wizard. This command generates docker-compose.yml, .env, learnhouse.config.json, and nginx/Caddy configuration files based on your choices.
learnhouse setupYou can re-run this command at any time to reconfigure your instance. Existing configuration will be preserved as defaults in the prompts.
learnhouse config
View the current configuration.
learnhouse configService Management
learnhouse start
Start all LearnHouse services. On first run, this pulls the required Docker images before starting containers.
learnhouse startlearnhouse stop
Stop all running LearnHouse services. Data is preserved in Docker volumes.
learnhouse stoplearnhouse logs
Stream container logs for all services.
learnhouse logslearnhouse dev
Start a full development environment. Useful when working on LearnHouse locally.
learnhouse devDiagnostics
learnhouse doctor
Run diagnostics on your LearnHouse installation. Checks Docker availability, container health, port conflicts, DNS resolution, and disk space.
learnhouse doctorlearnhouse shell
Open an interactive shell inside a running container for debugging.
learnhouse shellInfrastructure
learnhouse deployments
View or set resource limits (CPU, memory) for your LearnHouse containers.
learnhouse deploymentsBackup
learnhouse backup
Backup or restore the database. This command handles both creating new backups and restoring from existing backup files.
learnhouse backupCommand Summary
| Command | Description |
|---|---|
learnhouse setup | Interactive setup wizard, generates docker-compose.yml, .env, and config files |
learnhouse start | Start all services |
learnhouse stop | Stop all services |
learnhouse logs | Stream container logs |
learnhouse config | View current configuration |
learnhouse doctor | Diagnose Docker, containers, ports, DNS, and disk |
learnhouse shell | Open a shell in a running container |
learnhouse backup | Backup or restore the database |
learnhouse deployments | View or set resource limits |
learnhouse dev | Start full development environment |