Skip to content

CLI Mode

LemonUp can be used non-interactively for automation and scripting.

Basic Usage

bash
# Launch the TUI (default)
lemonup

# Update all addons via CLI
lemonup --cli

Command Line Flags

FlagShortDescription
--force-fForce update regardless of version
--dry-run-dPreview changes without applying
--devEnable development mode
--help-hShow help information
--version-vShow version number

Examples

Force Update All Addons

Re-download all addons even if they're up to date:

bash
lemonup --cli --force

Force update with preview:

bash
lemonup --cli --force --dry-run

Automation

Cron Job Example

Check for updates daily at 6 AM:

bash
0 6 * * * /usr/local/bin/lemonup --cli --force 2>&1 | logger -t lemonup

Shell Script Example

bash
#!/bin/bash
# Update addons before launching WoW

lemonup --cli --force
if [ $? -eq 0 ]; then
    echo "Addons updated successfully"
else
    echo "Update failed"
    exit 1
fi

Exit Codes

CodeMeaning
0Success
1General error
2Invalid arguments

Development Mode

The --dev flag enables additional features for testing:

  • Lower auto-check intervals (1, 5, 15 minutes)
  • Countdown timer in header
  • Terminal dimension display
  • Extended debug logging

Released under the MIT License.