pac package
Commands for working with Dataverse package projects
Command | Description |
---|---|
pac package add-external-package | Adds a package that is external to the Dataverse solution system to a Package Deployer Package project. |
pac package add-reference | Adds reference to Dataverse solution project |
pac package add-solution | Adds a prebuilt Dataverse solution file to a Package Deployer Package project. |
pac package deploy | Deploys package to Dataverse |
pac package init | Initializes a directory with a new Dataverse package project |
pac package show | Shows details of Dataverse package |
Adds a package that is external to the Dataverse solution system to a Package Deployer Package project.
The type of the package being added. For example: 'xpp' for FnO packages.
Path to the external package
A whole number that indicates the order to insert this item into the final ImportConfig.xml file at build time. Negative numbers are inserted before existing elements. Positive numbers are added after existing elements.
Adds the item to the project file even if the file doesn't exist or appears to be invalid. Note: Using this doesn't affect any validation performed by MSBuild.
This parameter requires no value. It's a switch.
Adds reference to Dataverse solution project
pac package add-reference --path c:\Users\Downloads\SampleSolution
The path to the referenced Dataverse solution project
A semicolon delimited list of overrides. This value overrides any dependency information encoded in the solution's metadata. Each override should be in the format: <uniquename>:<minVersion>:<maxVersion>
. Where minVersion and maxVersion are optional but should be in .NET version format syntax.
Note: Use a semicolon delimited list of dependency overrides of the format <uniquename>:<minVersion>:<maxVersion>.
Explicitly specifies the required mode when importing this solution.
Use one of these values:
sync
async
A whole number that indicates the order to insert this item into the final ImportConfig.xml file at build time. Negative numbers are inserted before existing elements. Positive numbers are added after existing elements.
Specifies the behavior on import when a dependency of this solution is missing from the target environment.
Use one of these values:
skip
fault
Explicitly indicates whether to overwrite unmanaged customizations when this solution is imported.
Use one of these values:
true
false
Explicitly indicates whether to publish the workflows and activate plug-ins when this solution is imported.
Use one of these values:
true
false
Adds a prebuilt Dataverse solution file to a Package Deployer Package project.
Path to the Dataverse solution file. The file must be a compressed ZIP file.
A semicolon delimited list of overrides. This value overrides any dependency information encoded in the solution's metadata. Each override should be in the format: <uniquename>:<minVersion>:<maxVersion>
. Where minVersion and maxVersion are optional but should be in .NET version format syntax.
Note: Use a semicolon delimited list of dependency overrides of the format <uniquename>:<minVersion>:<maxVersion>.
Explicitly specifies the required mode when importing this solution.
Use one of these values:
sync
async
A whole number that indicates the order to insert this item into the final ImportConfig.xml file at build time. Negative numbers are inserted before existing elements. Positive numbers are added after existing elements.
Specifies the behavior on import when a dependency of this solution is missing from the target environment.
Use one of these values:
skip
fault
Explicitly indicates whether to overwrite unmanaged customizations when this solution is imported.
Use one of these values:
true
false
Explicitly indicates whether to publish the workflows and activate plug-ins when this solution is imported.
Use one of these values:
true
false
Adds the item to the project file even if the file doesn't exist or appears to be invalid. Note: Using this doesn't affect any validation performed by MSBuild.
This parameter requires no value. It's a switch.
Deploys package to Dataverse
Note
This command is only available for the .NET Full Framework version of the PAC CLI.
pac package deploy --logFile c:\samplelogdata --package c:\samplepackage
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
Output log to console
This parameter requires no value. It's a switch.
Log file path
Path to a package dll or zip file with a package.
Runtime Package Settings that are passed to the package that is being deployed. The format of the string must be key=value|key=value
.
Note: The format of the string must be key=value|key=value
.
Path to the Dataverse solution file. The file must be a compressed ZIP or CAB file.
Emit verbose logs to the log outputs.
This parameter requires no value. It's a switch.
You can use both logFile
and logConsole
parameters together, or use one parameter or the other.
Initializes a directory with a new Dataverse package project
pac package init --outputdirectory c:\samplepackage
Output directory
Sets the default name of the package. Applies to the generation of ImportExtension.GetNameOfImport.
Shows details of Dataverse package
Note
This command is only available for the .NET Full Framework version of the PAC CLI.
pac package show c:\samplepackage.dll
Path to a package dll or zip file with a package.
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
Log file path
Emit verbose logs to the log outputs.
This parameter requires no value. It's a switch.
Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview