Installation
Zenoscript can be installed globally using Bun, and works seamlessly with existing TypeScript projects.
Prerequisites
- Bun (recommended)
- Basic familiarity with command line
Install Zenoscript
Quick Install (Recommended)
The fastest way to install Zenoscript is using our installation scripts:
curl -fsSL https://zeno.run/install.sh | bashThese scripts will:
- Detect your system and architecture automatically
- Try Bun installation first (if available) for fastest setup
- Fall back to GitHub releases for manual installation
- Download and extract the appropriate binary for your platform
- Set up your PATH environment variable automatically
- Update your shell configuration (
.bashrc,.zshrc, etc.) - Verify the installation works correctly
- Provide next steps and helpful links
Features:
- ✅ Smart detection - Automatically detects macOS, Linux, Windows
- ✅ Multi-architecture - Supports x64 and ARM64
- ✅ Bun integration - Uses Bun package manager when available
- ✅ Safe installation - Creates user-local installation (no sudo required)
- ✅ Shell integration - Updates your shell's PATH automatically
- ✅ Error handling - Provides clear error messages and troubleshooting
Alternative Installation Methods
Using Bun
bun install -g zenoscriptAlternative Method (Legacy)
bun install -g zenoscriptManual Installation
Download the appropriate binary for your platform from the GitHub releases page:
- Linux x64:
zenoscript-linux-x64.tar.gz - macOS x64 (Intel):
zenoscript-darwin-x64.tar.gz - macOS ARM64 (Apple Silicon):
zenoscript-darwin-arm64.tar.gz - Windows x64:
zenoscript-windows-x64.zip
Extract and add the binary to your PATH:
# Linux/macOS
tar -xzf zenoscript-*.tar.gz
sudo mv */zeno /usr/local/bin/
# Windows
# Extract zip and add zeno.exe to your PATHVerify Installation
Check that Zenoscript is installed correctly:
zeno --versionYou should see output like:
Zenoscript v0.1.5Create Your First Project
Use the init command to create a new Zenoscript project:
# Create a new project directory
mkdir my-zenoscript-app && cd my-zenoscript-app
# Initialize the project
zeno init
# Install dependencies
bun install
# Start development server
bun devThis creates a project structure like:
my-zenoscript-app/
├── package.json
├── bunfig.toml
├── index.zs
└── README.mdIDE Setup
VS Code Extension
Zenoscript provides a dedicated VSCode extension with full language support. You can install it in several ways:
Method 1: From GitHub Releases (Recommended)
- Go to the GitHub releases page
- Download the latest
zenoscript-*.vsixfile - Install using VSCode command line:bash
code --install-extension zenoscript-*.vsix - Or install through VSCode UI:
- Open VSCode
- Go to Extensions (Ctrl+Shift+X)
- Click the "..." menu → "Install from VSIX..."
- Select the downloaded
.vsixfile
Method 2: VSCode Marketplace (Coming Soon)
code --install-extension zenoscript.vscode-zenoscriptExtension Features
The VSCode extension provides:
- Syntax Highlighting - Full syntax highlighting for
.zsfiles - Language Configuration - Bracket matching, auto-closing pairs, comments
- Document Formatting - Basic code formatting support
- File Association - Automatic recognition of
.zsfiles - Error Detection - Integration with Zenoscript transpiler
Configuration
Once installed, the extension automatically:
- Associates
.zsfiles with Zenoscript language - Provides syntax highlighting for Zenoscript keywords, operators, and constructs
- Enables proper commenting with
//and/* */ - Sets up bracket matching and auto-closing pairs
Other Editors
For other editors, you can use the TypeScript language server since Zenoscript compiles to TypeScript. Basic syntax highlighting can be achieved by associating .zs files with TypeScript syntax.
Project Integration
Adding to Existing Projects
To add Zenoscript to an existing TypeScript project:
# Install Zenoscript
bun add zenoscript
# Setup the plugin
zeno setupThis will:
- Add Zenoscript to your
package.json - Configure
bunfig.tomlwith the Zenoscript plugin - Allow you to import
.zsfiles directly
Manual Setup
If you prefer manual setup, add this to your bunfig.toml:
preload = ["zenoscript/plugin"]
[plugins]
zenoscript = "zenoscript/plugin"Next Steps
Now that you have Zenoscript installed, check out the Quick Start Guide to learn the basics.
Troubleshooting
Command not found
If you get a "command not found" error:
- Make sure Bun's global bin directory is in your PATH
- Try reinstalling Zenoscript
- Ensure
~/.bun/binis in your PATH
Plugin not working
If the Bun plugin isn't working:
- Make sure you're using Bun
- Check that
bunfig.tomlis properly configured - Try running
zeno setupagain
Getting Help
- Check the GitHub Issues
- Join our Discord community
- Read the Documentation