This page provides solutions for common issues you might encounter when using gh-manager-cli.
- Symptom: "Authentication failed" or "Invalid token" error message
- Solution:
- Enter a valid Personal Access Token (PAT) with the appropriate scopes
- Recommended scope:
repofor full access - For public repos only,
public_repois sufficient - See Token & Security for detailed scope information
- Symptom: App asks for token on every launch
- Solution:
- Check file permissions on config directory
- Ensure the app has write access to your user config directory
- Try providing token via environment variable:
GITHUB_TOKEN=your_token npx gh-manager-cli
- Symptom: Cannot see or access organization repositories
- Solution:
- Ensure your token is authorized for the organization (check GitHub Settings > Applications)
- For SSO-enabled organizations, ensure your token is authorized for SSO
- Try adding the
read:orgscope to your token
- Symptom: "API rate limit exceeded" error message
- Solution:
- Wait for the reset time shown in the status bar
- Reduce navigation frequency
- Toggle fork tracking off (
Fkey) to reduce API usage - Use the cache inspection (
Ctrl+I) to verify caching is working
- Symptom: Rate limit decreases rapidly during normal usage
- Solution:
- Enable debug mode to monitor cache performance:
GH_MANAGER_DEBUG=1 npx gh-manager-cli - Disable fork tracking (
Fkey) to reduce API calls - Avoid frequent sorting changes which create new cache entries
- Increase cache TTL:
APOLLO_TTL_MS=3600000 npx gh-manager-cli(1 hour)
- Enable debug mode to monitor cache performance:
- Symptom: Repository list takes a long time to load
- Solution:
- Reduce page size:
REPOS_PER_FETCH=10 npx gh-manager-cli - Check network connection
- Verify Apollo cache is working with
Ctrl+I
- Reduce page size:
- Symptom: App becomes sluggish with large repository lists
- Solution:
- Reduce page size:
REPOS_PER_FETCH=10 npx gh-manager-cli - Clear cache files from your config directory
- Restart the application
- Reduce page size:
- Symptom: Text overlapping, misaligned columns, or visual glitches
- Solution:
- Try different display density settings (
Tkey) - Ensure terminal window is wide enough (minimum 80 columns recommended)
- Report rendering issues with terminal type and dimensions
- Try different display density settings (
- Symptom: Some keyboard shortcuts don't respond
- Solution:
- Check if you're in a modal or search mode (Esc to exit)
- Verify terminal is passing through all key combinations
- Some keys may be intercepted by terminal emulator or SSH client
- Symptom: "Network error" or "Connection failed" messages
- Solution:
- Check internet connectivity
- Verify firewall isn't blocking GitHub API access
- Press
Rto retry the connection - If behind a proxy, ensure environment variables are set correctly
- Symptom: Delete action fails with permission error
- Solution:
- Ensure your token has the
delete_reposcope - Verify you have admin rights on the repository
- For organization repos, check organization settings for deletion restrictions
- Ensure your token has the
- Symptom: Archive/unarchive action fails
- Solution:
- Ensure your token has the
reposcope - Verify you have admin or maintainer rights on the repository
- For organization repos, check if archiving is restricted
- Ensure your token has the
- Symptom: "Merge conflict" error when syncing fork
- Solution:
- This requires manual resolution
- Open the repository in browser (Enter/
O) - Create a pull request to resolve conflicts
- Consider using GitHub Desktop or local git for complex merges
For advanced troubleshooting, run with debug mode enabled:
GH_MANAGER_DEBUG=1 npx gh-manager-cliThis provides:
- Detailed error messages
- API performance metrics
- Cache hit/miss indicators
- Network status information
- Token & Security - Authentication details
- Usage - How to use the CLI
- Development - Technical details