Export-DlmDatabasePackage
Published 27 January 2016
Export-DlmDatabasePackage
Exports a DatabasePackage object to disk.
Syntax
Export-DlmDatabasePackage [-InputObject] <DatabasePackage> -Path <Object> [-Force] [<CommonParameters>] |
Description
The Export-DlmDatabasePackage cmdlet exports the DatabasePackage object produced by the New-DlmDatabasePackage cmdlet to a specified output folder in NuGet package format.
Parameters
-InputObject
<RedGate.SQLRelease.Compare.Packaging.DatabasePackage>
The DatabasePackage object to be exported.
Aliases | None |
Required? | true |
Position? | 0 |
Default Value | None |
Accept Pipeline Input | true (ByValue) |
Accept Wildcard Characters | false |
-Path
<System.Object>
The path to the folder the package is exported to. If the folder doesn't already exist, it will be created when the package is exported.
Aliases | None |
Required? | true |
Position? | named |
Default Value | None |
Accept Pipeline Input | false |
Accept Wildcard Characters | false |
-Force
<System.Management.Automation.SwitchParameter>
Use this parameter to overwrite any existing NuGet package with the same name.
Aliases | None |
Required? | false |
Position? | named |
Default Value | False |
Accept Pipeline Input | false |
Accept Wildcard Characters | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- RedGate.SQLRelease.Compare.Packaging.DatabasePackage
The DatabasePackage object to be exported.
Return values
The output type is the type of the objects that the cmdlet emits.
- None
Examples
---------- EXAMPLE 1 ----------
|
In this example, the New-DlmDatabasePackage cmdlet creates a DatabasePackage object from a validated database schema. The Export-DlmDatabasePackage cmdlet then exports the package to c:\packages.