laravel/forge-cli
Command-line interface for Laravel Forge to provision and manage servers, deploy sites, and handle common tasks like SSL certificates, scheduled jobs, and queue workers—bringing Forge’s dashboard capabilities to your terminal.
laravel/forge-cli package is a command-line interface (CLI) for Laravel Forge, a server management and deployment tool. It aligns well with DevOps, infrastructure-as-code (IaC), and CI/CD pipelines where automated server provisioning, configuration, and deployment are critical.forge create).forge deploy).forge ssl:create)..env, queue workers, etc.).pdo_mysql, redis), but custom extensions may need manual setup.apt/yum installs or custom init scripts.| Step | Action | Dependencies |
|---|---|---|
| 1. Forge Account Setup | Create Forge account, link server providers (DO, Linode, etc.). | API keys, payment method. |
| 2. CLI Installation | composer require laravel/forge-cli; configure ~/.forge/config.json. |
Composer, PHP 8.x. |
| 3. Server Blueprint | Define server specs (PHP version, Nginx, database) via forge recipe. |
Forge dashboard or CLI blueprint files. |
| 4. Pilot Server | forge create --recipe=laravel (test in staging). |
Staging environment. |
| 5. Deployment Automation | Integrate forge deploy in CI/CD. |
Git repo, CI/CD pipeline. |
| 6. Monitoring & Alerts | Set up Forge alerts for server health. | Monitoring tools (e.g., Healthchecks.io). |
| 7. Full Migration | Migrate production servers to Forge CLI-managed instances. | Backup & rollback plan. |
forge server:upgrade.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Forge API Downtime | CLI commands fail; no server management. | Cache critical configs locally; use fallback scripts. |
| Server Provisioning Failure | forge create hangs or fails. |
Implement retry logic; monitor with forge server:status. |
| Deployment Rollback Ne |
How can I help you explore Laravel packages today?