Skip to Content
Edit on GitHub

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 setup

You 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 config

Service Management

learnhouse start

Start all LearnHouse services. On first run, this pulls the required Docker images before starting containers.

learnhouse start

learnhouse stop

Stop all running LearnHouse services. Data is preserved in Docker volumes.

learnhouse stop

learnhouse logs

Stream container logs for all services.

learnhouse logs

learnhouse dev

Start a full development environment. Useful when working on LearnHouse locally.

learnhouse dev

Diagnostics

learnhouse doctor

Run diagnostics on your LearnHouse installation. Checks Docker availability, container health, port conflicts, DNS resolution, and disk space.

learnhouse doctor

learnhouse shell

Open an interactive shell inside a running container for debugging.

learnhouse shell

Infrastructure

learnhouse deployments

View or set resource limits (CPU, memory) for your LearnHouse containers.

learnhouse deployments

Backup

learnhouse backup

Backup or restore the database. This command handles both creating new backups and restoring from existing backup files.

learnhouse backup

Command Summary

CommandDescription
learnhouse setupInteractive setup wizard, generates docker-compose.yml, .env, and config files
learnhouse startStart all services
learnhouse stopStop all services
learnhouse logsStream container logs
learnhouse configView current configuration
learnhouse doctorDiagnose Docker, containers, ports, DNS, and disk
learnhouse shellOpen a shell in a running container
learnhouse backupBackup or restore the database
learnhouse deploymentsView or set resource limits
learnhouse devStart full development environment