Skip to main content

arc upgrade

arc upgrade upgrades arc itself to the latest published binary release, or to a pinned version.

arc upgrade upgrades the arc binary itself to the latest published release, or to a specific pinned version.

Usage

bash
arc upgrade [options]

Global flags (see Overview): --json, --view, --instance / -i (which local ARC instance; omit for default), and --home (instance root; to pick which instance, use --instance).

  • --check: only check whether an update is available, don't install it
  • --to <version>: install a specific version instead of the latest published one
  • --from <path>: debug channel — build this local git source tree and swap the running daemon's exec, instead of installing a published tarball
  • --force: for the --from debug channel only — allow swapping to an older debug build (by default --from refuses that downgrade). Plain --to <version> has no such guard: it installs whatever version you name, even an older one, and still reports it as upgraded
  • --base <url>: tarball host base URL (default https://dl.arcblock.io, env ARC_INSTALL_BASE)
  • --install-script-base <url>: install.sh host base URL (default https://arc.arcblock.io, env ARC_INSTALL_SCRIPT_BASE)
  • --dir <path>: install root (default ~/.arc, env ARC_INSTALL_DIR)

Example

bash
$ arc upgrade --check
already up to date (2.0.0-beta.48)

If a newer release is published, the message instead reads update available: <current> → <latest> (run 'arc upgrade' to install).