v1.0.0
CLI Reference
Complete reference for all LastMile CLI commands. Use locally during development, or integrate into your CI/CD pipeline for continuous production-readiness checks.
Core Commands
lastmile analyze
Run 5 LLM-powered deep analyzers against your full codebase. Generates a Readiness Score (0-100).
TERMINAL
$lastmile analyze [options]
> Scanning codebase...
> [SECURITY] 2 critical gaps found
> [TESTING] No test framework detected
> READINESS_SCORE: 42/100
5 LLM Deep Analyzers:
SecurityTestingError HandlingDatabaseBoilerplate
lastmile fix
Auto-generate fixes for detected gaps using templates, transformations, or LLM-powered generation.
TERMINAL
$lastmile fix [options]
Fix Strategies:
>Template - Dockerfile, .gitignore, CI/CD workflows
>Transform - Extract secrets to .env files
>AI-Powered - LLM generates complex code fixes
lastmile configure
Set up your deployment infrastructure - create git repos, manage environment variables, configure secrets, and prepare deployment manifests.
TERMINAL
$lastmile configure
lastmile ship
Deploy your application to LastMile Cloud with zero configuration. Database, SSL, and CDN included automatically.
TERMINAL
$lastmile ship
(default)LastMile Cloud - database, edge compute, CDN--vercelDeploy to Vercel instead--railwayDeploy to Railway instead
Authentication
lastmile login
Authenticate with LastMile to unlock AI-powered fixes and deployment features.
TERMINAL
$lastmile login
lastmile logout
Log out and clear stored credentials.
TERMINAL
$lastmile logout
Global Options
--help, -hShow help for any command--version, -vShow CLI version--verboseEnable verbose output