Skip to content

Getting Started

Nubo runs scripts, serves HTTP routes, renders HTML, and embeds in Go applications. Choose either installation method below.

  1. Open Nubo releases.
  2. Under a release’s Assets, download the binary for your operating system and CPU. Download the executable asset, not GitHub’s source-code archive.
  3. Rename it to nubo (nubo.exe on Windows) and place it in a directory on your PATH.

The repository builds these binary names; use the assets actually attached to your chosen release:

PlatformIntel / AMD 64-bitARM 64-bit
macOSnubo-darwin-amd64nubo-darwin-arm64
Linuxnubo-linux-amd64nubo-linux-arm64
Windowsnubo-windows-amd64.exenubo-windows-arm64.exe

A release binary does not require installing Go. On macOS or Linux, make the downloaded file executable. For example, after downloading the Apple Silicon binary into your current directory:

Terminal window
mkdir -p "$HOME/.local/bin"
cp ./nubo-darwin-arm64 "$HOME/.local/bin/nubo"
chmod +x "$HOME/.local/bin/nubo"
export PATH="$HOME/.local/bin:$PATH"

Add that PATH setting to your shell startup file to keep it for future sessions. On Windows, put nubo.exe in a folder on your user Path, then open a new terminal.

With Go installed, run:

Terminal window
go install github.com/nubolang/nubo/cmd/nubo@latest

Use a Go toolchain meeting the selected version’s go.mod requirement; the current checkout declares Go 1.23.7. Go can select a newer toolchain when automatic toolchain downloads are enabled.

Go places the executable in GOBIN, or in $(go env GOPATH)/bin when GOBIN is unset. Add that directory to your PATH. For the default Unix layout:

Terminal window
export PATH="$(go env GOPATH)/bin:$PATH"
Terminal window
nubo --version

Create main.nubo:

main.nubo
fn greet(name: string = "World") string {
return "Hello, " + name
}
println(greet(name: "Nubo"))
Terminal window
nubo main.nubo

This prints Hello, Nubo. A standalone script does not require nubo init; use that command when you want package-manager project files.

Create an app directory with this route:

app/index.nubo
import request from "@server/request"
import response from "@server/response"
let name: string? = request.query("name")
if isNil(name) {
name = "World"
}
response.json(dict[string, any] {
message: "Hello, " + name,
ok: true
})
Terminal window
nubo serve app --addr :3000

Visit http://localhost:3000/?name=Nubo. For route parameters, uploads, and custom error pages, continue to the server guide.

Add Nubo to a Go module:

Terminal window
go get github.com/nubolang/nubo@latest

Use nubo.New(), AddFunc, and ExecString to expose Go functionality to scripts. See Embedding in Go and Hybrid packages.