Getting Started
The Metaphori CLI is a powerful command-line tool for compressing AI prompts while maintaining quality and coherence. Built with Go for maximum performance and cross-platform compatibility.
Installation
macOS (Homebrew)
The recommended way to install Metaphori CLI on macOS is via Homebrew:
# One-line installation (recommended)
brew install metaphori-ai/metaphori/metaphori
# Or, using tap (alternative method)
brew tap metaphori-ai/metaphori
brew install metaphori
# Update to the latest version
brew update && brew upgrade metaphoriDirect Download
You can also download the CLI directly for your platform:
macOS
- Intel: metaphori-v0.4.3-darwin-amd64.tar.gz
- Apple Silicon (M1/M2/M3): metaphori-v0.4.3-darwin-arm64.tar.gz
Linux
Windows
Manual Installation
After downloading the appropriate archive for your platform:
# Extract the archive
tar -xzf metaphori-v0.4.3-<platform>.tar.gz
# Move to a directory in your PATH
sudo mv metaphori /usr/local/bin/
# Verify installation
metaphori --versionConfiguration
Before using the CLI, you'll need to configure your API credentials:
# Set your API key
metaphori config set api-key YOUR_API_KEY
# Verify configuration
metaphori config listYou can obtain your API key from the Metaphori Dashboard.
First Compression
Let's compress your first prompt:
# Compress a prompt from a file
metaphori compress -f prompt.txt
# Compress a prompt directly
metaphori compress -p "Your long prompt here..."
# View compression details
metaphori listNext Steps
- Learn about Core Concepts to understand how compression works
- Explore Commands for the full CLI reference
- Check out Examples for common use cases