Skip to content

Update Command

The update command updates the tool to the latest or specified version.

Usage

mytool update [flags]

Description

Downloads and installs the latest version of the tool. After updating, it automatically runs init on existing configuration directories to ensure compatibility.

Flags

  • --force, -f: Force update to the latest version even if already up to date.
  • --version, -v string: Specific version to update to (format: v0.0.0).
  • --from-file string: Path to a local .tar.gz release archive for offline installation. Mutually exclusive with --version.