Power apps code apps npm-based CLI is now generally available (Power Apps SDK v1.3.0 and CLI v1.0.0) #438
Jordan Chodak (jordanchodakWork)
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Power Apps Code Apps CLI is now generally available
We’re excited to announce the general availability of the npm-based Power Apps CLI, along with updates to the Power Apps client library.
@microsoft/power-apps@1.3.0@microsoft/power-apps-cli@1.0.0This release establishes
paas the primary CLI experience for Power Apps code apps. It also adds new solution discovery and app-context capabilities, improves Dataverse data-source management, and fixes an issue affecting application lifecycle management (ALM).The npm-based CLI is now generally available
The
paCLI is now generally available and can be adopted without making code changes to your existing app.The CLI uses a consistent noun-verb command structure organized around areas such as:
pa apppa authpa connectionpa connectorpa solutionThe documentation has also been rewritten to reflect the generally available
paexperience.The
pac codecommands remain supported, but we recommend transitioning to the npm-based CLI for the latest code apps development experience.Action required: migrate from the legacy
power-appscommandThe legacy
power-appscommand has been removed. If you use it in scripts or automation, update your commands to usepa.For example:
power-apps add-data-source ...becomes:
pa app add data-source ...Your app code doesn’t need to change, but scripts using the previous commands, flags, or environment variables might need to be updated.
Renamed flags
--api-id/-a--connector--resource-name/-t--table--sql-stored-procedure/-sp--procedure--data-source-name/-n--name--connection-ref/-cr--connection-refThe short aliases listed above are no longer supported.
Renamed environment variables
PA_CLI_API_IDPA_CLI_CONNECTORPA_CLI_ENV_URLPA_CLI_ORG_URLPA_CLI_CLOUD_INSTANCEPA_CLI_CLOUDPA_CLI_SQL_STORED_PROCEDUREPA_CLI_PROCEDUREThe following environment variables have been removed:
PA_CLI_VERBPA_CLI_ENABLE_TELEMETRYPA_CLI_DISABLE_TELEMETRYPA_CLI_SHOW_SETTINGSThe previous PAC CLI authentication path has also been removed.
IS_PAC_CLIandPAC_CLI_TELEMETRY_OPTOUTare no longer used.List Dataverse solutions from the CLI
The new
pa solution listcommand lets you find Dataverse solutions and view their:The command supports
--searchand--json, along with interactive paging in the terminal.Access your app’s URL with
getContext()The Power Apps client library now includes
appUrlonIAppContext, allowing your app to read its own running URL:This capability is rolling out gradually by region. The property might initially be
undefineduntil the service update reaches your region.Bug fixes
Environment-variable overrides are now applied to every data source. When multiple tabular data sources used the same connection reference, only the first data source retained its table-name override. Later data sources could receive a raw identifier, causing issues during ALM promotion.
If your configuration was created before this fix, rerun
pa app add data-sourcefor the affected data sources.Dataverse data sources can be refreshed or removed by logical name. The CLI now resolves a Dataverse data source using either its logical name, such as
contact, or its entity-set name, such ascontacts.Thanks for building with Power Apps code apps. As always, please continue sharing your feedback and reporting issues in this repository.
Learn more at aka.ms/pacodeapps.
All reactions