Installation
Plexr can be installed in several ways depending on your platform and preferences.
System Requirements
- Operating System: macOS, Linux, or Windows
- Architecture: amd64 or arm64
- Go: Version 1.21+ (only for building from source)
Installation Methods
Using Go Install (Recommended)
If you have Go installed, this is the simplest method:
# Install the latest version
go install github.com/SphereStacking/plexr/cmd/plexr@latest
# Or install a specific version (e.g., v0.1.0)
go install github.com/SphereStacking/plexr/cmd/plexr@v0.1.0This will install Plexr to your $GOPATH/bin directory.
Building from Source
For the latest development version or to contribute:
# Clone the repository
git clone https://github.com/SphereStacking/plexr.git
cd plexr
# Install dependencies
make deps
# Build the binary
make build
# Install to your PATH
make installPackage Managers
Homebrew (macOS/Linux)
Coming soon:
brew install plexrScoop (Windows)
Coming soon:
scoop install plexrBinary Releases
Pre-built binaries are available for multiple platforms. Download from the releases page.
Linux (x86_64)
# Download the latest release
curl -sSL https://github.com/SphereStacking/plexr/releases/latest/download/plexr_Linux_x86_64.tar.gz | tar xz
sudo mv plexr /usr/local/bin/
# Or download a specific version (e.g., v0.1.0)
curl -sSL https://github.com/SphereStacking/plexr/releases/download/v0.1.0/plexr_Linux_x86_64.tar.gz | tar xz
sudo mv plexr /usr/local/bin/Linux (arm64)
# Download the latest release
curl -sSL https://github.com/SphereStacking/plexr/releases/latest/download/plexr_Linux_arm64.tar.gz | tar xz
sudo mv plexr /usr/local/bin/
# Or download a specific version (e.g., v0.1.0)
curl -sSL https://github.com/SphereStacking/plexr/releases/download/v0.1.0/plexr_Linux_arm64.tar.gz | tar xz
sudo mv plexr /usr/local/bin/macOS (Intel)
# Download the latest release
curl -sSL https://github.com/SphereStacking/plexr/releases/latest/download/plexr_Darwin_x86_64.tar.gz | tar xz
sudo mv plexr /usr/local/bin/
# Or download a specific version (e.g., v0.1.0)
curl -sSL https://github.com/SphereStacking/plexr/releases/download/v0.1.0/plexr_Darwin_x86_64.tar.gz | tar xz
sudo mv plexr /usr/local/bin/macOS (Apple Silicon)
# Download the latest release
curl -sSL https://github.com/SphereStacking/plexr/releases/latest/download/plexr_Darwin_arm64.tar.gz | tar xz
sudo mv plexr /usr/local/bin/
# Or download a specific version (e.g., v0.1.0)
curl -sSL https://github.com/SphereStacking/plexr/releases/download/v0.1.0/plexr_Darwin_arm64.tar.gz | tar xz
sudo mv plexr /usr/local/bin/Windows
- Download the appropriate file from the releases page:
- For latest:
plexr_Windows_x86_64.zip - For v0.1.0: Download from the v0.1.0 release page
- For latest:
- Extract the zip file
- Add the directory to your PATH or move
plexr.exeto a directory in your PATH
Verify installation
plexr versionVerifying Installation
After installation, verify that Plexr is correctly installed:
plexr --versionYou should see output like:
plexr version 0.1.0Shell Completion
Plexr supports shell completion for bash, zsh, fish, and PowerShell.
Bash
# Add to ~/.bashrc
echo 'source <(plexr completion bash)' >> ~/.bashrc
source ~/.bashrcZsh
# Add to ~/.zshrc
echo 'source <(plexr completion zsh)' >> ~/.zshrc
source ~/.zshrcFish
plexr completion fish | source
# To persist:
plexr completion fish > ~/.config/fish/completions/plexr.fishPowerShell
# Add to your PowerShell profile
plexr completion powershell | Out-String | Invoke-ExpressionEnvironment Variables
Plexr respects the following environment variables:
PLEXR_STATE_FILE: Override the default state file locationPLEXR_LOG_LEVEL: Set logging level (debug, info, warn, error)PLEXR_NO_COLOR: Disable colored output
Example:
export PLEXR_LOG_LEVEL=debug
export PLEXR_STATE_FILE=/tmp/plexr_state.jsonUpgrading
Using Go
# Upgrade to the latest version
go install github.com/SphereStacking/plexr/cmd/plexr@latest
# Or upgrade to a specific version
go install github.com/SphereStacking/plexr/cmd/plexr@v0.1.0From Source
cd plexr
git pull
make clean build installUninstalling
Installed with Go
rm $(go env GOPATH)/bin/plexrManual Installation
rm /usr/local/bin/plexrCleanup State Files
Plexr creates state files in your project directories:
# Remove state files
find . -name ".plexr_state.json" -deleteTroubleshooting
Command Not Found
If you get "command not found" after installation:
Check if the binary is in your PATH:
bashwhich plexrFor Go installations, ensure
$GOPATH/binis in your PATH:bashecho 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.bashrc source ~/.bashrc
Permission Denied
If you get permission errors:
chmod +x /path/to/plexrVersion Conflicts
If you have multiple versions installed:
# Find all plexr installations
which -a plexr
# Use specific version
/usr/local/bin/plexr --versionNext Steps
- Read the Getting Started Guide
- Learn about Configuration
- See Examples of real-world usage