跳到正文
TakoAPI
返回技能列表

laravel-forge

由 florianbeer 提供

DevOps & Cloud
361下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage Laravel Forge servers, sites, deployments, databases, integrations, and more via the Forge API.

描述

该技能的功能

A bash script wrapper for the Laravel Forge API covering servers, sites, deployments, databases, PHP management, and integrations. Commands are scoped by organization, server, or site depending on the resource.

Lets you manage the full Forge lifecycle from the command line without opening the dashboard, making it scriptable in CI pipelines or agent workflows.

何时使用

  • Deploy a Laravel app to a new DigitalOcean server
  • Run database migrations on a production site
  • Rotate firewall rules before a security audit
  • Set up automated daily database backups to S3
  • Install and configure Laravel Horizon on a live site

示例工作流

输入

User asks: deploy the latest code to site 67890 on server 12345 and run migrations

智能体
  1. 1

    Run laravel-forge deployments deploy 12345 67890 to trigger deployment

  2. 2

    Poll laravel-forge deployments list 12345 67890 until the latest entry shows success

  3. 3

    Run laravel-forge commands run 12345 67890 --command 'php artisan migrate --force'

  4. 4

    Fetch output with laravel-forge commands output 12345 67890 <command-id>

输出

Deployment complete and migrations applied; command output confirms no errors

前置要求

  • LARAVEL_FORGE_API_TOKEN environment variable (generate at forge.laravel.com → Profile → API)
  • Laravel Forge account

安装

clawhub install florianbeer/laravel-forge

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接