Skip to main content

diagrid update

Update the Diagrid CLI to the latest version

Description​

Update the Diagrid CLI to the latest version. The binary will be updated in its current installation location. Administrator privileges may be required.

A CLI installed with Homebrew or npm is updated with that package manager instead, and this command prints the command to run.

By default, only stable releases are considered. Use --include-rc to also consider release candidate versions (e.g., 0.31.0-rc.1).

While a newer version is available, the CLI shows a reminder after each command run in a terminal. Set DIAGRID_NO_UPDATE_NOTIFIER=true to turn the reminder and its daily version check off.

diagrid update [flags]

Examples​


# Update Diagrid CLI to latest version
diagrid update

# Auto approve updating the Diagrid CLI to latest version
diagrid update --approve

# Update to the latest release candidate (if newer than current)
diagrid update --include-rc --approve

Options​

-a, --approve Auto approve updating the Diagrid CLI to newest version
-y, --yes Skip confirmation prompt
--include-rc Include release candidate versions when checking for updates
-h, --help help for update