Pig LogoPig Docs
Quickstart

Installing Your Piglet

Piglet is fully open source, and you can check out the code on GitHub.

The below PowerShell script will install Piglet onto your Windows machine, and add the piglet executable to your PATH.

# Create tool directory
$toolDir = "$env:USERPROFILE\.piglet"
New-Item -ItemType Directory -Force -Path $toolDir
 
# Download piglet
Invoke-WebRequest -Uri "https://github.com/pig-dot-dev/piglet/releases/download/v0.0.7/piglet.exe" -OutFile "$toolDir\piglet.exe"
 
# Add to PATH if not already there
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
if ($userPath -notlike "*$toolDir*") {
    [Environment]::SetEnvironmentVariable("Path", $userPath + ";" + $toolDir, "User")
}
 
Write-Host "Piglet installed! You may need to restart your terminal for PATH changes to take effect."

You can verify the installation by running:

piglet --help