translify upgrade
Update the globally installed Translify CLI to the latest version.
Usage
bash
translify upgradebash
translify upgrade --to 0.2.0How it works
- Detects which package manager (
npm,pnpm, oryarn) was used to install the CLI globally, based on its own install path. - Reads the currently installed version and infers the release channel (
latest,alpha,beta, orrc) from it — a version like0.2.0-beta.1stays on thebetachannel. - Queries the npm registry for the latest version on that channel (or uses
--toif provided). - Re-runs the equivalent global install command (e.g.
npm install -g @ndnci/translify@latest) to update the package in place.
If the installed version already matches the target version, translify upgrade reports that you're up to date and exits without reinstalling.
Options
| Option | Description |
|---|---|
--to <version> | Install a specific version instead of the latest on your current channel |
Example output
info Upgrading @ndnci/translify: 0.0.4 → 0.0.5 (via npm)
added 1 package in 2s
✓ Translify upgraded to 0.0.5.Exit code
0— already up to date, or upgrade succeeded1— the registry couldn't be reached, or the global install command failed
