Menu
weird update
Update weird to the latest version.
weird update [flags]Downloads the latest release, verifies the signature of its checksum list and the checksum of the download, and replaces this binary in place.
weird also does this by itself: once a day, after any command, it checks for a new release and installs it silently. An install from the macOS .pkg never needs sudo to update: the package puts the binary at /usr/local/lib/weird/weird, owned by you, with a symlink at /usr/local/bin/weird, and an update replaces the file the symlink points to. Only a copy in a folder you cannot write (an older root-owned install, or install.sh run into such a folder) cannot update itself; then weird says so and asks for "sudo weird update" once, which on macOS also moves it to /usr/local/lib/weird, owned by you, so later updates need no sudo. Switch automatic updates off with "weird update --auto off" or WEIRD_NO_AUTO_UPDATE=1.
Releases come from https://download.weird.ro/weird-cli (WEIRD_DOWNLOAD_BASE overrides it). Updating needs the release signing key built in, which every published release has; a build without it (a development build) never updates and this command says why.
| Flag | Type | Default | Meaning |
|---|---|---|---|
--auto | string | turn automatic updates on or off (on|off) | |
--check | bool | only check whether a newer version exists |
Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
This page is generated from the weird CLI; it changes when the CLI does.