Complete installation and setup guide for Frontier CLI.
- macOS: 11.0 (Big Sur) or later
- Architecture: Apple Silicon (arm64) or Intel (x86_64)
- Disk Space: ~15MB for binary and system database
Download the latest release from GitHub:
# Download latest release
VERSION="v1.0.0-alpha.7" # Replace with desired version
curl -L https://github.com/jsavin/Frontier/releases/download/$VERSION/frontier-cli-${VERSION#v}-macos.zip -o frontier-cli.zip
# Extract
unzip frontier-cli.zip
cd frontier-cli-${VERSION#v}-macos
# Run installer
./install.sh
# Verify installation
frontier-cli --versionThe installer will:
- Copy
frontier-clibinary to/usr/local/bin(or~/.local/binif sudo not available) - Copy system root database to
~/Library/Application Support/Frontier/ - Optionally add to your PATH (if using
~/.local/bin)
# Clone repository
git clone https://github.com/jsavin/Frontier.git
cd Frontier
# Checkout desired version (or use develop branch)
git checkout v1.0.0-alpha.7
# Build CLI
cd frontier-cli
make
# Run directly
./frontier-cli --version
# Or install manually
sudo cp frontier-cli /usr/local/bin/
mkdir -p ~/Library/Application\ Support/Frontier
cp ../databases/Frontier.root ~/Library/Application\ Support/Frontier/Frontier.rootAfter installation, verify everything works:
# Check version
frontier-cli --version
# Test inline execution
frontier-cli -e "1+1"
# Start interactive REPL
frontier-cliExpected output:
Frontier CLI v1.0.0-alpha.7 (Apr 03 2026)
Copyright (C) 1992-2026 UserLand Software, Inc. and Contributors
This is free software; see the source for copying conditions.
After installation, files are located at:
/usr/local/bin/frontier-cli # Binary (if installed with sudo)
# OR
~/.local/bin/frontier-cli # Binary (if installed without sudo)
~/Library/Application Support/Frontier/ # Data directory
├── Frontier.root # System root database (v7 format)
└── databases/ # User databases (created as needed)
Frontier CLI recognizes the following environment variables:
Override the system root database location:
export FRONTIER_ROOT="$HOME/custom/location/Frontier.root"
frontier-cliControl log output (useful for debugging):
# Set log level (TRACE, DEBUG, INFO, WARN, ERROR)
export FRONTIER_LOG_LEVEL=DEBUG
# Filter by component (DB, HASH, LANG, etc.)
export FRONTIER_LOG_COMPONENT=DB
frontier-cli -e "db.new('/tmp/test.root')"If no --system-root argument is provided, Frontier CLI searches for the system root database in this order:
$FRONTIER_ROOTenvironment variable./Frontier.root(current working directory)- Executable directory (
<exe_dir>/Frontier.root) ~/Library/Application Support/Frontier/Frontier.root~/.frontier/Frontier.root(Linux convention)
To completely remove Frontier CLI:
# Remove binary
sudo rm /usr/local/bin/frontier-cli
# OR
rm ~/.local/bin/frontier-cli
# Remove data directory (WARNING: deletes all databases)
rm -rf ~/Library/Application\ Support/Frontier
# Remove PATH entry (if added to shell rc file)
# Edit ~/.zshrc or ~/.bashrc and remove the Frontier CLI PATH lineTo upgrade to a new version:
- Download the new release
- Run the installer again (it will replace the old binary)
- Your data directory (
~/Library/Application Support/Frontier/) is preserved
# Download new version
curl -L https://github.com/jsavin/Frontier/releases/download/v1.0.0-alpha.7/frontier-cli-1.0.0-alpha.7-macos.zip -o frontier-cli.zip
unzip frontier-cli.zip
cd frontier-cli-1.0.0-alpha.7-macos
./install.sh
# Verify upgrade
frontier-cli --versionThe installation directory is not in your PATH. Add it manually:
# For /usr/local/bin (should already be in PATH)
echo $PATH | grep -q '/usr/local/bin' || echo "Not in PATH"
# For ~/.local/bin
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc # or ~/.bashrc
source ~/.zshrcFrontier CLI can't find the system database. Check:
# Verify database exists
ls -lh ~/Library/Application\ Support/Frontier/Frontier.root
# If missing, reinstall or specify location
frontier-cli --system-root /path/to/Frontier.rootThe installer needs to copy files to /usr/local/bin. Either:
- Run with sudo:
sudo ./install.sh - Let it install to
~/.local/bin(no sudo required)
If you see database version errors, try migrating:
# Migrate v6 to v7 explicitly
frontier-cli --migrate /path/to/Frontier.root- Documentation: CLI Usage Guide
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Once installed, see:
- CLI Usage Guide - Complete CLI reference
- UserTalk Documentation - Language reference
- Testing Guide - Running tests and contributing