Wren-CLI Manual

A complete reference for the Wren scripting language CLI

What is Wren-CLI?

Wren-CLI is a command-line interface for the Wren programming language, extended with powerful modules for networking, file I/O, databases, and more. It provides an async event loop powered by libuv, making it suitable for building servers, automation scripts, and command-line tools.

Getting Started

Install Wren-CLI, write your first script, and learn the basics of the language.

Language Reference

Learn about classes, methods, control flow, fibers, and the module system.

API Reference

Complete documentation for all 32 built-in modules including HTTP, WebSocket, and SQLite.

Tutorials

Step-by-step guides for building real applications with Wren-CLI.

Available Modules

Wren-CLI provides a rich set of modules for common programming tasks:

Networking

Data Processing

System

Data & Time

Quick Example

import "http" for Http
import "json" for Json

var response = Http.get("https://api.github.com/users/wren-lang")
var data = Json.parse(response.body)

System.print("User: %(data["login"])")
System.print("Repos: %(data["public_repos"])")

Features

  • Async I/O - Non-blocking operations powered by libuv
  • HTTP/HTTPS - Full HTTP client with TLS support
  • WebSocket - Client and server WebSocket support
  • SQLite - Embedded database for persistent storage
  • Templates - Jinja2-compatible template engine
  • Regex - Full regular expression support
  • Cross-platform - Runs on Linux, macOS, and FreeBSD