[GH-ISSUE #6037] Modify client profiles from CLI #12727

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

Originally created by @everhardt on GitHub (Apr 30, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/6037

Is your feature request related to a problem? Please describe.
When using netbird in a managed environment, it would be great to configure a profile using the netbird client CLI.

It would combine perfectly with the existing CLI command to lockdown a Netbird client (sudo netbird service reconfigure --disable-update-settings --disable-profiles) afterwards.

Right now I can only lock it down after the profile has been configured using the GUI or using netbird up/ netbird login, which doesn't work well for automated provisioning in a managed environment.

Describe the solution you'd like
A CLI command netbird profile update [name] that would take all the flags available to netbird up, in order to do eg.

netbird profile update [name] --block-inbound 

Describe alternatives you've considered
Scripting the creation or updating of the profile json (eg. /var/lib/netbird/default.json). It is not clear to me though how to create a consistent json profile from scratch without using the CLI.

Originally created by @everhardt on GitHub (Apr 30, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/6037 **Is your feature request related to a problem? Please describe.** When using netbird in a managed environment, it would be great to configure a profile using the netbird client CLI. It would combine perfectly with the existing CLI command to lockdown a Netbird client (`sudo netbird service reconfigure --disable-update-settings --disable-profiles`) afterwards. Right now I can only lock it down after the profile has been configured using the GUI or using `netbird up`/ `netbird login`, which doesn't work well for automated provisioning in a managed environment. **Describe the solution you'd like** A CLI command `netbird profile update [name]` that would take [all the flags available to `netbird up`](https://docs.netbird.io/get-started/cli#flags), in order to do eg. ```sh netbird profile update [name] --block-inbound ``` **Describe alternatives you've considered** Scripting the creation or updating of the profile json (eg. /var/lib/netbird/default.json). It is not clear to me though how to create a consistent json profile from scratch without using the CLI.
saavagebueno added the feature-request label 2026-08-05 02:06:33 -04:00
Author
Owner

@sarvajit-s commented on GitHub (May 19, 2026):

Yes, I've been facing the same issue. I am trying to setup netbird installation as part of MDM auto rollout for devices in our organization. Its a self hosted setup. All I want in the setup is to provide a CLI command during installation or post installation to just configure the management-url. How do we do that currently?

<!-- gh-comment-id:4485559305 --> @sarvajit-s commented on GitHub (May 19, 2026): Yes, I've been facing the same issue. I am trying to setup netbird installation as part of MDM auto rollout for devices in our organization. Its a self hosted setup. All I want in the setup is to provide a CLI command during installation or post installation to just configure the management-url. How do we do that currently?
Author
Owner

@CoderSufiyan commented on GitHub (Jul 12, 2026):

Would the team accept a PR for this? I am thinking of adding a netbird profile update [name] subcommand that takes the same flags as netbird up (management-url, setup-key, etc.) and calls SetConfig on the daemon. Happy to implement if this direction works for you.

<!-- gh-comment-id:4951987450 --> @CoderSufiyan commented on GitHub (Jul 12, 2026): Would the team accept a PR for this? I am thinking of adding a `netbird profile update [name]` subcommand that takes the same flags as `netbird up` (management-url, setup-key, etc.) and calls SetConfig on the daemon. Happy to implement if this direction works for you.
Sign in to join this conversation.
No Label feature-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#12727