This guide will help you install and use Athena CLI on Windows.
Before installing Athena, make sure you have:
- Rust – Install from rustup.rs
- PowerShell 5.0+ – Included by default with Windows 10/11
- Git (optional) – To clone the repository
# Open PowerShell in the project directory
.\build.ps1 install# Open PowerShell as Administrator
.\build.ps1 install-systemThe PowerShell script build.ps1 provides the following commands:
.\build.ps1 help # Show help
.\build.ps1 build # Build in release mode
.\build.ps1 test # Run all tests
.\build.ps1 install # Local installation
.\build.ps1 install-system # System-wide installation (admin required)
.\build.ps1 uninstall # Uninstall
.\build.ps1 clean # Clean build artifacts
.\build.ps1 dev # Development mode
.\build.ps1 demo # Run a full demo
.\build.ps1 check-install # Verify installationOnce installed, Athena can be used directly from the terminal:
athena --help
athena build my-project.ath
athena generate fastapi my-apiIf you encounter an execution policy error when running scripts:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserAfter a system-wide installation, restart your terminal or manually refresh PATH:
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User").\build.ps1 uninstallThis command removes:
- The local Cargo installation
- The system-wide installation (if admin privileges are available)
- Associated PATH entries