dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

feat: add CLI support for deployment and container logs (#2944)

Open Harikrishnan1367709 opened this issue 1 month ago • 0 comments

Adds REST API endpoints to view deployment logs and container logs via CLI.

Changes

  • GET /api/logs/deployment/:deploymentId - View deployment logs
  • GET /api/logs/container/:containerId - View container logs
  • ✅ Support for tail, follow, since parameters
  • ✅ Streaming support via Server-Sent Events
  • ✅ Local and remote (SSH) server support

Usage

Deployment logs

curl -H "X-API-Key: KEY" "http://localhost:3000/api/logs/deployment/DEPLOYMENT_ID?tail=100"

Container logs

curl -H "X-API-Key: KEY" "http://localhost:3000/api/logs/container/CONTAINER_ID?tail=50"Closes #2944

Screenshot 2025-11-13 at 6 53 09 PM Screenshot 2025-11-13 at 6 54 09 PM

fixes - #2944

Harikrishnan1367709 avatar Nov 13 '25 13:11 Harikrishnan1367709