Skip to main content

Overview

Site commands allow you to execute custom shell commands directly on your server from the Loupp dashboard. This feature provides a convenient way to perform maintenance tasks, run scripts, and troubleshoot issues without direct SSH access.

Command Execution Features

Core Capabilities

Custom Commands

Execute any shell command with full server access

Command History

Track all executed commands with timestamps and outputs

Real-time Monitoring

Monitor command execution status and results

Execution Environment

Commands run in a controlled environment:
Commands execute from the site’s root directory: /home/loupp/yourdomain.com
Commands run as the loupp user with appropriate permissions
Commands have a 2-minute timeout to prevent resource exhaustion

Running Commands

Basic Command Execution

1

Access command interface

Navigate to your site dashboard and click on the “Commands” tab.
2

Enter command

Type your command in the text area:
# Example commands
ls -la
php artisan list
composer install
npm run build
3

Execute command

Use one of these methods to run the command:
  • Click “Run” button
  • Press Cmd + Enter (macOS)
  • Press Ctrl + Enter (Windows/Linux)
4

Monitor execution

Track command status and view output in real-time.

Command Input Tips

# You can enter multi-line commands
if [ -f "composer.json" ]; then
    composer install --no-dev
else
    echo "No composer.json found"
fi
# Common file operations
ls -la storage/logs/
tail -n 50 storage/logs/laravel.log
chmod -R 755 storage/

Command History Management

Viewing Command History

All executed commands are automatically logged with detailed information:

Command Details

  • Full command text
  • Execution timestamp
  • User who ran the command

Execution Status

  • Running status
  • Success/failure indicators
  • Execution time tracking

Output Results

  • Command output
  • Error messages
  • Return codes

Command History Interface

1

Access history

Scroll down to the “Command History” section below the command input.
2

Review commands

Each command entry shows:
  • Command text (clickable to re-run)
  • Execution date and time
  • Relative time (e.g., “2 hours ago”)
  • Current status
3

View details

Click “View Details” to see full command output and execution information.

Reusing Commands

1

Select previous command

Click on any command in the history to automatically populate the input field.
2

Modify if needed

Edit the command before execution if you need to make changes.
3

Execute modified command

Run the command with your modifications.

Common Use Cases

Laravel Application Commands

# Cache management
php artisan config:cache
php artisan route:cache
php artisan view:cache

# Database operations
php artisan migrate
php artisan migrate:rollback
php artisan db:seed

# Application maintenance
php artisan down
php artisan up
php artisan optimize
# Dependency management
composer install --no-dev --optimize-autoloader
composer update
composer dump-autoload --optimize

# Package operations
composer require package-name
composer remove package-name
I