Commit 2c8b276
Manus AI
feat: Add --host parameter support to login command
Added --host/-h option to the login command to support authentication
against self-hosted Fleetbase instances.
Features:
- Accepts full URL with protocol (http:// or https://)
- Auto-adds https:// if protocol is missing
- Constructs registry URL from host automatically
- Falls back to https://api.fleetbase.io if not specified
Usage:
flb login -u username -p password -e email@example.com
flb login -u username -p password -e email@example.com --host http://localhost:8000
flb login -u username -p password -e email@example.com --host myinstance.com
This completes the self-hosted authentication flow:
1. flb register --host <host>
2. flb verify -e <email> -c <code> --host <host>
3. flb login -u <username> -p <password> -e <email> --host <host>1 parent 26cdd4a commit 2c8b276
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | | - | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1208 | 1216 | | |
1209 | 1217 | | |
1210 | 1218 | | |
| |||
1391 | 1399 | | |
1392 | 1400 | | |
1393 | 1401 | | |
| 1402 | + | |
1394 | 1403 | | |
1395 | 1404 | | |
1396 | 1405 | | |
| |||
0 commit comments