[GH-ISSUE #5983] Netbird profile add ignores flags #12607

Open
opened 2026-08-05 02:06:16 -04:00 by saavagebueno · 2 comments
Owner

Originally created by @l-szczepanski-speednet on GitHub (Apr 24, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5983

Describe the problem

I tried to create new profile with specific management and admin url, but profile add command ignores global flags.

To Reproduce

Steps to reproduce the behavior:

  1. Run command netbird profile add test --management-url https://sefl-hosted.netbird:443 --admin-url https://sefl-hosted.netbird:443
  2. Inspect profile file - there will be a default api.netbird.io:443 host

Expected behavior

Command should create profile file with passed host url.

Are you using NetBird Cloud?

No, Self-Hosted

NetBird version

0.69.0

Is any other VPN software installed?

No

Debug output

Not needed in this case

Additional context

I would like to have a way to preconfigure Netbird for end users without forceing them to log in at random time (when the client is deployed)

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @l-szczepanski-speednet on GitHub (Apr 24, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5983 **Describe the problem** I tried to create new profile with specific management and admin url, but profile add command ignores global flags. **To Reproduce** Steps to reproduce the behavior: 1. Run command `netbird profile add test --management-url https://sefl-hosted.netbird:443 --admin-url https://sefl-hosted.netbird:443` 2. Inspect profile file - there will be a default `api.netbird.io:443` host **Expected behavior** Command should create profile file with passed host url. **Are you using NetBird Cloud?** No, Self-Hosted **NetBird version** `0.69.0` **Is any other VPN software installed?** No **Debug output** Not needed in this case **Additional context** I would like to have a way to preconfigure Netbird for end users without forceing them to log in at random time (when the client is deployed) **Have you tried these troubleshooting steps?** - [ ] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [ ] Restarted the NetBird client - [ ] Disabled other VPN software - [ ] Checked firewall settings
saavagebueno added the triage-needed label 2026-08-05 02:06:16 -04:00
Author
Owner

@MatusM26 commented on GitHub (Apr 28, 2026):

Can confirm this for version 0.70.0, netbird ignores flags on Windows and Linux.

<!-- gh-comment-id:4334690160 --> @MatusM26 commented on GitHub (Apr 28, 2026): Can confirm this for version 0.70.0, netbird ignores flags on Windows and Linux.
Author
Owner

@l-szczepanski-speednet commented on GitHub (May 7, 2026):

I created PR #6094 with working solution for this

<!-- gh-comment-id:4396057456 --> @l-szczepanski-speednet commented on GitHub (May 7, 2026): I created PR #6094 with working solution for this
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#12607