This script handles the installation and updates of SFP CLI and its prerequisites.
Install the latest version of SFP and all prerequisites:
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash
export FLXBL_NPM_REGISTRY_KEY="your-github-token"
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash
Update to the latest version:
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash -s -- --update
# Full installation with specific version
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash -s -- --version 1.2.3
# Update only to specific version
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash -s -- --update --version 1.2.3
Option | Description |
---|---|
-u, --update |
Update only the SFP CLI, skip other installations |
-v, --version VERSION |
Install/update to a specific version |
-h, --help |
Show help message |
Variable | Description |
---|---|
FLXBL_NPM_REGISTRY_KEY |
GitHub token for npm registry authentication |
- The script requires sudo access to install system-wide packages.
- The
-E
flag with sudo preserves environment variables (includingFLXBL_NPM_REGISTRY_KEY
). - If
FLXBL_NPM_REGISTRY_KEY
is not set, the script will prompt for it. - Use
-s --
when passing arguments through curl pipe to bash.
When running a full installation (without --update
), the script installs:
- Node.js 20
- Docker & Docker Compose
- Infisical CLI
- Supabase CLI
- SFP CLI
# Full installation
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash
# Show help
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash -s -- --help
# Update to specific version
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash -s -- -u -v 1.2.3
# Update to latest version
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash -s -- --update
# Set token and install
export FLXBL_NPM_REGISTRY_KEY="your-github-token"
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash
# Set token and update to specific version
export FLXBL_NPM_REGISTRY_KEY="your-github-token"
curl -fsSL https://raw.githubusercontent.com/flxbl-io/sfp-pro-installation/main/install.sh | sudo -E bash -s -- --update --version 1.2.3
-
Token Authentication Failed
- Ensure your GitHub token has the required permissions (read:packages)
- Verify the token has access to the flxbl-io organization's packages
-
Command Line Arguments Not Working
- When using curl with pipe to bash, ensure you're using
-s --
before your arguments - Example:
| sudo -E bash -s -- --update
- When using curl with pipe to bash, ensure you're using
-
Environment Variables Not Preserved
- Make sure you're using
sudo -E
to preserve environment variables - Set the token in the same session where you run the script
- Make sure you're using