lc start
Start all or specific LocalCloud services for the current project.Usage
Arguments
service(optional) - Specific service to start. Valid values:ai,postgres,cache,queue,minio,all
Flags
| Flag | Description | Default |
|---|---|---|
--only | Start only specified services (comma-separated) | [] |
--info | Show connection info after start | true |
Examples
Start all services
Start specific service
Start multiple specific services
Service Names
| Service | Aliases | Description |
|---|---|---|
ai | ollama, llm | AI/LLM service (Ollama) |
postgres | db, database | PostgreSQL database |
cache | redis | Redis cache |
queue | - | Redis queue (shares instance with cache) |
minio | storage, s3 | MinIO object storage |
What Happens When Starting
- Pre-flight Checks
- Verifies Docker is running
- Checks project configuration
- Validates component configuration
- Service Startup
- Creates Docker network if needed
- Starts services in dependency order:
- Database (PostgreSQL)
- Cache/Queue (Redis)
- Storage (MinIO)
- AI (Ollama)
- Waits for health checks
- Model Management
- Downloads AI models if not present
- Shows download progress
- Validates model availability
- Connection Info
- Displays service URLs
- Shows access credentials
- Provides example usage
Component-Based Startup
Services are started based on configured components:| Component | Services Started |
|---|---|
llm | Ollama |
embedding | Ollama |
database | PostgreSQL |
cache | Redis |
queue | Redis |
storage | MinIO |
Output Example
Error Handling
Docker not running
No components configured
Port already in use
Model download failed
Health Checks
Each service includes health checks:- PostgreSQL: Checks database connectivity
- Redis: Pings the service
- MinIO: Verifies API availability
- Ollama: Checks API endpoint
Resource Management
LocalCloud monitors resource usage during startup:- Warns if available RAM is low
- Suggests smaller models if needed
- Shows memory usage per service
Advanced Usage
Start with verbose output
Skip connection info
Start services for specific components
Service Dependencies
Services are started respecting dependencies:Related Commands
lc stop- Stop serviceslc status- Check service statuslc logs- View service logslc services- List running services