Manual Enrollment (Headless Servers)
If you are on a headless server without a browser, you must perform a “token-based” enrollment:
- Generate Token: On a device with a browser, go to
https://<your-team-name>.cloudflareaccess.com/warpand authenticate. - Extract Token: After successful login, you will see an “Open Cloudflare WARP” button. Right-click it, select “Inspect,” and copy the URL from the
location.hreforonClickattribute (e.g.,com.cloudflare.warp://.../auth?token=...). - Register on Server: Run the following on your headless machine:bash
warp-cli registration token "com.cloudflare.warp://<your-team-name>.cloudflareaccess.com/auth?token=<YOUR_TOKEN>"Note: The older commandteams-enroll-tokenis being deprecated in favor ofregistration tokenorregistration initialize-token-callback.
3. Management Commands
| Command | Description |
|---|---|
warp-cli registration show | Displays status, account type, and device ID. |
warp-cli registration delete | Removes the current registration. |
warp-cli connect | Connects the client to the Zero Trust network. |
近期评论