Is your feature request related to a problem? Please describe.
Currently, the netbird-mgmt CLI tool offers limited functionality when it comes to automating the setup of a NetBird cluster. To enable a more streamlined and IaC-friendly approach, I would like to request additional options for the netbird-mgmt CLI.
Specifically, it would be great to have the ability to:
Create an account through the CLI.
Generate a setup key.
These features would significantly improve the ability to automate the setup of a NetBird cluster, particularly in scenarios where a management node and multiple router nodes need to be provisioned in a reproducible, automated manner. This would allow users to deploy a complete NetBird setup programmatically.
Describe the solution you'd like
Add commands to the CLI for creating a new account and a setup key. Proposed commands:
Create an account
This command would allow users to create a new account directly from the CLI, specifying a domain for the account.
# create a new account
netbird-mgmt account create --domain <domain>
Create a setup key
This command would allow users to generate setup keys with configurable options like expiration time, usage limits, and predefined keys for different purposes (e.g., server setup, admin access). The --key parameter would accept an existing key for generation.
# Create a reusable setup key for server setup with a 30-minute expiration and usage limit
netbird-mgmt setup-key create --name server-setup-key --expires 30m --type reusable --usage-limit <usage-limit> --key <key>
# Create a setup key for admin user with a 2-hour expiration
netbird-mgmt setup-key create --name admin-user-setup-key --expires 2h --key <key>
Is your feature request related to a problem? Please describe.
Currently, the
netbird-mgmt
CLI tool offers limited functionality when it comes to automating the setup of a NetBird cluster. To enable a more streamlined and IaC-friendly approach, I would like to request additional options for thenetbird-mgmt
CLI.Specifically, it would be great to have the ability to:
These features would significantly improve the ability to automate the setup of a NetBird cluster, particularly in scenarios where a management node and multiple router nodes need to be provisioned in a reproducible, automated manner. This would allow users to deploy a complete NetBird setup programmatically.
Describe the solution you'd like
Add commands to the CLI for creating a new account and a setup key. Proposed commands:
This command would allow users to create a new account directly from the CLI, specifying a domain for the account.
This command would allow users to generate setup keys with configurable options like expiration time, usage limits, and predefined keys for different purposes (e.g., server setup, admin access). The
--key
parameter would accept an existing key for generation.