PAM Cloud & Forge
pushinbr/pam-laravel gives you one command surface for remote environments.
A target is an environment name such as production or staging; each
target has a provider:
| Value | Provider | Supported actions |
|---|---|---|
1 |
PAM Cloud | deploy, rollback, status, logs, top, workers, queues, scheduler, scale |
2 |
Laravel Forge | deploy (through the site’s deployment webhook) |
Providers are stored as integers in configuration, so they never depend on string spelling.
Configuring PAM Cloud
Section titled “Configuring PAM Cloud”PAM_CLOUD_URL=https://cloud.example.comPAM_CLOUD_PROJECT=example-appPAM_CLOUD_TOKEN=your-api-tokenPAM_REMOTE_PRODUCTION_PROVIDER=1Requests go to:
{PAM_CLOUD_URL}/v1/projects/{project}/environments/{target}/{action}with a bearer token. Read actions (status, logs, top, workers, queues,
scheduler) use GET; deploy, rollback, and scale use POST with a JSON
body. The action path segments are deployments, rollbacks, status,
logs, top, workers, queues, scheduler, and scale.
Operating an Environment
Section titled “Operating an Environment”pam artisan pam:deploy productionpam artisan pam:deploy production --release=2026.12.02pam artisan pam:deploy production --rollback
pam artisan pam:remote status productionpam artisan pam:remote logs production --lines=200pam artisan pam:remote top productionpam artisan pam:remote workers productionpam artisan pam:remote queues productionpam artisan pam:remote scheduler productionpam artisan pam:remote scale production --process=queue --instances=8pam artisan pam:remote rollback production--linesis clamped to1..10000(default200).scalerequires--process(matching^[a-z][a-z0-9_-]*$) and--instances=1..128.- Target names must match
^[a-z][a-z0-9_-]{0,62}$;productionandstagingare preconfigured, and you can add more inconfig/pam.php. - The response is printed as JSON.
Adding a Target
Section titled “Adding a Target”'remote' => [ // ... 'targets' => [ 'production' => [ 'provider' => (int) env('PAM_REMOTE_PRODUCTION_PROVIDER', 1), 'webhook' => env('PAM_FORGE_PRODUCTION_WEBHOOK'), ], 'eu-production' => [ 'provider' => 1, 'webhook' => null, ], ],],pam artisan pam:remote status eu-productionLaravel Forge
Section titled “Laravel Forge”Forge targets trigger the site’s deployment webhook:
PAM_REMOTE_PRODUCTION_PROVIDER=2PAM_FORGE_PRODUCTION_WEBHOOK=https://forge.laravel.com/servers/123/sites/456/deploy/http?token=...pam artisan pam:deploy productionAny other action against a Forge target fails with “Forge webhook targets support deploy.” Use Forge’s own dashboard, or PAM Cloud, for rollbacks, logs, and scaling.
Configure the Forge site itself (daemons, Nginx proxy, deploy script) as shown in Deploying Laravel.
Security
Section titled “Security”- Remote endpoints must use HTTPS.
PAM_REMOTE_ALLOW_HTTP=trueexists for local testing only. - Requests time out after
PAM_REMOTE_TIMEOUTseconds (default15, max120). - Keep
PAM_CLOUD_TOKENand Forge webhook URLs in a secret store; a Forge webhook URL is itself a credential. - Give CI only the token it needs, and keep read-only operations separate from deploy, rollback, and scale.
- If you expose these operations to AI tools, read MCP Automation first: mutations are disabled there by default.