Skip to content

feat: add deployment:logs command#71

Open
JoshSalway wants to merge 1 commit intolaravel:mainfrom
JoshSalway:feature/deployment-logs
Open

feat: add deployment:logs command#71
JoshSalway wants to merge 1 commit intolaravel:mainfrom
JoshSalway:feature/deployment-logs

Conversation

@JoshSalway
Copy link

Summary

  • Adds a new deployment:logs CLI command that fetches and displays build and deploy logs for a specific deployment via the GET /deployments/{deployment}/logs API endpoint
  • Supports deployment ID argument with automatic resolution when omitted, and --json flag for machine-readable output
  • Includes request class, resource method, and 5 feature tests covering ID lookup, resolver fallback, JSON output, and unavailable log phases

Closes #66
Related: #69

Test plan

  • ./vendor/bin/pest -- all 36 tests pass
  • ./vendor/bin/phpstan analyse -- no errors
  • Manual test: php cloud deployment:logs <deployment-id> displays build/deploy steps with output
  • Manual test: php cloud deployment:logs <deployment-id> --json returns full JSON response
  • Manual test: php cloud deployment:logs (no ID) triggers interactive deployment resolution

🤖 Generated with Claude Code

Adds a new `deployment:logs` CLI command that fetches and displays
build and deploy logs for a given deployment. Supports deployment ID
resolution, --json output, and gracefully handles unavailable log phases.

Closes laravel#66

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JoshSalway JoshSalway changed the title Add deployment:logs command feat: add deployment:logs command Mar 16, 2026
JoshSalway added a commit to JoshSalway/cloud-cli that referenced this pull request Mar 16, 2026
Documents 11 new commands added by our PRs:
- environment:start, environment:stop (laravel#70)
- environment:metrics (laravel#72)
- deployment:logs (laravel#71)
- cache:metrics, database-cluster:metrics (laravel#72)
- websocket-cluster:metrics, websocket-application:metrics (laravel#72)
- env:pull, env:push (laravel#81)
- use (laravel#80)

Also updated environment:variables description to include 'delete' action.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing command: deployment:logs — view build/deploy output

1 participant