[GH-ISSUE #1483] CLI: allow setting default-host via flag and environment variable #1046

Open
opened 2026-05-07 00:29:50 +02:00 by BreizhHardware · 0 comments

Originally created by @DerRockWolf on GitHub (Nov 8, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1483

💡 Idea

As nearly all ntfy server commands (serve, token, user, ...) support specifying various settings via flags and environment variables I would love to see the same for the "client" commands (sub, pub).

  • The client default-host should also support being set via flag and environment variable

While looking around I've also noticed that the for ntfy pub NTFY_CONFIG can be used to point to a different config file, but ntfy sub doesn't support the NTFY_CONFIG environment variable.

💻 Target components

ntfy CLI

Originally created by @DerRockWolf on GitHub (Nov 8, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1483 <!-- 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 --> As nearly all ntfy server commands (`serve`, `token`, `user`, ...) support specifying various settings via flags and environment variables I would love to see the same for the "client" commands (`sub`, `pub`). - The client `default-host` should also support being set via flag and environment variable While looking around I've also noticed that the for `ntfy pub` `NTFY_CONFIG` can be used to point to a different config file, but `ntfy sub` doesn't support the `NTFY_CONFIG` environment variable. :computer: **Target components** <!-- Where should this feature/enhancement be added? --> <!-- e.g. ntfy server, Android app, iOS app, web app --> ntfy CLI
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#1046
No description provided.