From 8c0ee1fc8c2f1f498a33336b751d279eed03cd15 Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 23 Jul 2026 17:14:56 +0000 Subject: [PATCH] fix(installer): align install.sh help with git-ref gate install.sh advertised --ref/--repo in usage() while unconditionally rejecting them. Remove them from the help text, use a supported env example, and point the rejection error at the CLI's working 'paperclipai install --ref' path. (PAP-15204) Co-Authored-By: Claude Fable 5 Co-Authored-By: Paperclip --- scripts/install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 1d3c0c5967f..0220ec22273 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -33,8 +33,6 @@ Usage: Options: --canary Install the canary channel --version Install an exact published version - --ref Install a GitHub branch, tag, or commit - --repo Override the GitHub repository --no-onboard Do not start onboarding after installation --no-prompt Run non-interactively --install-service Install the per-user Paperclip service @@ -43,7 +41,10 @@ Options: -h, --help Show this help Every option also has a PAPERCLIP_INSTALL_* environment equivalent, for example -PAPERCLIP_INSTALL_REF=master and PAPERCLIP_INSTALL_NO_PROMPT=1. +PAPERCLIP_INSTALL_VERSION=2026.722.0 and PAPERCLIP_INSTALL_NO_PROMPT=1. + +To install from a git branch, tag, or commit, use the Paperclip CLI directly: +npx paperclipai install --ref EOF } @@ -153,7 +154,7 @@ if [ "$CANARY" = "1" ] && [ -n "$VERSION" ]; then fi if [ -n "$REF" ] || [ -n "$REPO" ]; then - fail "git-ref installs are not available in this installer build; omit --ref and --repo" + fail "git-ref installs are not supported by install.sh; run 'npx paperclipai install --ref ' instead" fi if { [ ! -t 0 ] || [ ! -t 1 ]; } && [ "$NO_PROMPT" != "1" ]; then