Package

Command to work with solution packages.

Parameters

Property Name Description Example
add-reference Sets the reference path to the solution project folder by passing the path parameter. pac package add-reference --path c:\Users\Downloads\SampleSolution
init Initializes a new package project. It has the following parameter:
  • outputdirectory: Output directory where the package is created.
pac package init --outputdirectory c:\samplepackage
deploy Deploys the package .dll or the .zip file with a package. It has the following parameters:
  • logFile: Path to a log file location where the logs are redirected.
  • logConsole: This option is used if you want to direct the logs to the console.
  • package: The path location to the package .dll (library) or a .zip file with a package.
Note: You can use both logFile and logConsole parameters together, or use one parameter or the other.
pac package deploy --logFile c:\samplelogdata --package c:\samplepackage
show Shows the content of a package .dll or a .zip file with a package. It has the following parameter:
  • package: The path location to the package .dll (library) or the .zip file.
pac package show c:\samplepackage.dll

See also

Power Apps component framework overview

What is Microsoft Power Platform CLI