跳到正文
TakoAPI
返回技能列表

laravel-cloud

由 florianbeer 提供

Web & Frontend Development
600下载量由 clawskills.sh 提供
4星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage Laravel Cloud infrastructure via API — apps, environments, deployments, databases, caches, domains, scaling.

描述

该技能的功能

Wraps the Laravel Cloud REST API in a single bash script. Covers apps, environments, deployments, databases, caches, domains, WebSockets, object storage, and more. All operations map to simple CLI commands.

Replaces manual dashboard clicks with scriptable commands that fit naturally into automation workflows and CI/CD pipelines.

何时使用

  • Triggering a production deployment from a CI pipeline
  • Scaling environment instances after a traffic spike
  • Rotating environment variables across staging and production
  • Provisioning a new MySQL database cluster for a project
  • Streaming logs from a running environment during debugging

示例工作流

输入

User asks: deploy my Laravel app to production and run migrations

智能体
  1. 1

    Run laravel-cloud apps list to find the app ID

  2. 2

    Run laravel-cloud envs list <app-id> to identify the production environment ID

  3. 3

    Run laravel-cloud deployments initiate <env-id> to trigger the deployment

  4. 4

    Run laravel-cloud commands run <env-id> --command "php artisan migrate --force" to execute migrations

  5. 5

    Run laravel-cloud envs logs <env-id> to confirm deployment output

输出

Production environment redeployed and database migrations applied

前置要求

  • LARAVEL_CLOUD_API_TOKEN environment variable — generate at cloud.laravel.com under Settings → API Tokens

安装

clawhub install florianbeer/laravel-cloud

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

链接