bitch-cli/install.sh

23 lines
587 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Installer for @lilith/bitch CLI
# Usage: curl -fsSL <url>/install.sh | bash
set -euo pipefail
REGISTRY="http://forge.nasty.sh/api/packages/lilith/npm/"
PACKAGE="@lilith/bitch"
echo "Installing $PACKAGE globally..."
# Detect package manager
if command -v pnpm &>/dev/null; then
pnpm add -g "$PACKAGE" --registry "$REGISTRY"
elif command -v npm &>/dev/null; then
npm install -g "$PACKAGE" --registry "$REGISTRY"
else
echo "Error: No package manager found (pnpm or npm required)"
exit 1
fi
echo "✓ Installed. Run 'bitch --help' to get started."