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 deploy
Installation
Install Forge CLI globally using npm:
$ npm install -g forge-deploy-cli
Infrastructure Setup
Setup all required infrastructure components (requires sudo/admin privileges):
$ sudo forge infra --all
This 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 login
You'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.git
Or deploy from the current directory:
$ forge deploy
Management Commands
Manage your deployments with these commands:
forge status
Check 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 --ssl
Setup SSL certificates only
Base URL
All API requests should be made to:
https://api.forgecli.tech
Supported Frameworks
Forge automatically detects and deploys these frameworks: