Lua AI CLI v3.0.0
Build and deploy AI agents with superpowersNew in v3.3.0 (Non-Interactive Mode): All commands now support non-interactive mode for AI IDEs (Cursor, Copilot), CI/CD pipelines, and scripting. See Non-Interactive Mode for complete reference.
New in v3.1.0 (Marketplace): - 🛒 Lua Marketplace - Discover, install, and publish skills directly from the CLI with
lua marketplace.New in v3.0.0 (lua-cli package): - 🤖 LuaAgent - Unified agent
configuration with persona, skills, webhooks, jobs, and processors - 🪝
LuaWebhook - HTTP endpoints for external integrations (Stripe, Shopify,
etc.) - ⏰ LuaJob - Scheduled tasks with cron patterns - 📥
PreProcessor - Filter and route messages before they reach your agent - 📤
PostProcessor - Transform and format agent responses - 🔄 Jobs API -
Dynamically create scheduled tasks from tools
New in v2.6.0 (CLI commands): - 🎯 Direct environment access for all
commands - ⌨️ Shell autocomplete support (Bash, Zsh, Fish) - 🚀 New
lua skills command for production skill management - ⚡ New lua features
command for managing agent capabilities - ⚡ Faster workflows with lua push skill, lua env production, etc.Options
All Commands
| Command | Category | Description | Non-Interactive |
|---|---|---|---|
lua auth | 🔐 Authentication | Manage API keys and authentication | ✅ --force |
lua init | 🚀 Project Setup | Initialize a new Lua skill project | ✅ Full support |
lua env | ⚙️ Configuration | Manage environment variables (sandbox/production) | ✅ Full support |
lua persona | 🤖 Configuration | Manage agent persona (sandbox/production) | ✅ Full support |
lua features | ⚡ Configuration | Manage agent capabilities and features | ✅ Full support |
lua resources | 📚 Configuration | Manage agent knowledge base | ✅ Full support |
lua marketplace | 🛒 Ecosystem | Discover, install, and publish skills | ✅ Full support |
lua skills | 🔧 Development | View and manage skills (sandbox/production) | ✅ Full support |
lua compile | 📦 Development | Compile skill to deployable format | ✅ --no-sync |
lua sync | 🔄 Development | Detect and resolve drift between server and local code | ✅ Full support |
lua test | 💬 Testing | Test skill tools interactively | ✅ Full support |
lua chat | 💬 Testing | Interactive chat with your agent | ✅ -e -m |
lua push | ☁️ Deployment | Push components to server | ✅ Full support |
lua deploy | 🚀 Deployment | Deploy version to production | ✅ Full support |
lua mcp | 🔌 Integration | Manage MCP (Model Context Protocol) servers | ✅ Full support |
lua integrations | 🔌 Integration | Connect third-party accounts via Unified.to | ✅ Full support |
lua production | 🚀 Deployment | View and manage production environment | ✅ Full support |
lua channels | 🔌 Integration | Manage communication channels | ✅ list |
lua logs | 🐛 Debugging | View and filter agent logs by component type (Skills, Jobs, Webhooks, etc.) | ✅ Full support |
lua completion | ⌨️ Utilities | Generate shell autocomplete scripts | ✅ Direct |
lua admin | 🛠️ Utilities | Open admin dashboard in browser | ✅ Direct |
lua evals | 📊 Utilities | Open evaluations dashboard in browser | ✅ Direct |
lua docs | 📖 Utilities | Open documentation in browser | ✅ Direct |
AI Agent Building Guide
For AI IDEs: Complete workflow for Cursor, Windsurf, GitHub Copilot
Non-Interactive Mode
Command reference for automation, CI/CD, and scripting
Quick Examples
Get help for any command:
Support: https://heylua.ai/support
lua [command] --help or lua help [command]Documentation: https://docs.heylua.aiSupport: https://heylua.ai/support
Quick Command Reference
lua init
Initialize new skill project
lua skills
View and manage skills
lua env
Manage environment variables
lua persona
Configure agent personality
lua features
Manage agent capabilities
lua mcp
Manage MCP servers
lua integrations
Connect third-party accounts
lua sync
Detect and resolve drift
lua test
Test tools interactively
lua chat
Interactive chat with your agent
lua push
Upload version to server
lua deploy
Deploy to production
lua completion
Shell autocomplete setup
Shell Autocomplete ⚡ NEW
Enable tab completion for all Lua CLI commands and arguments:- Bash
- Zsh
- Fish
Learn More
Direct Mode ⚡ NEW
Skip interactive prompts by specifying your target directly:- Push Commands
- Environment Commands
- Persona Commands
- Skills Commands
Command Categories
Authentication
- configure
- key
- logout
Set up API key authenticationChoose between:
- Email: OTP verification
- API Key: Existing key
Learn More
Skill Management
- init
- compile
- test
- push
- deploy
- chat
Create new skill projectDefault (minimal):
- Clean agent ready to customize
- TypeScript configuration
lua.skill.yamlconfig
- 30+ example tools
- Example webhooks, jobs, processors
- Complete e-commerce flow examples
Learn More
Common Workflows
New Project Workflow
Test Your Agent
Optional: Use
lua test to test individual tools with specific inputsDevelopment Workflow
Test Your Agent
Pro tip: Use
lua test to debug specific tool logic if neededQuick Fix Workflow
Global Flags
All commands support:Environment Variables
Commands automatically load environment variables from:Learn More
Error Handling
All commands include:- ✅ Descriptive error messages
- ✅ Exit codes (0 = success, 1 = error)
- ✅ Troubleshooting hints
Common Errors
No API key found
No API key found
lua auth configureNo lua.skill.yaml found
No lua.skill.yaml found
lua init firstVersion already exists
Version already exists
lua.skill.yaml (this is the only field you should manually edit)Compilation failed
Compilation failed
index.ts or src/index.ts with skill definitionMore Troubleshooting
v3.0.0 Agent Structure
Project Code Pattern
The v3.0.0 pattern usesLuaAgent for unified configuration:
Project Structure
Configuration File
lua.skill.yaml
Auto-managed state manifest (IDs and versions only):skillId- Created during compilationwebhookId- Created during compilationjobId- Created during compilationmcpServerId- Created during compilationskills,webhooks,jobs,mcpServersarrays - Populated from code- Versions/IDs are tracked here; persona/env/schedule live in code (sandbox) or server (production)
agentId- Set duringlua initorgId- Set duringlua initversion- Update when releasing (for each component)
System Requirements
Node.js
Version 16.0.0 or higher
npm
Version 7.0.0 or higher
TypeScript
Included in template (knowledge helpful)
Git
Optional but recommended
Storage Locations
- Credentials
- Project Files
- Temporary
System Keychain
- macOS: Keychain
- Windows: Credential Vault
- Linux: libsecret
Next Steps
Authentication
Set up API key authentication
Skill Management
Learn all skill management commands
Sync Command
Detect and resolve drift
Environment Command
Manage sandbox and production variables
Persona Command
Configure agent personality
Features Command
Manage agent capabilities
MCP Command
Manage MCP servers for external tools
Integrations Command
Connect third-party accounts
Chat Command
Interactive chat with your agent
Utility Commands
Shell autocomplete and more

