Documentation Hub
Introduction
Getting Started with NextViper
Install NextViper, configure your development environment, and build your first application.
Getting Started with NextViper
NextViper is a modern, high-performance programming language designed from the ground up for developer ergonomics, speed, and seamless integration across general software development, data science, and artificial intelligence.
1. Installation
Quick Install (Linux / macOS / Termux)
bash
curl -fsSL https://nextviper.nuratix.com/install.sh | bashVerify the installation:
bash
nextviper --version
# NextViper compiler v0.1.0 (Vipera Genesis)2. Your First Program
Create a new project using the NextViper package manager:
bash
nextviper init hello_world
cd hello_worldThis generates the standard project directory layout:
code
hello_world/
├── nextviper.toml # Project manifest & metadata
├── nextviper.lock # Deterministic SHA-256 lockfile
└── src/
└── main.nv # Application entry pointOpen src/main.nv and write:
nextviper
fn main() {
let message = "Hello from NextViper!"
print(message)
// Pipeline operator example
let numbers = [1, 2, 3, 4, 5]
let squared = numbers
|> map(fn(x) => x * x)
|> filter(fn(x) => x > 5)
print("Squared and filtered:", squared)
}Run your program:
bash
nextviper run src/main.nvCompile to native binary executable:
bash
nextviper build src/main.nv -o hello_world
./hello_world3. Key CLI Commands
| Command | Description |
|---|---|
| `nextviper init <name>` | Initialize a new package workspace |
| `nextviper run <file.nv>` | Compile and execute a NextViper program |
| `nextviper build <file.nv>` | Compile to standalone native binary |
| `nextviper add <package>` | Add dependency from official registry |
| `nextviper install` | Install all dependencies declared in manifest |
| `nextviper publish` | Build and publish package to registry |
| `nextviper login` | Authenticate CLI with registry API token |
| `nextviper search <query>` | Search package registry from terminal |

