-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Griffen Fargo edited this page May 10, 2026
·
7 revisions
This guide will help you install localpress and connect your first WordPress site.
brew install gfargo/localpress/localpressThis installs everything you need in one command — including Bun (the runtime) and sharp (image processing) as dependencies. No further setup required.
Download the latest tarball from GitHub Releases:
# macOS (Apple Silicon)
curl -L https://github.com/gfargo/localpress/releases/latest/download/localpress-darwin-arm64.tar.gz | tar xz
ln -s "$(pwd)/localpress-darwin-arm64/bin/localpress" /usr/local/bin/localpress
# macOS (Intel)
curl -L https://github.com/gfargo/localpress/releases/latest/download/localpress-darwin-x64.tar.gz | tar xz
ln -s "$(pwd)/localpress-darwin-x64/bin/localpress" /usr/local/bin/localpress
# Linux (x64)
curl -L https://github.com/gfargo/localpress/releases/latest/download/localpress-linux-x64.tar.gz | tar xz
ln -s "$(pwd)/localpress-linux-x64/bin/localpress" /usr/local/bin/localpress
# Linux (ARM64)
curl -L https://github.com/gfargo/localpress/releases/latest/download/localpress-linux-arm64.tar.gz | tar xz
ln -s "$(pwd)/localpress-linux-arm64/bin/localpress" /usr/local/bin/localpressThe archive contains everything needed (bundle, dependencies, wrapper script). You only need Bun installed:
curl -fsSL https://bun.sh/install | bashRequires Bun >= 1.1.0:
git clone https://github.com/gfargo/localpress.git
cd localpress
bun install
bun run dev -- --help # run from source
# or build a distributable tarball:
bun run build # → ./dist/localpress-<platform>.tar.gzlocalpress --version
localpress doctordoctor checks that everything is set up correctly, including image processing support.
Tab completion makes localpress much faster to use:
# Bash
localpress completions bash >> ~/.bashrc
# Zsh
localpress completions zsh >> ~/.zshrc
# Fish
localpress completions fish > ~/.config/fish/completions/localpress.fishRestart your shell or source the config file to activate.
# Homebrew users
brew upgrade localpress
# Archive users — self-update in place
localpress update
# Just check if an update is available
localpress update --check- Go to your WordPress admin:
https://your-site.com/wp-admin - Navigate to Users → Profile
- Scroll to Application Passwords
- Enter a name (e.g., "localpress") and click Add New Application Password
- Copy the generated password (it will look like:
xxxx xxxx xxxx xxxx xxxx xxxx)
localpress initThe interactive wizard will guide you through:
- Entering your WordPress site URL
- Choosing a name for this site configuration
- Entering your WordPress username
- Entering the Application Password
localpress doctorThis command checks:
- REST API connectivity
- Available capabilities
- Installed WordPress plugins
- Authentication
localpress listShows all media items in your WordPress library.
localpress auditChecks for:
- Unoptimized images
- Large files (>1MB)
- Missing alt text
- Display size mismatches
- Duplicate images
- Broken references
# Dry run (see what would be optimized)
localpress optimize --unoptimized
# Actually optimize
localpress optimize --unoptimized --applylocalpress remove-bg 123
# Where 123 is the attachment ID- Learn about all available commands:
localpress --help - Export your library for backup:
localpress export --all --to ./backup.zip - Bulk import images:
localpress import ./photos/ --optimize --to webp - Set up named optimization profiles: See Configuration
- Integrate with AI agents: See AI Agent Integration
- Automate with bulk operations: See Commands Reference