CLI Getting Started
Get up and running with the Scriptling command-line interface.
Installation
Homebrew (macOS & Linux)
brew install paularlott/tap/scriptlingGitHub Releases
Download pre-built binaries from GitHub Releases:
- Linux (AMD64, ARM64)
- macOS (AMD64, ARM64)
- Windows (AMD64, ARM64)
Build from Source
git clone https://github.com/paularlott/scriptling.git
cd scriptling
# Build CLI for current platform
make build
# Run scripts
./bin/scriptling script.pyYour First Script
Create a file called hello.py:
name = "World"
print(f"Hello, {name}!")
# Use standard libraries
import json
import math
data = json.dumps({"numbers": [1, 2, 3]})
print(data)
print(f"sqrt(16) = {math.sqrt(16)}")Run it:
scriptling hello.pyInteractive Mode
Launch the REPL to experiment:
scriptling --interactivePipe a Script
echo 'print("Hello")' | scriptlingHTTP Server
Run Scriptling as an HTTP server:
scriptling --server :8000 setup.pyMCP Server
Run Scriptling as a Model Context Protocol server for AI integration:
scriptling --server :8000 --mcp-tools ./tools setup.pyNext Steps
- Language Guide - Learn the complete language syntax
- Libraries - Explore available libraries and APIs
- CLI Reference - Full command-line interface documentation
- Security Guide - Security best practices