Self-update
π Description
The self-update command automatically updates the GEXD CLI tool to the latest available version from pub.dev. It ensures you have access to the newest features, bug fixes, and improvements.
βοΈ Usage
gexd self-update [options]π Basic Examples:
# Update to latest version
gexd self-update
# Check for updates without installing
gexd self-update --dry-run
# Force update (skip confirmations)
gexd self-update --force
# Update to specific version
gexd self-update --version 1.2.3
# Verbose update with detailed output
gexd self-update --verboseπ© Flags
--dry-run
Check for updates without installing
--force
Force update without confirmation prompts
--version <version>
Update to specific version
--verbose
Show detailed update process
--pre-release
Include pre-release versions
π― Update Process:
π Version Check - Compares current vs latest version
π Release Notes - Shows what's new in the update
β Confirmation - Asks for user confirmation
β¬οΈ Download - Downloads new version from pub.dev
π Installation - Replaces current installation
β Verification - Confirms successful update
π Update Information:
Current Version:
# Check your current version
gexd --version
# Check current vs latest
gexd self-update --dry-runVersion History:
# See what's new in latest version
gexd self-update --verbose
# Update to specific older version
gexd self-update --version 0.9.5β
What It Does:
π‘ Fetch Latest Info - Checks pub.dev for new releases
π Show Changelog - Displays release notes and changes
π Backup Current - Saves current version for rollback
β¬οΈ Download Update - Retrieves new version files
π Replace Installation - Updates the CLI tool
π§ͺ Test Installation - Verifies the update worked
π‘οΈ Safety Features:
πΎ Automatic Backup: Current version is backed up
β Version Verification: Confirms download integrity
π Rollback Option: Can restore previous version if needed
β οΈ Compatibility Check: Ensures update is compatible
π Permission Handling: Manages system permissions properly
π§ Troubleshooting:
Permission Issues:
# If permission denied on macOS/Linux
sudo gexd self-update
# Alternative: Update via pub (Dart)
dart pub global activate gexd
# Alternative: Update via pub (Flutter)
flutter pub global activate gexdNetwork Issues:
# Try with verbose logging
gexd self-update --verbose
# Check connectivity
ping pub.devRollback:
# If update causes issues, rollback
gexd self-update --version [previous_version]
# Or reinstall via pub (Dart)
dart pub global deactivate gexd
dart pub global activate gexd [version]
# Or reinstall via pub (Flutter)
flutter pub global deactivate gexd
flutter pub global activate gexd [version]π
Update Schedule:
π Check Frequency: Checks for updates on each major command
π’ Notifications: Shows update availability messages
β° Auto-Check: Automatically checks weekly
π Silent Mode: Can disable update notifications
β οΈ Notes:
π Internet Required: Needs internet connection
π¦ Pub.dev Dependency: Updates from pub.dev registry
π Admin Rights: May require elevated permissions
πΎ Data Preservation: Your projects and settings are preserved
Generated automatically by gexd_doc
Last updated