FOSSA CLI Installation & Troubleshooting Guide for Windows

This guide provides instructions to install the FOSSA CLI on Windows and troubleshoot common issues.


🚀 Installation

Open PowerShell as Administrator and run the following command:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.ps1'))"

This script downloads and installs the latest FOSSA CLI release.


🧪 Verification

After installation, verify it with:

fossa --version

If the command returns a version number, your installation is successful.


❌ Troubleshooting

1. Script Execution Disabled

If you encounter:

Execution of scripts is disabled on this system.

Then run PowerShell as Administrator and execute:

Set-ExecutionPolicy RemoteSigned

Accept the prompt by typing Y and pressing Enter.


2. CLI Not Recognized in PATH

If fossa is not recognized:

  • Ensure the CLI is located in a folder that's part of the system PATH.
  • You may need to restart PowerShell after installation.
  • Manually add the installation folder to PATH if needed.

3. Fallback: Manual .exe Download

If the script fails to download/install:

  • Download the latest release from: https://github.com/fossas/fossa-cli/releases
  • Choose the appropriate .exe file (e.g. fossa-windows.exe)
  • Save it to a known location like C:\Tools\FOSSA
  • Rename it to fossa.exe (optional)
  • Add this folder to your system PATH environment variable
  • Test it again:
fossa --version

📘 Learn More


Need help? Email: [email protected]