Tailscale CLI Helpers v0.2.0 - Major Refactoring and New Commands
π Major Release v0.2.0
This release brings significant improvements with new commands, refactored codebase, and comprehensive testing.
β¨ New Features
New Commands
tscp- SCP file transfers with Tailscale hostname resolutiontrsync- rsync synchronization with Tailscale hostname resolutiontmussh- Parallel SSH execution across multiple Tailscale nodes (requires mussh)tsdispatcher - Unified command interface for all operations
Enhanced Installation
- One-line installer:
curl -fsSL https://raw.githubusercontent.com/DigitalCyberSoft/tailscale-cli-helpers/main/install.sh < /dev/null | bash - Interactive ts dispatcher installation option
- Enhanced setup script with new features
π‘ Improvements
Core Functionality
- Refactored function naming - Removed unnecessary
dcs_prefixes while preserving namespacing - Enhanced SSH support - Full SSH options passthrough (
-p,-i, etc.) - Improved completion - Tab completion for all new commands
- Better error handling - Enhanced argument parsing and validation
Code Quality
- Comprehensive test suite - 5 new test files covering all functionality
- Cross-shell compatibility - Tested on both bash and zsh
- Clean namespacing - Strategic use of prefixes to avoid conflicts
π Technical Changes
Command Structure
tssh- Main SSH command (replaces directdcs_tsusage)ts- Multi-command dispatcher with subcommands:ts ssh hostname- SSH to hostts scp file.txt host:/path- Copy filests rsync -av dir/ host:/path/- Sync directoriests mussh -h host1 host2 -c "cmd"- Parallel execution
New Files
tailscale-mussh.sh- Parallel SSH functionalitytailscale-ts-dispatcher.sh- Command dispatcherinstall.sh- One-line installer scriptVERSION- Version tracking- Comprehensive test suite (5 new test files)
π¦ Installation
Quick Install (Recommended)
# Current user installation
curl -fsSL https://raw.githubusercontent.com/DigitalCyberSoft/tailscale-cli-helpers/main/install.sh | bash
# System-wide installation
curl -fsSL https://raw.githubusercontent.com/DigitalCyberSoft/tailscale-cli-helpers/main/install.sh | sudo bash -s -- --systemPackage Downloads
- RPM: For Fedora/RHEL/CentOS systems
- DEB: For Ubuntu/Debian systems
π§ͺ Testing
This release includes comprehensive testing:
- 164 Tailscale hosts detected in test environment
- All commands tested across bash and zsh
- Complete tab completion verified
- Host resolution fully functional
Run tests: ./tests/test-summary.sh
π Usage Examples
# SSH connections
tssh myhost # Direct SSH
ts myhost # Via dispatcher
tssh user@myhost -p 2222 # With SSH options
# File operations
tscp file.txt myhost:/tmp/ # Copy files
trsync -av dir/ myhost:/data/ # Sync directories
# Parallel operations
tmussh -h web1 web2 -c "uptime" # Execute on multiple hostsπ Migration
Existing functionality remains compatible:
ts hostnamestill works (callstsshinternally)- All tab completion preserved
- MagicDNS and fallback behavior unchanged
Built by Digital Cyber Soft