Priority: P2 (Medium)
Diagnostic command to verify setup and troubleshoot issues.
Proposed Command
$ partiful doctor
Partiful CLI Doctor
====================
Auth Configuration
✓ Config file exists: ~/.config/partiful/auth.json
✓ User ID: eBhI7Kx0hDTVW56uZHO519Ifm452
✓ Phone: +1206XXXXX77
✓ Refresh token: present (not expired)
✓ Access token: valid (expires in 45 min)
API Connectivity
✓ Can reach api.partiful.com
✓ Can reach securetoken.googleapis.com
✓ Token refresh working
Permissions
✓ Can list events
✓ Can create events
Environment
✓ Node.js: v22.22.0
✓ CLI version: 1.0.0
All checks passed! ✓
Checks to Perform
- Config file exists and is valid JSON
- Required fields present (apiKey, refreshToken, userId)
- Token refresh succeeds
- API endpoints reachable
- Basic API call succeeds (list events)
Error Scenarios
$ partiful doctor
✗ Access token expired and refresh failed
Error: Token has been revoked
Fix: Run `partiful auth login` to re-authenticate
Acceptance Criteria
Priority: P2 (Medium)
Diagnostic command to verify setup and troubleshoot issues.
Proposed Command
Checks to Perform
Error Scenarios
$ partiful doctor ✗ Access token expired and refresh failed Error: Token has been revoked Fix: Run `partiful auth login` to re-authenticateAcceptance Criteria