Skip to main content

Overview

Utility commands provide quick access to the Lua Admin interface, documentation, and shell autocomplete setup.

lua completion

Generate shell autocomplete

lua admin

Open admin dashboard

lua evals

Open evaluations dashboard

lua docs

Open documentation
New in v2.6.0: Shell autocomplete support for Bash, Zsh, and Fish!

lua completion

Generate shell autocomplete scripts for faster command-line workflows.
lua completion [shell]       # Generate completion script
lua completion bash          # Generate for Bash
lua completion zsh           # Generate for Zsh
lua completion fish          # Generate for Fish
New in v2.6.0: Enable tab completion for all Lua CLI commands and arguments!

What It Does

Generates shell-specific completion scripts that enable:
  • βœ… Tab completion for all commands
  • βœ… Subcommand suggestions
  • βœ… Environment option suggestions (sandbox, staging, production)
  • βœ… Argument completion for push, env, persona, skills
  • βœ… Context-aware completions

Supported Shells

Installation
# Add to your ~/.bashrc
lua completion bash >> ~/.bashrc
source ~/.bashrc

# Or for one-time setup
echo 'eval "$(lua completion bash)"' >> ~/.bashrc
source ~/.bashrc
Test it
lua pu<TAB>           # Completes to: lua push
lua push <TAB>        # Shows: skill, persona
lua env <TAB>         # Shows: sandbox, staging, production
lua persona <TAB>     # Shows: sandbox, staging, production

Completion Features

Tab completion for all Lua CLI commands:
lua a<TAB>        # auth, admin
lua p<TAB>        # push, persona, production
lua s<TAB>        # skills
lua e<TAB>        # env
lua f<TAB>        # features
lua c<TAB>        # compile, completion, chat, channels
Context-aware subcommand completion:
lua auth <TAB>         # configure, logout, key
lua push <TAB>         # skill, persona
lua chat <TAB>         # clear
lua completion <TAB>   # bash, zsh, fish
Environment selection for applicable commands:
lua env <TAB>          # sandbox, staging, production
lua persona <TAB>      # sandbox, staging, production
lua skills <TAB>       # sandbox, staging, production
Common flags available for all commands:
lua --<TAB>            # --help, --version
lua push --<TAB>       # --help

Verification

After installation, verify autocomplete is working:
# Type this and press TAB
lua pu

# Should complete to:
lua push

Troubleshooting

Problem: Tab completion doesn’t work after installationSolutions:
  1. Restart your terminal or reload shell config:
    # Bash
    source ~/.bashrc
    
    # Zsh
    source ~/.zshrc
    
    # Fish (automatic)
    
  2. Verify script was added correctly:
    # Check if completion is in config
    tail ~/.bashrc    # or ~/.zshrc
    
  3. Try explicit installation:
    eval "$(lua completion bash)"  # Or zsh
    
Problem: Some commands complete, others don’tSolutions:
  1. Regenerate completion script:
    lua completion bash > /tmp/lua_completions
    cat /tmp/lua_completions >> ~/.bashrc
    source ~/.bashrc
    
  2. Check Lua CLI version:
    lua --version
    # Should be v2.6.0 or higher
    
Problem: Completions don’t work in Fish shellSolutions:
  1. Verify file location:
    ls ~/.config/fish/completions/lua.fish
    
  2. Regenerate if missing:
    mkdir -p ~/.config/fish/completions
    lua completion fish > ~/.config/fish/completions/lua.fish
    
  3. Restart Fish shell
Problem: Completions conflict with other toolsSolution: Remove old completion and reinstall:
# Bash/Zsh: Remove old lines from config file
vim ~/.bashrc  # or ~/.zshrc
# Delete old lua completion lines

# Fish: Remove old file
rm ~/.config/fish/completions/lua.fish

# Reinstall
lua completion [your-shell]

Benefits

Faster Workflow

Type less, complete more with tab

Discover Commands

See available options without docs

Fewer Typos

Autocomplete prevents mistakes

Better UX

Professional CLI experience

Advanced Usage

If you use multiple shells, install for each:
# Bash
lua completion bash >> ~/.bashrc

# Zsh
lua completion zsh >> ~/.zshrc

# Fish
lua completion fish > ~/.config/fish/completions/lua.fish
Add to team onboarding:
# In your team's setup script
echo "Setting up Lua CLI autocomplete..."
lua completion bash >> ~/.bashrc
source ~/.bashrc
echo "βœ… Autocomplete enabled"
Include in Docker images:
# In Dockerfile
RUN lua completion bash >> /root/.bashrc

lua admin

Launch the Lua Admin interface in your default browser.
lua admin

What It Opens

The Lua Admin Dashboard provides complete control over your agent: Conversations
  • πŸ’¬ View conversations in real-time
  • πŸ“ Reply to user messages
  • πŸ“Š Monitor conversation quality
  • πŸ” Search conversation history
  • πŸ“ˆ Analyze user interactions
User Management
  • πŸ‘₯ Add users to your agent
  • ✏️ Edit user permissions
  • πŸ—‘οΈ Remove users
  • πŸ‘€ View user activity
  • πŸ“Š User analytics
API Keys
  • πŸ”‘ Generate new API keys
  • πŸ‘οΈ View existing keys
  • πŸ—‘οΈ Revoke keys
  • πŸ“‹ Copy keys for development
  • πŸ”’ Manage key permissions
