{"id":41009415,"url":"https://github.com/smartlegionlab/smart-repository-manager-cli","last_synced_at":"2026-02-10T15:01:13.979Z","repository":{"id":333853938,"uuid":"1123472452","full_name":"smartlegionlab/smart-repository-manager-cli","owner":"smartlegionlab","description":"A comprehensive command-line tool for managing GitHub repositories with advanced synchronization, SSH configuration management, and intelligent local repository management.","archived":false,"fork":false,"pushed_at":"2026-01-22T16:42:51.000Z","size":282,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-22T21:44:13.942Z","etag":null,"topics":["alexander-suvorov","github","github-api","github-repository-manager","python-cli-app","smart-repository-manager","smartlegionlab"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartlegionlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-27T00:16:06.000Z","updated_at":"2026-01-22T16:42:56.000Z","dependencies_parsed_at":"2026-01-21T23:00:39.368Z","dependency_job_id":null,"html_url":"https://github.com/smartlegionlab/smart-repository-manager-cli","commit_stats":null,"previous_names":["smartlegionlab/smart-repository-manager-cli"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/smartlegionlab/smart-repository-manager-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-repository-manager-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-repository-manager-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-repository-manager-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-repository-manager-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartlegionlab","download_url":"https://codeload.github.com/smartlegionlab/smart-repository-manager-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-repository-manager-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29303324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T14:34:17.295Z","status":"ssl_error","status_checked_at":"2026-02-10T14:33:22.845Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alexander-suvorov","github","github-api","github-repository-manager","python-cli-app","smart-repository-manager","smartlegionlab"],"created_at":"2026-01-22T09:01:48.004Z","updated_at":"2026-02-10T15:01:12.531Z","avatar_url":"https://github.com/smartlegionlab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Repository Manager CLI \u003csup\u003ev0.1.2\u003c/sup\u003e\n\nA comprehensive command-line tool for managing GitHub repositories with advanced synchronization, SSH configuration management, and intelligent local repository management.\n\n---\n\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/smartlegionlab/smart-repository-manager-cli)](https://github.com/smartlegionlab/smart-repository-manager-cli/)\n![GitHub top language](https://img.shields.io/github/languages/top/smartlegionlab/smart-repository-manager-cli)\n[![GitHub](https://img.shields.io/github/license/smartlegionlab/smart-repository-manager-cli)](https://github.com/smartlegionlab/smart-repository-manager-cli/blob/master/LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/smartlegionlab/smart-repository-manager-cli?style=social)](https://github.com/smartlegionlab/smart-repository-manager-cli/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/smartlegionlab/smart-repository-manager-cli?style=social)](https://github.com/smartlegionlab/smart-repository-manager-cli/network/members)\n\n---\n## 🚀 Overview\n\nSmart Repository Manager CLI is a powerful tool that helps you:\n- Manage GitHub repositories locally with intelligent synchronization\n- Configure and validate SSH for secure Git operations\n- Monitor repository health and status\n- Perform batch operations on multiple repositories\n- Maintain organized local storage structure\n\n---\n\n## 📦 Core Features\n\n### 1. **System Check \u0026 Configuration**\n- **Full System Checkup**: Comprehensive 8-step verification process\n- **Directory Structure Management**: Automatic creation of organized user directories\n- **Configuration Management**: Persistent user and token storage\n- **Network Validation**: Internet connectivity and DNS resolution checks\n\n### 2. **GitHub Integration**\n- **Token Management**: Secure storage and validation of GitHub Personal Access Tokens\n- **User Authentication**: Multi-user support with active user switching\n- **Repository Discovery**: Fetch all user repositories (public, private, forked, archived)\n- **API Rate Limit Monitoring**: Real-time GitHub API usage tracking\n\n### 3. **SSH Configuration \u0026 Management**\n- **SSH Validation**: Comprehensive SSH setup verification\n- **Key Generation**: Support for multiple key types (ED25519, RSA, ECDSA, DSA)\n- **Configuration Management**: Automatic SSH config creation and validation\n- **Connection Testing**: Verify SSH connectivity to GitHub\n- **Permission Fixing**: Automatic repair of SSH file permissions\n\n### 4. **Repository Management**\n- **Repository Listing**: View all repositories with filtering options\n- **Search Functionality**: Find repositories by name\n- **Language Statistics**: Analyze repository language distribution\n- **Health Checking**: Verify local repository integrity\n- **Storage Management**: Monitor and manage local repository storage\n\n### 5. **Intelligent Synchronization**\n- **Smart Sync**: Automatic detection of needed operations (clone/update/repair)\n- **Batch Operations**: Process multiple repositories simultaneously\n- **Update Detection**: Identify repositories needing updates\n- **Auto-Repair**: Automatic fixing of broken repositories\n- **Progress Tracking**: Real-time sync progress and statistics\n\n### 6. **Local Storage Management**\n- **Organized Structure**: Automatic directory organization by user\n- **Size Monitoring**: Track storage usage\n- **Cleanup Tools**: Remove individual or all local repositories\n- **Temporary File Management**: Automatic cleanup of temporary files\n\n---\n\n## 🛠️ Installation\n\n### Prerequisites\n- Python 3.8+\n- Git installed and configured\n- GitHub Personal Access Token (with repo scope)\n\n### Setup\n```bash\n# Clone the repository\ngit clone https://github.com/smartlegionlab/smart_repository_manager_cli.git\n\n# Install dependencies\npip install -r requirements.txt\n\n# Run the CLI\npython app.py\n```\n\n---\n\n## 📋 Usage Guide\n\n### First Run\n1. **Initial Checkup**: The tool automatically runs a full system check\n2. **Token Setup**: Enter your GitHub Personal Access Token when prompted\n3. **SSH Configuration**: Follow prompts to set up SSH if not configured\n\n### Main Menu Options\n\n#### 1. **User Information**\n- View GitHub profile details\n- See repository statistics\n- Check account creation date\n\n#### 2. **Token Information**\n- View token scopes and limits\n- Monitor API rate limits\n- Check token creation date\n\n#### 3. **Repository Management**\n- List all repositories with status indicators\n- Search for specific repositories\n- View language statistics\n- Check individual repository status\n- Run repository health checks\n\n#### 4. **Synchronization**\n- **Sync All**: Clone missing and update existing repositories\n- **Update Needed Only**: Only update repositories with new commits\n- **Clone Missing Only**: Only clone repositories not present locally\n- **Sync with Repair**: Fix broken repositories while syncing\n\n#### 5. **SSH Configuration**\n- Check SSH setup status\n- Generate new SSH keys\n- View existing SSH keys\n- Fix SSH permissions\n- Add GitHub to known_hosts\n- Create SSH configuration\n- Test SSH connection\n- View detailed SSH information\n\n#### 6. **Storage Management**\n- View storage usage statistics\n- Delete individual repositories\n- Clear all local repositories\n- Check storage information\n\n#### 7. **System Information**\n- View application configuration\n- Check system status\n- Review repository statistics\n- Monitor SSH status\n\n#### 8. **Run Checkup**\n- Perform complete system verification\n- Identify and fix issues\n- Generate detailed logs\n\n#### 9. **Clean Temporary Files**\n- Remove temporary files\n- Free up disk space\n\n---\n\n## 🔧 Configuration\n\n### Directory Structure\n```\n~/smart_repo_manager/\n├── config.json              # Application configuration\n├── username/                # User-specific directories\n│   ├── repositories/       # Local repository clones\n│   ├── archives/          # Backup archives\n│   ├── logs/             # Operation logs\n│   ├── backups/          # Manual backups\n│   └── temp/             # Temporary files (auto-cleaned)\n└── checkup_results_*.json  # Checkup result logs\n```\n\n### Environment Setup\n1. **GitHub Token**: Create a token with `repo` scope at https://github.com/settings/tokens\n2. **SSH Keys**: Generate SSH keys if not already present\n3. **Git Configuration**: Ensure `user.name` and `user.email` are set globally\n\n---\n\n## ⚙️ Technical Details\n\n### Core Components\n- **Models**: Data structures for users, repositories, tokens, and SSH configurations\n- **Services**: Business logic for GitHub, Git, SSH, network, and sync operations\n- **CLI Interface**: User-friendly command-line interface with menus and prompts\n- **Validation**: Comprehensive input validation and error handling\n\n### Error Handling\n- Automatic retry mechanisms for failed operations\n- Detailed error logging and reporting\n- Graceful degradation when features are unavailable\n- User-friendly error messages\n\n### Performance Features\n- Concurrent operations where possible\n- Caching of repository data\n- Progress tracking for long operations\n- Efficient memory usage\n\n---\n\n## 🎯 Use Case\n\n### For Developers\n- Keep local copies of all GitHub repositories synchronized\n- Quickly clone multiple repositories for new machine setup\n- Monitor repository health and fix issues automatically\n- Manage SSH configurations across multiple machines\n\n---\n\n## 📊 Monitoring \u0026 Logging\n\n### Checkup Results\nDetailed JSON logs are saved for each system checkup, including:\n- Timestamp and duration\n- Success/failure status of each step\n- Configuration details\n- Error messages and recommendations\n\n### Real-time Status\n- Progress indicators for long operations\n- Immediate feedback for user actions\n- Status summaries after operations complete\n\n---\n\n## 🔒 Security Features\n\n- **Token Security**: GitHub tokens stored locally with appropriate permissions\n- **SSH Security**: Proper file permissions enforced for SSH keys\n- **Input Validation**: All user input validated before processing\n- **Error Handling**: Sensitive information not exposed in error messages\n\n---\n\n## 🚨 Troubleshooting\n\n### Common Issues\n\n1. **SSH Connection Failed**\n   - Run SSH check from the SSH menu\n   - Generate new SSH key if needed\n   - Add SSH key to GitHub account\n\n2. **Token Authentication Failed**\n   - Verify token has correct scopes (repo)\n   - Generate new token if expired\n   - Check network connectivity to GitHub\n\n3. **Repository Sync Fails**\n   - Check SSH configuration\n   - Verify repository permissions\n   - Ensure sufficient disk space\n\n4. **Network Issues**\n   - Run network check from system checkup\n   - Verify DNS resolution\n   - Check firewall settings\n\n### Getting Help\n- Review checkup result logs in `~/smart_repo_manager/\u003cusername\u003e/logs/`\n- Check error messages in the CLI interface\n- Verify GitHub token permissions\n- Ensure SSH keys are added to GitHub\n\n---\n\n## 📈 Performance Tips\n\n- Run regular checkups to identify issues early\n- Use \"Update Needed Only\" for frequent syncs\n- Clean temporary files periodically\n- Monitor storage usage to prevent disk space issues\n- Generate SSH keys with appropriate types (ED25519 recommended)\n\n---\n\n## 🔄 Updates \u0026 Maintenance\n\n### Regular Maintenance Tasks\n1. **Run System Checkup**: Weekly to ensure everything works\n2. **Clean Temporary Files**: Monthly or as needed\n3. **Review Storage Usage**: Periodically to manage disk space\n4. **Update GitHub Token**: Annually or when permissions change\n\n### Data Backup\n- Configuration files: `~/smart_repo_manager/config.json`\n- User data: `~/smart_repo_manager/\u003cusername\u003e/`\n- Log files: `~/smart_repo_manager/\u003cusername\u003e/logs/`\n\n---\n\n## 🙏 Acknowledgments\n\n- GitHub API for repository access\n- Python community for excellent libraries\n- Contributors and testers: [@aixandrolab](https://github.com/aixandrolab)\n\n---\n\n## 📄 License\n\nBSD 3-Clause License - See [LICENSE](LICENSE) file for details.\n\nCopyright © 2025, Alexander Suvorov. All rights reserved.\n\n---\n\n## Related Projects\n\nThis core library powers two complete implementations:\n\n### [Core Version](https://github.com/smartlegionlab/smart-repository-manager-core) \nA Python library for managing Git repositories with intelligent synchronization, SSH configuration validation, and GitHub integration.\n\n### [GUI Version](https://github.com/smartlegionlab/smart-repository-manager-gui)  \nA desktop graphical user interface that offers visual management of repositories, SSH configuration, and synchronization tasks. Built for users who prefer point-and-click interaction.\n\nBoth implementations use this core library as their engine, ensuring consistent behavior and feature parity across interfaces.\n\n---\n\n## Disclaimer\n\n**Important**: This software is provided \"as-is\" without any warranties or guarantees. The developers are not responsible for:\n\n- Data loss or corruption\n- Repository damage or unintended modifications\n- Security breaches or token exposure\n- Network issues or connectivity problems\n- Any other direct or indirect damages\n\n**Use at your own risk**. Always maintain backups of your repositories and tokens. This project is in active development and may contain bugs or incomplete features.\n\n## Development Status\n\n⚠️ **Active Development** - This project is under active development. Features may change, and stability is not guaranteed. Not recommended for production use without thorough testing.\n\n## Support\n\nFor issues and questions, please check the GitHub repository:  \n[https://github.com/smartlegionlab/smart-repository-manager-cli](https://github.com/smartlegionlab/smart-repository-manager-cli)\n\n---\n\n**Developer**: [Alexander Suvorov]( https://github.com/smartlegionlab/)\n**Contact**: [smartlegiondev@gmail.com](mailto:smartlegiondev@gmail.com)\n\n---\n\n## Screenshot\n\n![Smart Repository Manager Cli Logo](https://github.com/smartlegionlab/smart-repository-manager-cli/blob/master/data/images/smart_repository_manager_cli.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlegionlab%2Fsmart-repository-manager-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartlegionlab%2Fsmart-repository-manager-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlegionlab%2Fsmart-repository-manager-cli/lists"}