cmd-toolhub
An interactive command-line hub to quickly run common dev tasks (files, git, etc.).
Usage
- Install-free: run via npx
``
bash
npx cmd-toolhub
``
On launch, you'll be prompted: "Select a category:" with options like Files, Git, and Exit.
Features
$3
The Files menu provides comprehensive file and folder management capabilities:
-
Create Folder: Create new directories
-
Create File: Create new files (asks for directory path and filename separately)
-
Delete File/Folder: Remove files or empty directories
-
Rename File/Folder: Rename existing files or folders
$3
The Git menu provides comprehensive version control capabilities:
-
Check Status: View current Git repository status
-
Add Files: Stage files and folders for commit
-
Commit Changes: Commit staged changes with custom messages
-
View Log: Display recent commit history in decorated graph format
-
View Diff: Show working tree diff summary
-
List Branches: Display all local and remote branches
-
Push Changes: Push changes to remote repository with branch selection
-
Pull Changes: Pull changes from remote repository with branch selection
-
Create Branch: Create and switch to new branches
-
Switch Branch: Switch between existing branches
-
Merge Branch: Merge branches into current branch
-
Delete Branch: Delete branches with force option support
-
Reset Changes: Reset staged changes with interactive options
-
Stash Changes: Stash operations with message support
-
Clone Repository: Clone remote repositories with URL validation
-
Initialize Repository: Initialize new Git repositories
-
Add Remote: Add remote repositories with custom names
-
Remove Remote: Remove remote repositories with validation
-
Cherry-pick Commit: Apply specific commits to the current branch
-
Clean Untracked Files: Remove untracked files and directories with dry-run option
$3
The Process Management menu provides tools for managing running processes and network ports:
-
Find Process by Port: Identify which process is using a specific port
-
List Port Usage: Show all processes using network ports-
List Running Processes: Display all running processes (cross-platform: tasklist on Windows, ps aux on Unix)
-
Kill Process by PID: Terminate processes by Process ID with confirmation prompt (cross-platform: taskkill on Windows, kill on Unix)
-
List Port Usage: Show all processes using network ports
Screenshots
$3
!
File Creation
Creating a new file with separate directory path and filename inputs
$3
!
Folder Creation
Creating a new folder with path validation
$3
!
File Delete
Deleting files and folders with proper error handling
$3
!
File Rename
Renaming files and folders with conflict detection
$3
!
Folder Copy
Copying an entire folder into a destination directory
$3
!
File Move
Moving a file into a destination directory with fallback support on Windows
$3
!
Delete Confirmation - Yes
Confirming deletion of a folder and all its contents
!
Delete Confirmation - No
Cancelling deletion when user chooses not to proceed
$3
!
Git Status
Checking Git repository status showing branch information
$3
!
Git Commit
Committing changes with custom commit message and validation
$3
!
Git View Diff
Viewing working tree diff summary
$3
!
Git View Log
Viewing recent commit history in a concise decorated graph
$3
!
Git List Branches
Listing all local and remote Git branches
$3
!
Git Push Changes
Pushing changes to remote repository with branch selection
$3
!
Git Pull Changes
Pulling changes from remote repository with branch selection
$3
!
Git Create Branch
Creating and switching to a new Git branch
$3
!
Git Switch Branch
Switching between existing Git branches
$3
!
Git Merge Branch
Merging branches into the current branch
$3
!
Git Delete Branch Success
Successfully deleting a Git branch with force option
!
Git Delete Branch Fail
Error handling when trying to delete the currently active branch
$3
!
Git Reset Changes
Resetting staged changes with interactive options
$3
!
Git Stash Changes
Stash operations with error handling for empty stash list
$3
!
Git Clone Repository
Cloning a remote repository with URL validation and optional directory name
$3
!
Git Initialize Repository
Initializing a new Git repository in current or specified directory
$3
!
Git Add Remote
Adding a remote repository with custom name and URL validation
$3
!
Git Remove Remote
Removing a remote repository with validation
$3
!
Git Cherry-pick Commit
Cherry-picking a specific commit to apply to the current branch
$3
!
Git Clean Untracked Files
Dry run showing untracked files and directories that would be removed
$3
!
Process List Running Processes
Listing all running processes with detailed information (PID, memory usage, session details)
$3
!
Process Kill by PID
Killing a process by PID with confirmation prompt and success feedback
$3
!
Process Find by Port
Finds which process is using a chosen port and displays its PID and status
$3
!
Process List Port Usage
Lists all open ports and shows which processes are using each, along with PIDs and states
Future Plans
In version 2, we plan to add more Git commands and include their names as examples for better discoverability and usability. Some examples include:
-
Rebase: Interactive rebasing and rebase operations
-
Merge: Advanced merge strategies and conflict resolution
-
Tag: Create, list, and manage Git tags
-
Worktree: Work with multiple working trees