Channel Connections
  • πŸ“± WhatsApp integration
  • πŸ“Έ Instagram messaging
  • βœ‰οΈ Email integration
  • πŸ‘ Facebook Messenger
  • πŸ’¬ Slack integration
  • πŸ“ž SMS/Twilio
  • 🌐 Website chat widget
  • πŸ”— Custom integrations
Billing & Subscription
  • πŸ’³ View current plan
  • πŸ“Š Usage metrics
  • πŸ’° Billing history
  • πŸ”„ Update payment method
  • πŸ“ˆ Upgrade/downgrade plan

Example

$ lua admin
βœ“ Lua Admin Dashboard opened in your browser

  Dashboard URL: https://admin.heylua.ai
  Agent ID: agent-abc123
  Organization ID: org-xyz789

Requirements

  • Must be authenticated (lua auth configure)
  • Must be in a skill directory (has lua.skill.yaml)
  • Configuration must contain agent.agentId and agent.orgId

Use Cases

$ lua admin
  • View live conversations
  • See how users interact with your agent
  • Identify areas for improvement
  • Take over conversations if needed
$ lua admin
  • Add team members
  • Set permissions (admin, developer, viewer)
  • Manage API keys per user
  • Control who can deploy
$ lua admin
  • Connect WhatsApp Business
  • Set up Instagram messaging
  • Configure email integration
  • Add Slack workspace
  • Enable Facebook Messenger
$ lua admin
  • View conversation metrics
  • Check response times
  • Monitor user satisfaction
  • Track tool usage
  • Analyze peak times
$ lua admin
  • Review usage this month
  • Check billing history
  • Update payment method
  • Upgrade subscription
  • Download invoices

Troubleshooting

Check:
  1. Run lua auth configure to authenticate
  2. Ensure lua.skill.yaml exists (lua init)
  3. Verify agent ID is in config
Error: β€œNo API key found”
$ lua auth configure
Check:
  1. Verify you’re in correct project directory
  2. Check agentId in lua.skill.yaml
  3. Switch to correct agent directory
Check:
  1. Verify you have admin access
  2. Check with organization owner
  3. Request proper permissions

lua evals

Launch the Lua Evaluations Dashboard in your default browser.
lua evals

What It Opens

The Lua Evaluations Dashboard at https://evals.heylua.ai provides tools to test and evaluate your agent: Evaluation Features
  • πŸ§ͺ Test your agent with predefined scenarios
  • πŸ“Š View evaluation results and metrics
  • πŸ“ˆ Track agent performance over time
  • πŸ” Identify areas for improvement
  • βœ… Validate agent responses

Example

$ lua evals
βœ“ Lua Evaluations Dashboard opened in your browser

  Dashboard URL: https://evals.heylua.ai
  Agent ID: agent-abc123

Requirements

  • Must be authenticated (lua auth configure)
  • Must be in a skill directory (has lua.skill.yaml)
  • Configuration must contain agent.agentId

Use Cases

$ lua evals
  • Run predefined test scenarios
  • Validate agent behavior
  • Check response quality
  • Ensure consistency
$ lua evals
  • Monitor evaluation scores
  • Compare across versions
  • Identify regressions
  • Measure improvements
$ lua evals
  • Run evaluations before deployment
  • Validate production readiness
  • Document test results
  • Share with team

Troubleshooting

Check:
  1. Run lua auth configure to authenticate
  2. Ensure lua.skill.yaml exists (lua init)
  3. Verify agent ID is in config
Error: β€œNo API key found”
$ lua auth configure
Check:
  1. Verify you’re in correct project directory
  2. Check agentId in lua.skill.yaml
  3. Switch to correct agent directory

lua docs

Launch this documentation in your default browser.
lua docs

What It Opens

Opens the complete Lua documentation at https://docs.heylua.ai Sections:
  • 🏠 Overview and getting started
  • πŸ“– Key concepts (Persona, Skills, Tools, Resources)
  • ⌨️ All CLI commands
  • πŸ“š Complete API reference
  • πŸ’Ό 11 production-ready demos
  • πŸ’¬ LuaPop chat widget guide

Example

$ lua docs
βœ“ Lua Documentation opened in your browser

  Documentation: https://docs.heylua.ai

Requirements

None - works from anywhere

Use Cases

# Forgot a command syntax?
$ lua docs
# Navigate to CLI Commands
# Need API method signature?
$ lua docs
# Go to API Reference
# Need an example for your use case?
$ lua docs
# Check Demos section
# Onboarding new developer?
$ lua docs
# Share the URL

Keyboard Shortcut

Add to your shell profile for even faster access:
# Add to ~/.zshrc or ~/.bashrc
alias ld='lua docs'

# Usage
$ ld
# Opens documentation instantly

Quick Comparison

CommandOpens/GeneratesRequires AuthUse For
lua completionShell completion script❌ NoTab completion, faster workflows
lua adminAdmin dashboardβœ… YesManaging agent, conversations, billing
lua evalsEvaluations dashboardβœ… YesTesting agent, tracking performance
lua docsDocumentation❌ NoReference, examples, learning

Integration with Workflow

During Development

# Need API reference?
$ lua docs
# Check API section

# Continue coding

During Deployment

# Deploy skills
$ lua push
$ lua deploy

# Check admin dashboard
$ lua admin
# Monitor conversations
# Verify deployment working

When Troubleshooting

# Issue with command
$ lua docs
# Search troubleshooting section

# Check production state
$ lua admin
# View live conversations
# Check for errors

Next Steps