[GH-ISSUE #1722] Add version subcommand to cli #1197

Open
opened 2026-05-07 01:00:45 +02:00 by BreizhHardware · 0 comments

Originally created by @Saucy9607 on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1722

💡 Idea

It's often useful to check the version of a program, and ntfy does support that to varying extents. For example, a relatively recently added /v1/version endpoint makes it easy to programmatically get the version of a server instance. However, it seems the only way to get the version from a client-use perspective is from the footer of the help text. Human-readable text is great for human interactions, but parsing it programmatically is brittle.

It is common for CLI programs to have a --version flag or version subcommand, and I would find it useful if ntfy followed a similar pattern.

💻 Target components

ntfy client/server

Originally created by @Saucy9607 on GitHub (Apr 29, 2026). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1722 <!-- Before you submit, consider asking on Discord/Matrix instead. You'll usually get an answer sooner, and there are more people there to help! - Discord: https://discord.gg/cT7ECsZj9w - Matrix: https://matrix.to/#/#ntfy:matrix.org / https://matrix.to/#/#ntfy-space:matrix.org --> :bulb: **Idea** <!-- Share your thoughts; try to be detailed if you can --> It's often useful to check the version of a program, and ntfy does support that to varying extents. For example, a relatively recently added `/v1/version` endpoint makes it easy to programmatically get the version of a server instance. However, it seems the only way to get the version from a client-use perspective is from the footer of the `help` text. Human-readable text is great for human interactions, but parsing it programmatically is brittle. It is common for CLI programs to have a `--version` flag or `version` subcommand, and I would find it useful if ntfy followed a similar pattern. :computer: **Target components** <!-- Where should this feature/enhancement be added? --> <!-- e.g. ntfy server, Android app, iOS app, web app --> ntfy client/server
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1197
No description provided.