Get Started

Install Nyra and run your first file.

Quick start

1) Install Nyra · 2) Create hello.ny · 3) Run nyra run hello.ny.

Run a ready-made example

The run command and its output:

fn main() {
    print("Hello, Nyra!")
}

Output

Hello, Nyra!

Essential CLI commands

After install, these are the commands you use every day. Full reference: Toolchain & CLI.

nyra run .              # compile + run the project
nyra build . --release  # ship a binary under target/release/
nyra check .            # type-check only (fast)
nyra test .             # run every test fn
nyra fmt . --write      # format sources
nyra --help             # list all subcommands

Example test (run with nyra test):

import "stdlib/testing.ny"

test fn adds() {
    assert_eq(2 + 3, 5)
}