From a8c937dbea751a4b131dc8ef69ab65cb000d8e1a Mon Sep 17 00:00:00 2001 From: Rian Stockbower Date: Sat, 28 Mar 2026 14:56:17 -0400 Subject: [PATCH] docs: add APT and RPM installation instructions --- README.md | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2b6884..4919416 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,38 @@ winget install OpenCLICollective.salesforce-cli sudo snap install ocli-sfdc ``` -### Linux (deb/rpm) +### APT (Debian/Ubuntu) -Download the appropriate package from the [releases page](https://github.com/open-cli-collective/salesforce-cli/releases). +```bash +# Add the GPG key +curl -fsSL https://open-cli-collective.github.io/linux-packages/keys/gpg.asc | sudo gpg --dearmor -o /usr/share/keyrings/open-cli-collective.gpg + +# Add the repository +echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/open-cli-collective.gpg] https://open-cli-collective.github.io/linux-packages/apt stable main" | sudo tee /etc/apt/sources.list.d/open-cli-collective.list + +# Install +sudo apt update && sudo apt install sfdc +``` + +### RPM (Fedora/RHEL) + +```bash +# Import the GPG key +sudo rpm --import https://open-cli-collective.github.io/linux-packages/keys/gpg.asc + +# Add the repository +sudo tee /etc/yum.repos.d/open-cli-collective.repo << 'EOF' +[open-cli-collective] +name=Open CLI Collective +baseurl=https://open-cli-collective.github.io/linux-packages/rpm/packages +gpgcheck=1 +gpgkey=https://open-cli-collective.github.io/linux-packages/keys/gpg.asc +enabled=1 +EOF + +# Install +sudo dnf install sfdc +``` ### From Source