स्थापना · Install
Get lipi on your computer
After installing, typing lipi in any terminal works.
Just want to try it first? Use the playground, no install needed.
Open Terminal, paste this and press Enter:
curl -fsSL https://raw.githubusercontent.com/RusilKoirala/lipi/master/install.sh | shIt downloads the right lipi for your computer (Intel or Apple Silicon, x86 or ARM), checks the download, puts it in
~/.lipi/binand adds that folder to your PATH. No password needed. Run the same command again later to update.Open a new terminal window, then check it worked:
lipi --version
Want to read the script before running it? It is on GitHub.
Your first program
-
Save this as
namaste.lip:rakha naam = "Sansar"; bhana("Namaste, " + naam + "!"); -
Run it from the same folder:
lipi namaste.lip -
You should see:
Namaste, Sansar!
Next, learn the language in the docs or borrow a program from the examples.
Other ways to install
With Go
If you already have Go 1.26 or newer.
The program goes into ~/go/bin, which must be on your PATH.
go install github.com/rusilkoirala/lipi@latest
From source
For reading the code or changing the language itself.
git clone https://github.com/RusilKoirala/lipi.git && cd lipi
go build -o lipi .
go test ./...
Uninstall on macOS or Linux
Delete the folder, then remove the two lines marked # lipi from
~/.zshrc (or ~/.bashrc).
rm -rf ~/.lipi