Skip to content

mc update

Syntax

The Pigsty-maintained client keeps mc update for command-line compatibility, but self-update is intentionally disabled. The command does not contact a release feed, download a binary, or replace the installed mc/mcli executable. 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.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

The non-JSON error text is:

Self-update is disabled in the Pigsty mc fork; upgrade only through the Pigsty 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