Getting Started with Forge CLI
Quick Start
Deploy any application in under 60 seconds:
npm install -g forge-deploy-cli && sudo forge infra --all && forge login && forge deployInstallation
Install Forge CLI globally using npm:
$ npm install -g forge-deploy-cliInfrastructure Setup
Setup all required infrastructure components (requires sudo/admin privileges):
$ sudo forge infra --allThis command automatically installs and configures:
- Nginx: Reverse proxy with automatic configuration
- PM2: Process manager with auto-restart
- SSL Certificates: Automatic Let's Encrypt/Certbot setup
- Python & Node.js: Runtime dependencies for various frameworks
- Auto-restart service: Ensures deployments survive reboots
Authentication
Login to your Forge account to enable deployments:
$ forge loginYou'll be prompted to enter your email and password. The CLI will automatically store your API key.
Deploy Your First App
Deploy any Git repository with automatic framework detection:
$ forge deploy https://github.com/username/my-app.gitOr deploy from the current directory:
$ forge deployManagement Commands
Manage your deployments with these commands:
forge statusCheck all deployment status
forge logs [id]View deployment logs
forge pause [id]Pause a deployment
forge resume [id]Resume a deployment
forge stop [id]Stop a deployment
forge infra --sslSetup SSL certificates only
Base URL
All API requests should be made to:
https://api.forgecli.techSupported Frameworks
Forge automatically detects and deploys these frameworks: