The Save-Module command downloads the module from the PowerShell Gallery to a given path without installing it. For example, the following command downloads the Carbon module into a Modules directory in the root of the C: drive:
Save-Module -Name Carbon -Path C:Modules
Save-Module will do the following:
- Always download the module and overwrite any previously saved version in the specified path
- Ignore installed or other saved versions