Documentation Index
Fetch the complete documentation index at: https://mintlify.com/netbirdio/netbird/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thenetbird service command manages the NetBird daemon service on your system. The daemon runs in the background and maintains your NetBird connections.
Description
The NetBird daemon service:- Runs in the background as a system service
- Maintains persistent connections to the NetBird network
- Automatically reconnects after network changes or system restarts
- Manages WireGuard interface and routing
- Handles peer connections and authentication
- Linux: systemd, SysV init, or Upstart
- macOS: launchd
- Windows: Windows Service Manager
- FreeBSD: rc.d
Subcommands
install- Install NetBird as a system serviceuninstall- Uninstall NetBird service from the systemstart- Start the NetBird servicestop- Stop the NetBird servicerestart- Restart the NetBird servicestatus- Show NetBird service statusrun- Run NetBird as a service (used by service manager)reconfigure- Reconfigure NetBird service with new settings
Service Flags
Disables profiles featureIf enabled, the client will not be able to change or edit any profile.To persist this setting:
Disables update settings featureIf enabled, the client will not be able to change or edit any settings.To persist this setting:
install
Install NetBird as a system service.Flags
Sets extra environment variables for the serviceYou can specify comma-separated list of KEY=VALUE pairs.Examples:
--service-env NB_LOG_LEVEL=debug--service-env NB_LOG_LEVEL=debug,CUSTOM_VAR=value
Examples
Basic installation:What It Does
-
Creates service configuration:
- Linux (systemd):
/etc/systemd/system/netbird.service - macOS (launchd):
/Library/LaunchDaemons/io.netbird.client.plist - Windows: Registers Windows Service
- FreeBSD (rc.d):
/usr/local/etc/rc.d/netbird
- Linux (systemd):
- Sets service to start on boot
- Configures service user and permissions
- Sets environment variables
After installation, you need to start the service:
uninstall
Uninstall NetBird service from the system.Examples
Uninstall service:What It Does
- Stops the service if running
- Removes service configuration files
- Disables automatic startup
- Does NOT remove:
- Configuration files (
/etc/netbird/config.json) - Log files
- NetBird binary
- Configuration files (
start
Start the NetBird service.Examples
Start service:Behavior
- Starts the NetBird daemon
- If auto-connect is enabled (default), automatically runs
netbird up - Service continues running in background
- Survives terminal/SSH session closure
stop
Stop the NetBird service.Examples
Stop service:Behavior
- Disconnects from NetBird network
- Stops the daemon process
- Does not uninstall the service
- Service will not auto-start on reboot if stopped manually (on some systems)
restart
Restart the NetBird service.Examples
Restart service:Behavior
- Stops the service gracefully
- Disconnects all peers
- Starts the service again
- Re-establishes connections
status
Show NetBird service status.Examples
Check service status:Status Information
- Loaded: Service configuration loaded
- Active: Current running state
- Enabled: Will start on boot
- PID: Process ID
- Uptime: How long service has been running
- Memory: Memory usage
run
Run NetBird as a service. This command is used by the service manager and should not be called directly.reconfigure
Reconfigure NetBird service with new settings without manual uninstall/install.Flags
Same flags asinstall command:
--service-env--disable-profiles--disable-update-settings
Examples
Update environment variables:Behavior
- Stops the service if running
- Updates service configuration
- Restarts the service if it was running
Complete Setup Example
Initial Installation
With Custom Configuration
Service Environment Variables
Common environment variables to set via--service-env:
NetBird Configuration
NB_CONFIG- Configuration file pathNB_LOG_LEVEL- Log level (trace, debug, info, warn, error)NB_LOG_FILE- Log file pathNB_MANAGEMENT_URL- Management server URLNB_ADMIN_URL- Admin panel URLNB_NO_BROWSER- Disable browser for SSO (true/false)
Example
Platform-Specific Details
Linux (systemd)
Service file location:macOS (launchd)
Service file location:Windows
Service name:Netbird
Manual service management (PowerShell):
Troubleshooting
Service Won’t Start
Check service status:Service Starts But Can’t Connect
Check if service is running:Permission Denied
Service commands typically require root/administrator privileges:Auto-Start on Boot
The service is configured to start automatically on boot after installation.Disable Auto-Start
Linux (systemd):Re-enable Auto-Start
Linux (systemd):See Also
- netbird up - Connect to network
- netbird down - Disconnect from network
- netbird status - Check connection status
- Installation Guide