This page is a design/reference spec. Release truth lives in the runtime capability manifest and shipped product docs.
One-Line Installer Specification
Owner: PhantomPM Platform Team
Last Updated: 2026-02-13
Status: Beta
Objective
Deliver a safe, low-friction installer for:
curl -fsSL phantom.pm/install | sh
with equivalent Windows path.
Current Implementation State
- Installer scripts are implemented in repository:
scripts/install.shscripts/install.ps1
- Hosted production endpoint wiring and release asset hosting are not deployed yet.
Target State
Installer completes these stages:
- platform and shell detection
- asset retrieval from release manifest
- checksum verification
- binary installation in user-local path
- PATH and completion setup
- post-install diagnostics (
phantom doctor)
Supported Platforms
- macOS arm64
- macOS x64
- Linux arm64
- Linux x64
- Windows x64 (PowerShell script path)
Safety Requirements
- HTTPS-only downloads
- required checksum validation
- hard fail on integrity mismatch
- explicit fallback path if binary unavailable
Fallback Path
If platform asset unavailable:
- installer suggests and can run
npm install -g @phantompm/cli - post-install verification still required
UX Requirements
- clear progress output
- actionable error messages
- short completion path with first command suggestion
Non-Goals
- enterprise fleet management in v1
- background auto-update daemon in v1
Acceptance Criteria
- installer matrix passes on target platforms
- median install-to-version-check within target threshold
- failure modes documented with recovery commands