> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loupp.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Commands

> Execute custom commands on your shared hosting servers

## Overview

Execute custom shell commands directly on your shared hosting server from the Loupp dashboard. Run maintenance tasks, troubleshoot issues, and perform administrative operations without direct SSH access.

## Command Execution Features

### Core Capabilities

> [card] Custom Commands
>
> Execute any shell command with full server access

> [card] Command History
>
> Track all executed commands with timestamps and outputs

> [card] Real-time Monitoring
>
> Monitor command execution status and results

### Execution Environment

Commands run in a controlled environment:

> [accordion] Working Directory
>
> Commands execute from the server's root directory: `/home/loupp/{{ $server->name }}`

> [accordion] User Context
>
> Commands run as the `loupp` user with appropriate permissions

> [accordion] Timeout Limits
>
> Commands have a 2-minute timeout to prevent resource exhaustion

## Running Commands

### Basic Command Execution

**1. Access command interface**

Navigate to your shared server dashboard and click on the "Commands" tab.

**2. Enter command**

Type your command in the text area:

```bash theme={null}
# 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

> [accordion] Multi-line Commands
>
> ```bash theme={null}
> # You can enter multi-line commands
> if [ -f "composer.json" ]; then
>     composer install --no-dev
> else
>     echo "No composer.json found"
> fi
> ```

> [accordion] File Operations
>
> ```bash theme={null}
> # 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:

> [card] Command Details
>
> * Full command text
> * Execution timestamp
> * User who ran the command

> [card] Execution Status
>
> * Running status
> * Success/failure indicators
> * Execution time tracking

> [card] 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.