CLI Command Reference
Complete reference for all Lovelace CLI commands
This reference provides detailed documentation for every command available in the Lovelace CLI. Each command has its own dedicated page with usage examples, options, and interactive terminal demonstrations.
Core Commands
lovelace chat
Start AI-powered chat sessions with workspace context.
lovelace chat [options]
Key features: Interactive AI assistance, workspace awareness, session management, multi-turn conversations
lovelace agents
Manage and execute autonomous agent workers for background tasks.
lovelace agents <subcommand> [options]
Key features: Background task execution, agent lifecycle management, daemon control, execution logging
lovelace workspace
Manage workspaces and project organization.
lovelace workspace <subcommand> [options]
Key features: Workspace creation, project synchronization, context switching, status monitoring
lovelace mcp
Interact with Model Context Protocol servers for extended capabilities.
lovelace mcp <subcommand> [options]
Key features: Server management, tool execution, interactive REPL, resource access
Setup & Configuration
lovelace setup
Interactive setup wizard for first-time configuration.
lovelace setup [options]
Key features: Guided authentication, provider configuration, workspace initialization
lovelace auth
Manage platform authentication and user sessions.
lovelace auth <subcommand> [options]
Key features: OAuth authentication, session management, token refresh, multi-device support
lovelace config
View and modify CLI configuration settings.
lovelace config <subcommand> [options]
Key features: Configuration management, provider settings, workspace defaults
lovelace doctor
Run system diagnostics and health checks.
lovelace doctor [options]
Key features: System validation, automatic issue detection, health reporting, fix suggestions
Analysis & Sessions
lovelace analyze
Perform comprehensive codebase analysis.
lovelace analyze [path] [options]
Key features: Symbol analysis, dependency graphs, architecture review, security scanning
lovelace sessions
Manage and search chat session history.
lovelace sessions <subcommand> [options]
Key features: Session browsing, search functionality, export capabilities, session resumption
Additional Commands
lovelace billing
View and manage billing information.
lovelace billing <subcommand> [options]
lovelace knowledge
Manage knowledge base and documentation.
lovelace knowledge <subcommand> [options]
lovelace reset
Reset CLI configuration to defaults.
lovelace reset [options]
Global Options
These options are available for all commands:
| Option | Description |
|---|---|
--verbose, -v | Enable verbose output |
--quiet, -q | Suppress non-essential output |
--debug | Enable debug logging |
--config <path> | Use specific config file |
--workspace <name> | Override default workspace |
--no-color | Disable colored output |
--help, -h | Display help for command |
Exit Codes
All commands use these standard exit codes:
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | Invalid arguments or usage |
3 | Authentication error |
4 | Network error |
5 | Permission error |
Environment Variables
Configure CLI behavior with these environment variables:
| Variable | Description | Default |
|---|---|---|
LOVELACE_CONFIG_DIR | Configuration directory path | ~/.lovelace |
LOVELACE_WORKSPACE | Default workspace name | - |
LOVELACE_API_URL | API endpoint URL | https://api.uselovelace.com |
LOVELACE_LOG_LEVEL | Logging level | info |
LOVELACE_NO_COLOR | Disable colored output | false |
Logging levels: debug, info, warn, error, silent
Command Categories
By Use Case
Development Workflow:
lovelace chat- Interactive AI assistancelovelace analyze- Code analysislovelace sessions- Review past conversations
Automation & Background Tasks:
lovelace agents- Execute long-running taskslovelace mcp- Integrate external tools
Project Management:
lovelace workspace- Organize projectslovelace config- Customize settings
Setup & Maintenance:
lovelace setup- Initial configurationlovelace auth- Manage authenticationlovelace doctor- System diagnosticslovelace reset- Reset to defaults
By Frequency
Daily Use:
lovelace chatlovelace agentslovelace workspace
Occasional Use:
lovelace analyzelovelace sessionslovelace mcplovelace config
First-Time / Troubleshooting:
lovelace setuplovelace authlovelace doctorlovelace reset
Getting Help
Each command has built-in help:
# General help
lovelace --help
# Command-specific help
lovelace chat --help
lovelace agents --help
# Subcommand help
lovelace workspace list --help
lovelace mcp exec --help
Related Documentation
- Quickstart Guide - Get started in 5 minutes
- Usage Guides - Feature-specific how-tos
- Examples - End-to-end workflows
- Configuration Schema - Detailed config reference