A CLI tool to help you clean up your GitHub fork repositories efficiently.
- π List all your fork repositories
- ποΈ Delete multiple forks at once
- β Interactive selection with visual feedback
- π Progress tracking with status bars
- π― Bulk or selective deletion options
- π Secure GitHub token handling
- π« Beautiful CLI interface
- Node.js (v18 or higher)
- GitHub Personal Access Token (will be prompted during first run)
npm install -g forkaway
curl -o- https://raw.githubusercontent.com/bismarkhenao/forkaway/main/install.sh | bash
or using wget:
wget -qO- https://raw.githubusercontent.com/bismarkhenao/forkaway/main/install.sh | bash
-
Generate a GitHub token at https://github.com/settings/tokens
-
Enable these permissions:
repo
(Full control of private repositories)delete_repo
(Delete repositories)
-
Add the token to your shell configuration:
For zsh:
echo 'export GITHUB_TOKEN=your_token' >> ~/.zshrc source ~/.zshrc
For bash:
echo 'export GITHUB_TOKEN=your_token' >> ~/.bashrc source ~/.bashrc
Simply run:
forkaway
The interactive CLI will guide you through:
- Scanning your GitHub account for forks
- Choosing between:
- Deleting all forks (with safety confirmations)
- Selecting specific forks to delete
- Reviewing selected repositories
- Confirming and executing deletions with progress tracking
- Progress bars show deletion status
- Spinners indicate active operations
- Color-coded success/failure messages
- Detailed error reporting
- Operation summary at completion
- Multiple confirmations for bulk deletions
- Review step before final deletion
- Clear error messages
- Ability to cancel at any point
We welcome contributions! Please see our Contributing Guide for detailed instructions on how to:
- Set up your development environment
- Make changes
- Run tests
- Submit pull requests
- Follow our coding standards
MIT
If you encounter any issues or have questions:
- Open an issue at: https://github.com/bismarkhenao/forkaway/issues
- Provide detailed information about the problem
- Include any error messages