Installation Guide
This guide will walk you through installing Suthep on your system.
System Requirements
Before installing Suthep, ensure your system meets these requirements:
- Node.js version 16 or higher
- npm, yarn, or pnpm package manager
- sudo/administrator privileges (required for Nginx and Certbot setup)
- Linux or macOS operating system
Installing Suthep
Suthep can be installed globally using any Node.js package manager.
Using npm
npm install -g suthepUsing yarn
yarn global add suthepUsing pnpm
pnpm add -g suthepVerify Installation
After installation, verify that Suthep is installed correctly:
suthep --versionYou should see the version number (e.g., 0.1.0-beta.1).
You can also check the help menu:
suthep --helpInstalling Prerequisites
Suthep requires Nginx and Certbot to function. You can install these automatically using the setup command:
suthep setupThis command will:
- Install Nginx (if not already installed)
- Install Certbot (if not already installed)
- Configure system dependencies
Manual Installation (Optional)
If you prefer to install prerequisites manually:
Nginx Installation
Ubuntu/Debian:
sudo apt-get update
sudo apt-get install -y nginxCentOS/RHEL:
sudo yum install -y nginxmacOS:
brew install nginxCertbot Installation
Ubuntu/Debian:
sudo apt-get update
sudo apt-get install -y certbot python3-certbot-nginxCentOS/RHEL:
sudo yum install -y certbot python3-certbot-nginxmacOS:
brew install certbotDocker (Optional)
If you plan to deploy Docker containers, install Docker:
Ubuntu/Debian:
sudo apt-get update
sudo apt-get install -y docker.io
sudo systemctl start docker
sudo systemctl enable dockermacOS:
brew install dockerOr download Docker Desktop from docker.com.
Post-Installation
After installation, you're ready to:
-
Initialize your first configuration:
suthep init -
Or continue to the Quick Start guide: See Quick Start Guide
Troubleshooting Installation
Command Not Found
If you get a "command not found" error:
-
Check Node.js installation:
node --version npm --version -
Verify global bin path:
npm config get prefix -
Add npm global bin to PATH (if needed):
export PATH="$PATH:$(npm config get prefix)/bin"
Permission Errors
If you encounter permission errors:
-
Use sudo for global installation:
sudo npm install -g suthep -
Or configure npm to use a different directory:
mkdir ~/.npm-global npm config set prefix '~/.npm-global' export PATH=~/.npm-global/bin:$PATH
Nginx/Certbot Installation Issues
If suthep setup fails:
-
Check your package manager:
- Ubuntu/Debian: Ensure
apt-getis available - CentOS/RHEL: Ensure
yumis available - macOS: Ensure Homebrew is installed
- Ubuntu/Debian: Ensure
-
Run setup with verbose output:
suthep setup --verbose -
Install prerequisites manually (see Manual Installation above)
Next Steps
Now that Suthep is installed:
- Quick Start Guide - Deploy your first service
- Configuration Guide - Learn about configuration options
Previous: Introduction | Next: Quick Start →