Pig LogoPig Docs
Piglet Reference

Installation

How to install and set up the Piglet process

Run the following Powershell command to install Piglet onto your Windows machine.

It is best to run it at a user level.

# 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."

Verify installation:

piglet --help

On this page