Use when deploying or managing a Laravel application on Laravel Cloud. Trigger for Cloud deployments, applications, environments, databases, caches, object storage, queues, domains, secrets, compute, scheduled tasks, billing or usage, the `cloud` CLI, and troubleshooting Laravel Cloud deployments.
73
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Use the Laravel Cloud documentation for detailed and current feature behavior. Use the Cloud CLI for Cloud operations rather than guessing dashboard or API workflows. Install it in the project and invoke it as ./vendor/bin/cloud by default; use a globally installed cloud command only as a fallback.
composer install --no-dev && npm run build.php artisan migrate --force.php artisan queue:restart, php artisan horizon:terminate, php artisan optimize:clear, or php artisan storage:link to deploy commands. Cloud handles worker restarts and process management; deploy filesystem changes are not persistent.Storage::disk() with no arguments, such as Storage::disk()->put(...), so Laravel uses the environment's default disk. Do not pass a disk name for private/default storage. Attach a private Cloud bucket as the environment's default disk.Storage::disk('public')->put(...). Attach a second Cloud bucket configured as public and give it the public disk name.public.visibility: 'public' configuration for Cloud Object Storage. R2 does not support per-object ACL headers and rejects those requests; select the bucket visibility when creating the bucket.Storage::temporaryUrl(...). Public buckets expose all objects through their Cloud-provided public URL.composer require league/flysystem-aws-s3-v3 "^3.0" --with-all-dependencies.aws/aws-sdk-php; check the current Cloud documentation before changing dependencies.php artisan schedule:run every minute. When an environment has multiple replicas, use Laravel's onOneServer for tasks that must run once.laravel.cloud domain after its first successful deployment. Cloud automatically verifies custom domains and provisions SSL after the required DNS records are configured.composer require --dev laravel/cloud-cli
./vendor/bin/cloud auth -nIf a project-local installation is not available, install the CLI globally with composer global require laravel/cloud-cli and invoke it as cloud.
Where browser authentication is unavailable, set LARAVEL_CLOUD_TOKEN. It overrides any saved token and writes nothing to disk.
./vendor/bin/cloud <command> -h; never assume or hardcode CLI options. Use cloud <command> -h only when falling back to the global installation../vendor/bin/cloud for all commands by default. Fall back to cloud only when the project-local installation is unavailable.-n to Cloud CLI commands. Use --json -n for read and create operations, --json -n --force for updates, and -n --force for deletes. Never use -q or --silent.cloud -h to discover additional commands.cloud ship -h, then run cloud ship -n with all required values.cloud deploy {application} {environment} -n --open, then run cloud deploy:monitor -n.cloud deploy:monitor -n and report failures before attempting a fix.cloud environment:variables -n --force for environment variables and cloud command:run {environment} --cmd='...' -n for non-interactive remote commands.--root-directory=<subdirectory> when deploying an application from a monorepo subdirectory.cloud repo:config {application} -n to set repository-local application and organization defaults. Pass --organization=<id|name|slug> when the user has multiple organizations.cloud tinker {environment} --code='...' --timeout=60 -n; the code must explicitly output values with echo, dump, or similar.cloud command:run {environment} --cmd='...' -n. Use cloud command:list {environment} --json -n and cloud command:get {commandId} --json -n to inspect command history.cloud usage --json -n for current usage. Add --period=previous for the prior billing period, --environment=<id> to filter, and --detailed for per-resource breakdowns. Monetary values are returned in cents.cloud deploy:monitor -n.7c6ee72
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.