Get-NavAppRuntimePackage
Get a Business Central app runtime package
Syntax
Default (Default)
Get-NavAppRuntimePackage
[-Id <String>]
[-Name <String>]
[-Publisher <String>]
[-Version <Version>]
[-ShowMyCode <Boolean>]
[-IncludeSourceInPackageFile <Boolean>]
-Path <String>
[-Tenant <TenantId>]
[-ServerInstance] <String>
[-Force]
[<CommonParameters>]
Description
Use the Get-NavAppRuntimePackage cmdlet to get a Business Central app runtime package.
Examples
EXAMPLE 1
Get-NavAppRuntimePackage -ServerInstance BC -Name 'Proseware SmartApp' -Version 2.3.4.500 -Path 'Prosware SmartApp_2.3.4.500_runtime.app'
This example gets the Business Central app runtime package with the provided name and version.
Parameters
-Force
Forces the command to run without asking for user confirmation.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Id
Specifies the ID of the Business Central app to be returned.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AppId |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-IncludeSourceInPackageFile
Specifies to include source code in the package.
Parameter properties
Type: | Boolean |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AppIncludeSourceInPackageFile |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Name
Specifies the name of the Business Central app to be returned.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AppName |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Path
Specifies the path where the binary extension will be written to.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | ExtensionPath |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Publisher
Specifies the publisher of the Business Central app to be returned.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AppPublisher |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-ServerInstance
Specifies the name of a Business Central Server instance, for example, BC or myinstance. You can specify either the full name of an instance, such as MicrosoftDynamicsNavServer$myinstance or the short name such as myinstance.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-ShowMyCode
Specifies whether to include the app's source code in the runtime package. The source code can be used for debugging and recompiling purposes. If you want to be able run the Repair-NAVApp cmdlet on the app, you must include the source code. This parameter overwrites the ShowMyCode value in the app's manifest (app.json file). To include source code, set the parameter to $true
.
Parameter properties
Type: | Boolean |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AppShowMyCode |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Tenant
Specifies the ID of a specific tenant that you want to act on, such as Tenant1.
Parameter properties
Type: | TenantId |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Version
Specifies the exact version of the Business Central app to be returned.
Parameter properties
Type: | Version |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AppVersion |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
System.String
By property name: Id
System.String
By property name: Name
System.String
By property name: Publisher
System.Version
By property name: Version
System.Boolean
By property name: ShowMyCode
System.String
By property name: Path
Microsoft.Dynamics.Nav.Types.TenantId
By property name: Tenant
System.String
Notes
You generate runtime packages for distribution of extensions that do not contain AL code, but only the final artifacts used by the server at runtime. Runtime packages allow you to protect the intellectual property represented by your AL source code. The extension in a runtime package can be installed on servers that do not have a developer license. The license is checked on the server where the runtime package is generated.