< Back

Get-DbUp

Sat Jan 11, 2020 3:46 am

NAME Get-DbUp



SYNOPSIS

Downloads the DbUp binary





SYNTAX

Get-DbUp [[-Url] <Object>] [<CommonParameters>]





DESCRIPTION

The Get-DbUp function downloads and extract a DbUp package specified URL. It is extracted to the local temp

directory. The location of the DbUp.dll is returned.





PARAMETERS

-Url <Object>

URL that contains the location of the online DbUp zip/nupkg file. Default:

https://www.nuget.org/api/v2/package/dbup/



Required? false

Position? 1

Default value https://www.nuget.org/api/v2/package/dbup/

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.string containing the location of the DbUp.dll binary





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-DbUp



Downloads the package https://www.nuget.org/api/v2/package/dbup/ and returns the location of the DbUp.dll location









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-DbUp -URL https://custom.location.com/package/myDbUp/1.0.0



Downloads the package from the custom location











RELATED LINKS

DbUp docs: https://dbup.readthedocs.io/

Questions about this script: rick@chroomsoft.nl