💡 How to Run the Command:
  1. Open PowerShell: Right-click the Start button on your Windows taskbar, then select "Windows PowerShell" or "Terminal" from the menu.
  2. Copy the Command: Click the copy icon next to the command shown above to copy it to your clipboard.
  3. Paste and Execute: In the PowerShell or Terminal window, right-click to paste the command, then press Enter.
  4. Wait for Installation: Battorion will automatically begin the installation or update process. No further action is required.

⚠️ For best results, run PowerShell as Administrator. Internet connection is required for online installs and updates.

Install Battorion

irm https://battorion-website.vercel.app/api/install | iex

Installs Battorion CLI from the official repository. No admin permissions required. Works on PowerShell (Windows). Ensure internet connection is available.

Install Specific Battorion Version from GitHub

$version = "1.2.3"  # Change this to the desired version number
$repo = "MuathHassoun/battorion-version"
$url = "https://github.com/$repo/releases/download/v$version/_battorion-$version-setup.exe"
$installerPath = "$env:TEMP\battorion-$version-setup.exe"
Remove-Item $installerPath -ErrorAction SilentlyContinue
Write-Host "Downloading from: $url"
try {
    Invoke-WebRequest -Uri $url -OutFile $installerPath -ErrorAction Stop
    Write-Host "Download successful. Starting installer..."
    Start-Process -FilePath $installerPath -ArgumentList '/S' -Wait
    Remove-Item $installerPath
    Write-Host "Installation completed."
} catch {
    Write-Error "Download or installation failed: $_"
}

Downloads and installs a specific Battorion version directly from the GitHub releases. Replace 1.2.3 with your desired version tag.

Note: It is recommended to save this command to a .txt file, edit the version number there, and then copy-paste it into PowerShell to avoid errors.

Install via Chocolatey

choco install battorion

Installs Battorion using Chocolatey package manager. Recommended for IT admins and automation scripts.

Install Specific Battorion Version

choco install battorion --version=1.2.3

Installs a specific version of Battorion by specifying the version number. Replace 1.2.3 with the desired version tag.

Update Battorion

irm https://battorion-website.vercel.app/api/update | iex

Updates the existing Battorion CLI to the latest version. Keeps your current configuration intact. Requires internet access.

Upgrade Battorion

choco upgrade battorion --version=7.3.0

To upgrade Battorion, run this command from the command line or from PowerShell.

Install (Offline Mode)

$version = "1.2.0" # Change this to the desired version number
$downloadUrl = "https://github.com/MuathHassoun/battorion-version/releases/download/sv$version/_battorion-$version-silent-setup.exe"
$installerPath = "$env:TEMP\battorion-setup.exe"
Start-BitsTransfer -Source $downloadUrl -Destination $installerPath
Start-Process -FilePath $installerPath -ArgumentList "/silent" -Wait

Downloads the full installer and runs it silently without user interaction. No need for PowerShell execution policies.

Uninstall Battorion

& "$env:ProgramFiles\Battorion\uninstall.exe" /silent

Removes Battorion silently from your system. Useful for clean reinstallation or complete removal.

Uninstall Battorion — Choco

choco uninstall battorion --version=7.3.0

To uninstall Battorion, run this command from the command line or from PowerShell:

List Battorion Versions (Tags)

$repo = "MuathHassoun/battorion-version"
$apiUrl = "https://api.github.com/repos/$repo/tags"
$headers = @{ "User-Agent" = "PowerShellScript" }

try {
    $tags = Invoke-RestMethod -Uri $apiUrl -Headers $headers
    foreach ($tag in $tags) {
        Write-Host $tag.name
    }
} catch {
    Write-Error "Failed to fetch tags: $_"
}

Fetches and lists all available version tags of Battorion from the official GitHub repository using PowerShell.

List Available Versions

choco list battorion --all

Lists all available versions of the Battorion package.

Search the Repository

Searches the Chocolatey repository for the Battorion package.

Install with Logging

irm https://battorion-website.vercel.app/api/install | iex *> "$env:TEMP\battorion-install-log.txt"

Installs Battorion and logs all output to a file for troubleshooting or verification.