Installation
Get the MetaScript compiler installed in under a minute.
Quick Install (Recommended)
Install MetaScript with a single command:
curl -fsSL https://metascriptlang.org/install.sh | shThis automatically detects your platform and installs the latest version.
Supported Platforms
| Platform | Architecture | Status |
|---|---|---|
| macOS | Apple Silicon (arm64) | Fully supported |
| macOS | Intel (x86_64) | Fully supported |
| Linux | x86_64 | Fully supported |
| Linux | arm64 | Fully supported |
| Windows | x86_64 | Coming soon |
Installation Options
Customize the installation with environment variables:
# Install a specific version
MSC_VERSION=0.1.0 curl -fsSL https://metascriptlang.org/install.sh | sh
# Install to a custom directory
MSC_INSTALL_DIR=/opt/metascript curl -fsSL https://metascriptlang.org/install.sh | shManual Installation
If you prefer manual installation or need more control:
Download Binary
-
Go to GitHub Releases
-
Download the archive for your platform:
msc-VERSION-darwin-arm64.tar.gz(macOS Apple Silicon)msc-VERSION-darwin-x86_64.tar.gz(macOS Intel)msc-VERSION-linux-x86_64.tar.gz(Linux x86_64)msc-VERSION-linux-arm64.tar.gz(Linux arm64)
-
Extract and install:
tar -xzf msc-*.tar.gz
sudo mv bin/msc /usr/local/bin/
sudo mv lib/* /usr/local/lib/Build from Source
For development or unsupported platforms:
git clone https://github.com/anthropics/metascript
cd metascript
zig build -Doptimize=ReleaseFastRequires Zig 0.13+.
Verify Installation
Check that MetaScript is installed correctly:
msc --versionYou should see:
Metascript v0.1.0Editor Setup
Get syntax highlighting, autocomplete, and LSP support.
VS Code
- Open Extensions (Cmd+Shift+X / Ctrl+Shift+X)
- Search for "MetaScript"
- Click Install
Neovim
Using lazy.nvim:
{ "metascriptlang/metascript.nvim" }IntelliJ / WebStorm
- Open Settings → Plugins → Marketplace
- Search for "MetaScript"
- Install and restart
Sign In (Optional)
Connect your GitHub account to publish packages:
msc loginThis unlocks:
- Publishing to pkg.metascriptlang.org
- Your
@usernamenamespace - Organization management
- API keys for CI/CD
Uninstall
To remove MetaScript:
rm -rf ~/.metascriptThen remove the PATH entry from your shell config (~/.zshrc, ~/.bashrc, etc.)
Troubleshooting
"command not found: msc"
Add MetaScript to your PATH:
export PATH="$HOME/.metascript/bin:$PATH"Add this line to your ~/.zshrc or ~/.bashrc to make it permanent.
Permission denied
If you get permission errors, ensure the binary is executable:
chmod +x ~/.metascript/bin/mscMissing shared libraries (Linux)
On Linux, you may need ICU libraries:
# Ubuntu/Debian
sudo apt install libicu70
# Fedora/RHEL
sudo dnf install libicuNext Steps
- Quick Start — Build your first app
- Three Runtimes — Understand deployment options
- Compile-Time Power — MetaScript's killer feature