baseguard connect
Connect to the network
The connect command joins your device to the Baseguard network.
First time? Just run
baseguard connect— it automatically handles login if you're not authenticated yet.
Usage
baseguard connect [options]Options
| Option | Description |
|---|---|
--org-id <id> | Connect to a specific organization |
Examples
Basic Connection
baseguard connectOn success, the command completes without output. Run baseguard status to verify.
First-Time Connection
If you're not authenticated, connect automatically starts the login flow. You'll see an authorization URL — open it in your browser to approve the device.
Connect to Specific Organization
If you belong to multiple organizations:
baseguard connect --org-id org_abc123def456ghAutomated/Headless Connection
For scripts and CI/CD, use an auth key to skip interactive login:
baseguard login --auth-key "$BASEGUARD_AUTH_KEY"
baseguard connectTroubleshooting
See Troubleshooting for solutions including connection timeouts and daemon issues.
See Also
disconnect— Disconnect from the networkstatus— View connection status and peerslogin— Manual authentication (usually not needed)switch-organization— Change active organization