Add install script for one-command setup#18
Merged
munezaclovis merged 5 commits intomainfrom Mar 5, 2026
Merged
Conversation
Allows users to install pv with: curl -fsSL https://pv.prvious.dev/install | bash Downloads the pv binary to /usr/local/bin, then runs pv install to bootstrap the full environment (PHP, FrankenPHP, Composer, Mago, DNS, HTTPS certs). Includes progress bar, Rosetta detection, shell PATH auto-setup, and GitHub Actions support.
… command -v, use fish_add_path
6407987 to
6eb690e
Compare
- Change default install location from /usr/local/bin to ~/.local/bin so updates no longer require sudo - Add --install-dir flag for custom install locations - Update pv env to include ~/.local/bin in PATH output - Keep sudo -v for DNS resolver and CA trust setup only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
install.sh— a curl-pipe installer so users can set up pv with a single command:pvbinary to/usr/local/bin, then runspv installto bootstrap the full environment (PHP, FrankenPHP, Composer, Mago, DNS, HTTPS certs)Features
■/・characters in purple--version 0.2.0to install a specific release--php 8.4forwarded topv install--no-modify-path— for CI environments$GITHUB_PATHWhat it delegates
The script does NOT duplicate any PHP/FrankenPHP/Composer/Mago/DNS/cert logic. It only gets the
pvbinary in place and runspv install --force, which already handles all of that with its own step-by-step output.Prerequisites
This script expects release assets named
pv-darwin-arm64andpv-darwin-amd64on GitHub releases. A release workflow for the Go binary is needed before this script is functional.