Go CLI Modules and Workspaces/List available updates

Show modules that have newer versions available.

Section: Dependency Updates

List available updates

bash
bash
go list -m -u all
Explanation

Show modules that have newer versions available. Useful in Go CLI workflows.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Dependency Updates
Upgrade dependency
Update a dependency to the latest version.
OpenIn sheetbashsame section
Upgrade patch release
Update a dependency within its compatible patch/minor range.
OpenIn sheetbashsame section
Verify module cache
Verify dependencies in module cache against go.sum.
OpenIn sheetbashsame section
Exclude bad version
Exclude a dependency version from selection.
OpenIn sheetbashsame section
Inspect current module JSON
Inspect current module metadata.
OpenIn sheetbash2 tag match
Initialize module
Create a new go.mod for the current project.
OpenIn sheetbash1 tag match