NaijaScript runs on Linux, macOS, and Windows.
Linux/macOS
curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/xosnrdev/naijascript/master/scripts/install.sh | sh
Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/xosnrdev/naijascript/master/scripts/install.ps1 | iex"
These scripts download the latest stable release, install the naija interpreter, and add the install directory to your PATH. You may need to restart your terminal after installation.
Verify the install
naija --version
Expected output example:
naijascript 0.11.5
Create hello.ns:
shout("Hello, World!")
Run it:
naija hello.ns
For help:
naija help
Try NaijaScript in your browser: https://naijascript-playground.pages.dev
git clone https://github.com/xosnrdev/naijascript.git
cd naijascript
Install Rust via rustup if you do not have it. The repository pins the toolchain in rust-toolchain.toml; rustup will select the required nightly toolchain automatically.
cargo build --bin naija
cargo test
If you encounter any issues, feel free to open an issue on the GitHub repository.