Choose the installation method that works best for you.
For Windows Users:
- Go to Releases
- Download
ghec-sso-cli.exe - Save it anywhere (e.g., Desktop, Downloads)
- Open Command Prompt or PowerShell where you saved the file
- Run:
.\ghec-sso-cli.exe --help
- Node.js 16 or higher - Download here
- Git (for GitHub installation method) - Download here
Open a terminal/command prompt and run:
npm install -g git+https://github.com/benleane83/ghec-sso-setup.gitgit clone https://github.com/benleane83/ghec-sso-setup.git
cd ghec-sso-setup
npm install
npm run build
npm install -g .# Windows
.\ghec-sso-cli.exe --version
### For npm Installation:
```bash
ghec-sso --version
ghec-sso --help# Download ghec-sso-cli.exe to your Desktop
cd Desktop
.\ghec-sso-cli.exe auth login
.\ghec-sso-cli.exe setup --enterprise mycompanyghec-sso auth login
ghec-sso setup --enterprise mycompany"Windows protected your PC" warning:
- Click "More info" → "Run anyway"
- Or right-click the .exe → Properties → Check "Unblock"
- Or run in PowerShell:
Unblock-File .\ghec-sso-cli.exe
File not found:
- Make sure you're in the same directory as the downloaded executable
- Use
ls(macOS/Linux) ordir(Windows) to list files in current directory
"Command not found" error:
- Make sure Node.js and npm are installed correctly
- Try running with full path:
npx ghec-sso --help - Re-run:
npm install -g git+https://github.com/benleane83/ghec-sso-setup.git
Permission errors on macOS/Linux:
sudo npm install -g git+https://github.com/benleane83/ghec-sso-setup.gitUpdate to latest version:
# For npm installation
npm uninstall -g ghec-sso-cli
npm install -g git+https://github.com/benleane83/ghec-sso-setup.git
# For executable, just download the latest from GitHub ReleasesGetting Help:
- Check authentication:
ghec-sso auth status - Debug enterprise access:
ghec-sso auth debug -e my-company - View all commands:
ghec-sso --help - Test dry run:
ghec-sso setup --dry-run -e my-company
💡 Recommendation: Use the standalone executable (Option 1) for the simplest experience - no Node.js or npm knowledge required!
- Permissions: Admin access to both GitHub Enterprise and Azure AD