Skip to content

mc update

Syntax

The Silo client retains mc update for command-line compatibility, but self-update is disabled. The command makes no network requests and downloads or replaces no binaries. It prints an error and exits with status 1.

Upgrade through Download & Install, the Pigsty package repository, or GitHub Releases.

The following command reports that self-update is disabled and exits with status 1:

mc update

The command has the following syntax:

mc [GLOBALFLAGS] update [--json] [RELEASE-URL]
  • Brackets [] indicate optional parameters.
  • RELEASE-URL is accepted only for compatibility and is not contacted.

The non-JSON error text is:

Self-update is disabled in this Silo build of mcli; upgrade only through your package repository or https://github.com/pgsty/mc/releases.

Global Flags

--json

mc-cmd

Optional

Formats the disabled-update error as one JSON Lines object. This flag does not enable updating.

For example:

mc update --json