Add `app logs` command for viewing application logs
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, typescript
Research direction
Start at the existing app command entry point and inspect the /docker-container-logs WebSocket endpoint, including the Swarm and native-container behavior described here. Done means app logs supports the listed selection, filtering, follow, and identifier flags, with the SSH-based fallback for Dokploy Cloud instances.
Written by the indexing model from the issue text.
Description
It would be useful to have a CLI command for viewing application logs directly from the terminal, similar to docker service logs.
Proposed feature
A new dokploy app logs command that supports:
- Fetching recent logs with configurable
--tailcount - Live streaming with
--follow(-f) - Time-based filtering with
--since(e.g.30m,1h,2d,all) - Keyword filtering with
--search - Non-interactive usage via
--applicationId,--projectId,--environmentIdflags - Interactive project/environment/application selection when flags are omitted
Implementation notes
- Uses the existing
/docker-container-logsWebSocket endpoint for log streaming - Tries Docker Swarm mode first, falls back to native containers
- For Dokploy Cloud instances where WebSocket is unavailable, falls back to SSH-based
docker service logs
Example usage
$ dokploy app logs # interactive selection
$ dokploy app logs -a myAppId -f # stream logs
$ dokploy app logs -a myAppId --since 1h # logs from last hour
$ dokploy app logs -a myAppId --search error # filter by keyword
- Dominant language
- TypeScript
- Stars
- 152
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Dokploy/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 62/100
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100