CLI Overview
LocalCloud provides a powerful command-line interface (CLI) for managing your local AI development environment. All commands are available through bothlocalcloud and the shorter lc alias.
Command Structure
You can use either
localcloud or lc - they are identical. We’ll use lc in examples for brevity.Global Flags
These flags are available for all commands:| Flag | Short | Description | Default |
|---|---|---|---|
--verbose | -v | Enable verbose output | false |
--config | -c | Config file path | ./.localcloud/config.yaml |
--project | -p | Project directory path | . |
Command Categories
Project Management
Initialize and manage your LocalCloud projects
lc setup- Create new project with interactive wizardlc status- View project and service statuslc info- System and resource informationlc reset- Clean up project data
Service Control
Start, stop, and monitor services
lc start- Start all or specific serviceslc stop- Stop all or specific serviceslc restart- Restart serviceslc services- List running serviceslc logs- View service logslc ps- Show running containers
AI Models
Manage Ollama language models
lc models list- Show available modelslc models pull- Download new modelslc models remove- Remove modelslc models show- Model details
Database Tools
Database management utilities
lc mongo- MongoDB shell accesslc postgres- PostgreSQL shell (psql)lc redis- Redis CLI access
Networking
Expose services publicly
lc tunnel- Create secure tunnelslc tunnel list- Show active tunnelslc tunnel stop- Stop tunnels
Components
Add or remove service components
lc component add- Add new serviceslc component remove- Remove serviceslc component list- Show components
Quick Reference
Essential Commands
Service Management
Model Management
Command Aliases
Many commands have shorter aliases for convenience:| Full Command | Aliases |
|---|---|
lc services | lc svcs, lc ls |
lc models | lc model, lc m |
lc component | lc comp |
lc models remove | lc models rm, lc models delete |
Output Formats
Most commands support different output formats:Auto-completion
Enable tab completion for your shell:- Bash
- Zsh
- Fish