Installation Guide
How to Install SamaLang
Section titled “How to Install SamaLang”Choose the installation method that best suits your needs.
Install via NPM (Recommended)
Section titled “Install via NPM (Recommended)”Requires Node.js >= 18.
npm install -g samalangAfter installation, verify it works:
sl --versionsl --helpInstall via curl (Linux / macOS)
Section titled “Install via curl (Linux / macOS)”One-liner install — auto-detects your OS and architecture:
curl -fsSL https://raw.githubusercontent.com/Samawa-Language/samawa-language/main/install.sh | bashInstall via PowerShell (Windows)
Section titled “Install via PowerShell (Windows)”irm https://raw.githubusercontent.com/Samawa-Language/samawa-language/main/install.ps1 | iexInstall from Source
Section titled “Install from Source”git clone https://github.com/Samawa-Language/samawa-language.gitcd samawa-languagenpm installnpm linksl run main.sl # Transpile and executesl transpile main.sl # Transpile to Lua onlysl transpile main.sl -o out.lua # Save transpiled Lua to filesl watch main.sl # Auto-recompile on file changessl --help # Show all optionsUninstall
Section titled “Uninstall”# NPMnpm uninstall -g samalang
# curl installer (Linux/macOS)curl -fsSL https://raw.githubusercontent.com/Samawa-Language/samawa-language/main/install.sh | bash -s -- uninstall
# PowerShell (Windows)Remove-Item "$env:USERPROFILE\.samalang" -Recurse -Forcenpm uninstall -g samalangEditor Support
Section titled “Editor Support”Install syntax highlighting for your editor:
- VS Code: Search “Samawa-Language” in Extensions, or install
.vsixfrom GitHub Releases - Zed: Search “Samalang” in Extensions