Export-DlmDatabasePackage
Published 10 March 2016
Export-DlmDatabasePackage
Exports a IBuildArtifact object to disk.
Syntax
Export-DlmDatabasePackage [-InputObject] <IBuildArtifact> -Path <Object> [-Force] [-OutputFormat <BuildArtifactOutputFormat>] [<CommonParameters>]
|
Description
The Export-DlmDatabasePackage cmdlet exports the IBuildArtifact object produced by the New-DlmDatabasePackage cmdlet to a specified output folder in NuGet package format.
Parameters
-InputObject
<RedGate.DLMAutomation.Compare.Domain.BuildArtifacts.IBuildArtifact>
The IBuildArtifact 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 |
-OutputFormat
<RedGate.DLMAutomation.Compare.BuildArtifacts.BuildArtifactOutputFormat>
The output format of the Database Package. If you don't use this parameter the default behaviour is to export to a NuGet package
Possible values: NuGet, Zip
Aliases | None |
Required? | false |
Position? | named |
Default Value | NuGet |
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.DLMAutomation.Compare.Domain.BuildArtifacts.IBuildArtifact
The IBuildArtifact 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 IBuildArtifact object from a validated database schema. The Export-DlmDatabasePackage cmdlet then exports the package to c:\Export\packages.
---------- EXAMPLE 2 ----------
|
In this example, the New-DlmDatabasePackage cmdlet creates a IBuildArtifact object from a validated database schema. The Export-DlmDatabasePackage cmdlet then exports the package to C:\Export\packages.
---------- EXAMPLE 3 ----------
|
In this example, the New-DlmDatabasePackage cmdlet creates a IBuildArtifact object from a validated database schema. The Export-DlmDatabasePackage cmdlet then exports the package to C:\Export\packages as a zip file.