Installation
Snipraw ships as a single binary with no runtime dependencies. Install it via the convenience script, or download and run it manually.
Convenience script (recommended)
Linux & macOS
bash <(curl -fsSL https://raw.githubusercontent.com/patppuccin/snipraw/main/scripts/install.sh)Windows (PowerShell 5.1+)
powershell -ExecutionPolicy Bypass -NoProfile -c "irm https://raw.githubusercontent.com/patppuccin/snipraw/main/scripts/install.ps1 | iex"The script detects your platform and architecture, downloads the latest release, and installs the binary onto your PATH.
Manual install
Download the archive for your platform from the GitHub releases page, extract it, and move the binary onto your PATH.
tar -xzf snipraw-linux-x86_64.tar.gz
chmod +x snipraw
sudo mv snipraw /usr/local/bin/sniprawOn Windows, extract the .zip and move snipraw.exe to a directory on your PATH.
Verify the installation:
snipraw --versionFirst run
Snipraw needs a config file pointing at your snippets directory:
# ~/.config/snipraw/config.yaml
snippets-dir: ~/snippetsThen run:
snipraw -c ~/.config/snipraw/config.yamlOpen http://localhost:8245 in your browser. If the directory in snippets-dir doesn't exist, snipraw exits with an error, it won't create it for you.
Updating
Download the new binary and replace the old one. Snipraw has no state to migrate.
TIP
If you installed via a package manager or custom path, make sure the new binary lands in the same location.