go mod download <modules...>

Download the named modules into the module cache

Arguments

NameDescription
modules

Options

NameDescription
-jsonPrint a sequence of JSON objects to standard output, describing each downloaded module (or failure)
-xPrint the commands download executes to standard error