laravel/cloud-cli
Laravel Zero CLI to deploy and manage apps on Laravel Cloud. Authenticate via OAuth, link repos, ship and deploy from the terminal, and manage environments, databases, caches, object storage, and domains, with optional JSON output and shell completions.
Run cloud auth to authenticate via OAuth (opens browser). Configure your local repo with cloud repo:config to set default application/environment. Deploy immediately with cloud ship (guided) or cloud deploy (existing app). Verify with cloud dashboard to open the Cloud UI.
First use case:
cd ~/my-laravel-app
cloud auth
cloud repo:config
cloud ship
cloud deploy:monitor in CI to track deployment status.cloud environment:variables set --file=.env.production.cloud deployment:list and revert via Cloud UI.cloud application:create + cloud environment:create in a shell script.#!/bin/bash
cloud application:create --name=my-app --region=us-east
cloud environment:create --app=my-app --name=production
cloud database-cluster:create --app=my-app --name=prod-db --size=small
cloud database:open (opens a tunnel).cloud cache:create --type=redis --size=small.cloud usage --detailed weekly to track spend.cloud usage --period=previous to compare month-over-month costs.cloud environment:create --app=my-app --name=staging.cloud deploy --environment=staging.cloud auth:token to generate a machine token (store in secrets).rm ~/.config/cloud/config.json.--app/--environment flags to bypass repo defaults.cloud repo:config in each project root.--json output (security).--file=.env to import variables.cloud deploy:monitor requires a deployment ID (get via cloud deployment:list).cloud command:run --command="php artisan down" to debug.cloud database-restore:create --snapshot=my-snapshot --database=my-db.cloud database-snapshot:delete.cloud bucket-key:create --bucket=my-bucket --name=new-key.cloud websocket-cluster:create --size=small.cloud websocket-application:create --cluster=my-cluster.cloud command:run --command="tail -f storage/logs/laravel.log".cloud command:run --command="php artisan schedule:run" --schedule="* * * * *".-v to any command (e.g., cloud deploy -v).~/.config/cloud/config.json for token expiry.handle() method in src/Commands/.cloud command:run to trigger post-deploy scripts (e.g., migrations).--json for scripting (e.g., cloud environment:list --json > envs.json).cloud application:list calls in scripts; cache results.cloud repo:config: Leads to manual --app/--environment flags.cloud auth if commands fail with 401.cloud database-cluster:create uses the same region as your app.cloud domain:verify may take time; check Cloud UI for status.
```markdown
---
How can I help you explore Laravel packages today?