update Command
Use arashi update when you want Arashi to check whether a newer CLI release is available.
arashi update [--check] [--dry-run] [--yes]Options
Section titled “Options”--checkchecks whether an update is available without changing files.--dry-runshows the planned update command or installer invocation without changing files.-y, --yesapplies a supported update non-interactively.--jsonoutput machine-readable update check, plan, or result data.
Behavior
Section titled “Behavior”Arashi first detects how the current CLI is installed.
- npm-managed installs can update the package and then refresh the matching platform binary when the package manager can be confidently detected.
- Package-manager detection supports npm, pnpm, Yarn, Bun, and Vite+ managed globals.
- Vite+ installs update with
vp update -g arashi. - official curl installer installs can rerun the installer against the current binary directory when you pass
--yes. - manual release-asset installs use the same installer-based plan when possible; use
--dry-runfirst if you need to inspect the target directory. - ambiguous npm-managed installs do not mutate files. Arashi prints manual update commands instead.
Examples
Section titled “Examples”# only check whether an update existsarashi update --check
# show the command or release guidance without changing filesarashi update --dry-run
# inspect the Vite+ managed-global update planarashi update --dry-run# Selected update command: vp update -g arashi
# run a supported npm-managed update without promptingarashi update --yes
# check for updates and emit JSONarashi update --check --json- If release or package metadata cannot be fetched, the command exits non-zero and leaves the existing binary in place.
- If the package update succeeds but binary refresh fails, run
arashi installto retry the binary installation or download the release asset manually. - JSON mode is best for
--check,--dry-run, and supported non-interactive update flows.